Mercurial > mm7
comparison GUI/UI/UITransition.cpp @ 2546:4087cbc62706
GameMenu logic moved to GUIWindow_GameMenu
the same for game menu options
author | a.parshin |
---|---|
date | Mon, 11 May 2015 17:45:02 +0200 |
parents | e06a3fe9ad6e |
children | 3121fb54a110 |
comparison
equal
deleted
inserted
replaced
2545:e06a3fe9ad6e | 2546:4087cbc62706 |
---|---|
139 pBtn_ExitCancel = CreateButton(0x236u, 0x1BDu, 0x4Bu, 0x21u, 1, 0, UIMSG_TransitionWindowCloseBtn, 0, 'N', pGlobalTXT_LocalizationStrings[34], pIcons_LOD->GetTexture(uTextureID_BUTTDESC2), 0); // Cancel / Отмена | 139 pBtn_ExitCancel = CreateButton(0x236u, 0x1BDu, 0x4Bu, 0x21u, 1, 0, UIMSG_TransitionWindowCloseBtn, 0, 'N', pGlobalTXT_LocalizationStrings[34], pIcons_LOD->GetTexture(uTextureID_BUTTDESC2), 0); // Cancel / Отмена |
140 pBtn_YES = CreateButton(0x1E6u, 0x1BDu, 0x4Bu, 0x21u, 1, 0, UIMSG_TransitionUI_Confirm, 0, 'Y', hint, pIcons_LOD->GetTexture(uTextureID_BUTTYES2), 0); | 140 pBtn_YES = CreateButton(0x1E6u, 0x1BDu, 0x4Bu, 0x21u, 1, 0, UIMSG_TransitionUI_Confirm, 0, 'Y', hint, pIcons_LOD->GetTexture(uTextureID_BUTTYES2), 0); |
141 CreateButton(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], 0x3Fu, 0x49u, 1, 0, UIMSG_TransitionUI_Confirm, 1, 0x20u, hint, 0); | 141 CreateButton(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], 0x3Fu, 0x49u, 1, 0, UIMSG_TransitionUI_Confirm, 1, 0x20u, hint, 0); |
142 CreateButton(8, 8, 0x1CCu, 0x158u, 1, 0, UIMSG_TransitionUI_Confirm, 1u, 0, hint, 0); | 142 CreateButton(8, 8, 0x1CCu, 0x158u, 1, 0, UIMSG_TransitionUI_Confirm, 1u, 0, hint, 0); |
143 } | 143 } |
144 | |
144 | 145 |
145 | 146 |
146 //----- (00444C8F) -------------------------------------------------------- | 147 //----- (00444C8F) -------------------------------------------------------- |
147 GUIWindow_Travel::GUIWindow_Travel() : | 148 GUIWindow_Travel::GUIWindow_Travel() : |
148 GUIWindow(0, 0, window->GetWidth(), window->GetHeight(), 0, nullptr) | 149 GUIWindow(0, 0, window->GetWidth(), window->GetHeight(), 0, nullptr) |
201 | 202 |
202 | 203 |
203 //----- (00444DCA) -------------------------------------------------------- | 204 //----- (00444DCA) -------------------------------------------------------- |
204 void GUIWindow_Travel::Update() | 205 void GUIWindow_Travel::Update() |
205 { | 206 { |
207 // ----------------------------------- | |
208 // 004156F0 GUI_UpdateWindows --- part | |
206 GUIWindow travel_window; // [sp+Ch] [bp-78h]@1 | 209 GUIWindow travel_window; // [sp+Ch] [bp-78h]@1 |
207 char pDestinationMapName[32]; // [sp+60h] [bp-24h]@1 | 210 char pDestinationMapName[32]; // [sp+60h] [bp-24h]@1 |
208 | 211 |
209 memcpy(&travel_window, pPrimaryWindow, sizeof(travel_window)); | 212 memcpy(&travel_window, pPrimaryWindow, sizeof(travel_window)); |
210 pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pDestinationMapName, 20); | 213 pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pDestinationMapName, 20); |
238 | 241 |
239 | 242 |
240 //----- (00444A51) -------------------------------------------------------- | 243 //----- (00444A51) -------------------------------------------------------- |
241 void GUIWindow_Transition::Update() | 244 void GUIWindow_Transition::Update() |
242 { | 245 { |
246 // ----------------------------------- | |
247 // 004156F0 GUI_UpdateWindows --- part | |
243 unsigned int v4; // [sp-10h] [bp-7Ch]@12 | 248 unsigned int v4; // [sp-10h] [bp-7Ch]@12 |
244 GUIWindow transition_window; // [sp+Ch] [bp-60h]@1 | 249 GUIWindow transition_window; // [sp+Ch] [bp-60h]@1 |
245 unsigned int v9; // [sp+60h] [bp-Ch]@1 | 250 unsigned int v9; // [sp+60h] [bp-Ch]@1 |
246 unsigned int map_id; // [sp+64h] [bp-8h]@1 | 251 unsigned int map_id; // [sp+64h] [bp-8h]@1 |
247 | 252 |