Mercurial > mm7
diff GUI/GUIButton.cpp @ 2544:c674d547cc7c
GUIWindow switch logic refactored into behaviour classes
author | a.parshin |
---|---|
date | Mon, 11 May 2015 09:51:04 +0200 |
parents | a902abdfc7f2 |
children | 87e5590d034b |
line wrap: on
line diff
--- a/GUI/GUIButton.cpp Sun May 10 03:21:14 2015 +0200 +++ b/GUI/GUIButton.cpp Mon May 11 09:51:04 2015 +0200 @@ -72,12 +72,6 @@ struct GUIButton *pMMT_MainMenu_BtnExit; -struct GUIButton *pMainMenu_BtnExit; -struct GUIButton *pMainMenu_BtnCredits; -struct GUIButton *pMainMenu_BtnLoad; -struct GUIButton *pMainMenu_BtnNew; - - struct GUIButton *pBtn_Up; struct GUIButton *pBtn_Down; struct GUIButton *ptr_507BA4; @@ -241,7 +235,7 @@ void UI_CreateEndConversationButton() { pDialogueWindow->Release(); - pDialogueWindow = GUIWindow::Create(0, 0, window->GetWidth(), 345, WINDOW_MainMenu, 0, 0); + pDialogueWindow = new GUIWindow(0, 0, window->GetWidth(), 345, 0, 0); pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[74], //"End Conversation" pIcons_LOD->GetTexture(uExitCancelTextureId), 0);