PromptOverlay::PromptOverlay(string headerText, bool allowsTextEntry)
{
    yOffset = 0;

    SetHeaderText(headerText);
    this->allowsTextEntry = allowsTextEntry;

    if (allowsTextEntry)
    {
        AddButton("OK");
        AddButton("Cancel");
        FinalizeButtons();
    }

    pFadeInEase = new LinearEase(0, 1, FadeMsDuration);
    pFadeOutEase = new LinearEase(1, 0, FadeMsDuration);
    isShowing = false;

    maxPixelWidth = -1;
    pFontToCheckAgainst = NULL;
}
示例#2
0
文件: ObjectView.cpp 项目: GMIS/GMIS
void CObjectView::ConnectRoomFail(tstring Reason){
	ClearAllObject();
	SetHeaderText(Reason,FALSE);
}