Mercurial > mm7
comparison 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 |
comparison
equal
deleted
inserted
replaced
2543:b6140dfeac27 | 2544:c674d547cc7c |
---|---|
68 struct GUIButton *pMMT_MainMenu_BtnMM6; | 68 struct GUIButton *pMMT_MainMenu_BtnMM6; |
69 struct GUIButton *pMMT_MainMenu_BtnMM7; | 69 struct GUIButton *pMMT_MainMenu_BtnMM7; |
70 struct GUIButton *pMMT_MainMenu_BtnMM8; | 70 struct GUIButton *pMMT_MainMenu_BtnMM8; |
71 struct GUIButton *pMMT_MainMenu_BtnContinue; | 71 struct GUIButton *pMMT_MainMenu_BtnContinue; |
72 struct GUIButton *pMMT_MainMenu_BtnExit; | 72 struct GUIButton *pMMT_MainMenu_BtnExit; |
73 | |
74 | |
75 struct GUIButton *pMainMenu_BtnExit; | |
76 struct GUIButton *pMainMenu_BtnCredits; | |
77 struct GUIButton *pMainMenu_BtnLoad; | |
78 struct GUIButton *pMainMenu_BtnNew; | |
79 | 73 |
80 | 74 |
81 struct GUIButton *pBtn_Up; | 75 struct GUIButton *pBtn_Up; |
82 struct GUIButton *pBtn_Down; | 76 struct GUIButton *pBtn_Down; |
83 struct GUIButton *ptr_507BA4; | 77 struct GUIButton *ptr_507BA4; |
239 } | 233 } |
240 //----- (004BCA33) -------------------------------------------------------- | 234 //----- (004BCA33) -------------------------------------------------------- |
241 void UI_CreateEndConversationButton() | 235 void UI_CreateEndConversationButton() |
242 { | 236 { |
243 pDialogueWindow->Release(); | 237 pDialogueWindow->Release(); |
244 pDialogueWindow = GUIWindow::Create(0, 0, window->GetWidth(), 345, WINDOW_MainMenu, 0, 0); | 238 pDialogueWindow = new GUIWindow(0, 0, window->GetWidth(), 345, 0, 0); |
245 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, | 239 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, |
246 pGlobalTXT_LocalizationStrings[74], //"End Conversation" | 240 pGlobalTXT_LocalizationStrings[74], //"End Conversation" |
247 pIcons_LOD->GetTexture(uExitCancelTextureId), 0); | 241 pIcons_LOD->GetTexture(uExitCancelTextureId), 0); |
248 pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); | 242 pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); |
249 } | 243 } |