Mercurial > mm7
annotate GUI/UI/UISaveLoad.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 | fed97f15d1e1 |
rev | line source |
---|---|
2501 | 1 #define _CRTDBG_MAP_ALLOC |
2 #include <stdlib.h> | |
3 #include <crtdbg.h> | |
4 | |
5 #define _CRT_SECURE_NO_WARNINGS | |
6 #include <io.h> | |
7 | |
2541 | 8 #include "Engine/Engine.h" |
2501 | 9 |
2502 | 10 #include "..\../IO/Keyboard.h" |
2501 | 11 |
12 #include "..\../Engine/MapInfo.h" | |
2502 | 13 #include "..\../GUI/GUIWindow.h" |
14 #include "..\../GUI/GUIFont.h" | |
2501 | 15 #include "..\../Engine/Graphics/Render.h" |
16 #include "..\../Engine/LOD.h" | |
17 #include "..\../Engine/SaveLoad.h" | |
18 #include "..\../Engine/texts.h" | |
19 | |
2544
c674d547cc7c
GUIWindow switch logic refactored into behaviour classes
a.parshin
parents:
2541
diff
changeset
|
20 #include "Game/MainMenu.h" |
c674d547cc7c
GUIWindow switch logic refactored into behaviour classes
a.parshin
parents:
2541
diff
changeset
|
21 |
2501 | 22 |
23 //----- (004601B7) -------------------------------------------------------- | |
24 static void UI_DrawSaveLoad(bool save) | |
25 { | |
26 // const char *pSlotName; // edi@36 | |
27 GUIWindow save_load_window; // [sp+Ch] [bp-78h]@8 | |
28 unsigned int pSaveFiles; // [sp+70h] [bp-14h]@10 | |
29 unsigned __int64 full_hours; | |
30 unsigned __int64 full_days; | |
31 int full_weeks; | |
32 int full_month; | |
33 int current_year; | |
34 int current_month; | |
35 int current_day; | |
36 int current_hour; | |
37 int current_minutes; | |
38 | |
39 pRenderer->BeginScene(); | |
40 if ( GetCurrentMenuID() != MENU_SAVELOAD && GetCurrentMenuID() != MENU_LoadingProcInMainMenu ) | |
41 { | |
42 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_loadsave)); | |
43 if (save) | |
44 { | |
45 pRenderer->DrawTextureIndexed(241, 302, pIcons_LOD->GetTexture(uTextureID_LS_saveU)); | |
46 pRenderer->DrawTextureIndexed( 18, 139, pIcons_LOD->GetTexture(uTextureID_save_up)); | |
47 } | |
48 else | |
49 { | |
50 pRenderer->DrawTextureIndexed(241, 302, pIcons_LOD->GetTexture(uTextureID_LS_loadU)); | |
51 pRenderer->DrawTextureIndexed( 18, 139, pIcons_LOD->GetTexture(uTextureID_load_up)); | |
52 } | |
53 pRenderer->DrawTextureIndexed(351, 302, pIcons_LOD->GetTexture(uTextureID_x_u)); | |
54 } | |
55 if ( pSavegameUsedSlots[uLoadGameUI_SelectedSlot] ) | |
56 { | |
57 memset(&save_load_window, 0, 0x54); | |
58 save_load_window.uFrameX = pGUIWindow_CurrentMenu->uFrameX + 240; | |
59 save_load_window.uFrameWidth = 220; | |
60 save_load_window.uFrameY = (pGUIWindow_CurrentMenu->uFrameY - pFontSmallnum->uFontHeight) + 157; | |
61 save_load_window.uFrameZ = save_load_window.uFrameX + 219; | |
62 save_load_window.uFrameHeight = pFontSmallnum->uFontHeight; | |
63 save_load_window.uFrameW = pFontSmallnum->uFontHeight + save_load_window.uFrameY - 1; | |
64 if ( pSavegameThumbnails[uLoadGameUI_SelectedSlot].pPixels ) | |
65 pRenderer->DrawTextureRGB(pGUIWindow_CurrentMenu->uFrameX + 276, pGUIWindow_CurrentMenu->uFrameY + 171, &pSavegameThumbnails[uLoadGameUI_SelectedSlot]); | |
66 //Draw map name | |
67 save_load_window.DrawTitleText(pFontSmallnum, 0, 0, 0, pMapStats->pInfos[pMapStats->GetMapInfo(pSavegameHeader[uLoadGameUI_SelectedSlot].pLocationName)].pName, 3); | |
68 //Draw date | |
69 full_hours = ((signed __int64)(pSavegameHeader[uLoadGameUI_SelectedSlot].uWordTime * 0.234375) / 60) / 60i64; | |
70 full_days = (unsigned int)full_hours / 24; | |
71 full_weeks = (unsigned int)(full_days / 7); | |
72 full_month = (unsigned int)full_weeks / 4; | |
73 current_year = (full_month / 12) + game_starting_year; | |
74 current_month = full_month % 12; | |
75 current_day = full_days % 28; | |
76 current_hour = full_hours % 24; | |
77 current_minutes = (((signed __int64)(pSavegameHeader[uLoadGameUI_SelectedSlot].uWordTime * 0.234375) / 60) % 60i64); | |
78 | |
79 save_load_window.uFrameY = pGUIWindow_CurrentMenu->uFrameY + 261; | |
80 int am; | |
81 if ( (signed int)current_hour >= 12 ) | |
82 { | |
83 current_hour -= 12; | |
84 if ( !current_hour ) | |
85 current_hour = 12; | |
86 am = 1; | |
87 } | |
88 else | |
89 am = 0; | |
90 const char* day = aDayNames[full_days % 7]; | |
91 const char* ampm = aAMPMNames[am]; | |
92 const char* month = aMonthNames[current_month]; | |
93 | |
94 sprintfex(pTmpBuf.data(), "%s %d:%02d %s\n%d %s %d", day, current_hour, current_minutes, aAMPMNames[am], current_day + 1, month, current_year); | |
95 save_load_window.DrawTitleText(pFontSmallnum, 0, 0, 0, pTmpBuf.data(), 3); | |
96 } | |
97 if ( pGUIWindow_CurrentMenu->receives_keyboard_input_2 == WINDOW_INPUT_CONFIRMED) | |
98 { | |
99 pGUIWindow_CurrentMenu->receives_keyboard_input_2 = WINDOW_INPUT_NONE; | |
100 strcpy((char *)&pSavegameHeader + 100 * uLoadGameUI_SelectedSlot, pKeyActionMap->pPressedKeysBuffer); | |
101 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_SaveGame, 0, 0); | |
102 } | |
103 else | |
104 { | |
105 if ( pGUIWindow_CurrentMenu->receives_keyboard_input_2 == WINDOW_INPUT_CANCELLED) | |
106 pGUIWindow_CurrentMenu->receives_keyboard_input_2 = WINDOW_INPUT_NONE; | |
107 } | |
108 if (GetCurrentMenuID() == MENU_LoadingProcInMainMenu) | |
109 { | |
110 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, pFontSmallnum->AlignText_Center(186, pGlobalTXT_LocalizationStrings[135]) + 25, | |
111 220, 0, pGlobalTXT_LocalizationStrings[135], 0, 0, 0);//Загрузка | |
112 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, pFontSmallnum->AlignText_Center(186, | |
113 pSavegameHeader[uLoadGameUI_SelectedSlot].pName) + 25, 0x106, 0, pSavegameHeader[uLoadGameUI_SelectedSlot].pName, 185, 0); | |
114 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, pFontSmallnum->AlignText_Center(186, pGlobalTXT_LocalizationStrings[165]) + 25, | |
115 304, 0, pGlobalTXT_LocalizationStrings[165], 0, 0, 0);//"Пожалуйста, пожождите" | |
116 } | |
117 else | |
118 { | |
119 if ( save ) | |
120 pSaveFiles = 40; | |
121 else | |
122 pSaveFiles = uNumSavegameFiles; | |
123 | |
124 int slot_Y = 199; | |
125 for ( uint i = pSaveListPosition; i < pSaveFiles; ++i ) | |
126 { | |
127 if ( slot_Y >= 346 ) | |
128 break; | |
129 if ( pGUIWindow_CurrentMenu->receives_keyboard_input_2 != WINDOW_INPUT_IN_PROGRESS || i != uLoadGameUI_SelectedSlot ) | |
130 pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, 27, slot_Y, i == uLoadGameUI_SelectedSlot ? Color16(0xFF, 0xFF, 0x64) : 0, pSavegameHeader[i].pName, 185, 0); | |
131 else | |
132 pGUIWindow_CurrentMenu->DrawFlashingInputCursor(pGUIWindow_CurrentMenu->DrawTextInRect(pFontSmallnum, 27, slot_Y, i == uLoadGameUI_SelectedSlot ? Color16(0xFF, 0xFF, 0x64) : 0, (const char *)pKeyActionMap->pPressedKeysBuffer, 175, 1) + 27, | |
133 slot_Y, pFontSmallnum); | |
134 slot_Y += 21; | |
135 } | |
136 } | |
137 pRenderer->EndScene(); | |
138 } | |
139 // 6A0C9C: using guessed type int dword_6A0C9C; | |
140 | |
141 //----- (004606F7) -------------------------------------------------------- | |
142 void LoadUI_Draw() | |
143 { | |
144 UI_DrawSaveLoad(false); | |
145 } | |
146 | |
147 //----- (004606FE) -------------------------------------------------------- | |
148 void SaveUI_Draw() | |
149 { | |
150 UI_DrawSaveLoad(true); | |
151 } | |
152 | |
153 //----- (0045E361) -------------------------------------------------------- | |
154 void LoadUI_Load(unsigned int uDialogueType) | |
155 { | |
156 LODWriteableFile pLODFile; // [sp+1Ch] [bp-248h]@1 | |
157 | |
158 dword_6BE138 = -1; | |
159 pIcons_LOD->_inlined_sub2(); | |
160 | |
161 memset(pSavegameUsedSlots.data(), 0, sizeof(pSavegameUsedSlots)); | |
162 memset(pSavegameThumbnails.data(), 0, 45 * sizeof(RGBTexture)); | |
163 uTextureID_loadsave = pIcons_LOD->LoadTexture("loadsave", TEXTURE_16BIT_PALETTE); | |
164 uTextureID_load_up = pIcons_LOD->LoadTexture("load_up", TEXTURE_16BIT_PALETTE); | |
165 uTextureID_save_up = pIcons_LOD->LoadTexture("save_up", TEXTURE_16BIT_PALETTE); | |
166 uTextureID_LS_loadU = pIcons_LOD->LoadTexture("LS_loadU", TEXTURE_16BIT_PALETTE); | |
167 uTextureID_LS_saveU = pIcons_LOD->LoadTexture("LS_saveU", TEXTURE_16BIT_PALETTE); | |
168 uTextureID_x_u = pIcons_LOD->LoadTexture("x_u", TEXTURE_16BIT_PALETTE); | |
169 if ( uDialogueType ) | |
170 { | |
171 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_loadsave)); | |
2541 | 172 if ( current_screen_type == SCREEN_SAVEGAME ) |
2501 | 173 { |
174 pRenderer->DrawTextureIndexed(241, 302, pIcons_LOD->GetTexture(uTextureID_LS_saveU)); | |
175 pRenderer->DrawTextureIndexed( 18, 141, pIcons_LOD->GetTexture(uTextureID_save_up)); | |
176 } | |
177 else | |
178 { | |
179 pRenderer->DrawTextureIndexed(241, 302, pIcons_LOD->GetTexture(uTextureID_LS_loadU)); | |
180 pRenderer->DrawTextureIndexed( 18, 141, pIcons_LOD->GetTexture(uTextureID_load_up)); | |
181 } | |
182 pRenderer->DrawTextureIndexed(351, 302, pIcons_LOD->GetTexture(uTextureID_x_u)); | |
183 } | |
184 else | |
2544
c674d547cc7c
GUIWindow switch logic refactored into behaviour classes
a.parshin
parents:
2541
diff
changeset
|
185 pRenderer->DrawTextureNew(0, 0, &main_menu_background); |
c674d547cc7c
GUIWindow switch logic refactored into behaviour classes
a.parshin
parents:
2541
diff
changeset
|
186 pGUIWindow_CurrentMenu = new GUIWindow_Load(saveload_dlg_xs[uDialogueType], saveload_dlg_ys[uDialogueType], saveload_dlg_zs[uDialogueType], |
c674d547cc7c
GUIWindow switch logic refactored into behaviour classes
a.parshin
parents:
2541
diff
changeset
|
187 saveload_dlg_ws[uDialogueType], 0, 0); |
2501 | 188 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, 25, 199, 0, pGlobalTXT_LocalizationStrings[505], 0, 0, 0);// "Reading..." |
189 pRenderer->Present(); | |
190 pSavegameList->Initialize(0); | |
191 if ( pSaveListPosition > (signed int)uNumSavegameFiles ) | |
192 { | |
193 pSaveListPosition = 0; | |
194 uLoadGameUI_SelectedSlot = 0; | |
195 } | |
196 pLODFile.AllocSubIndicesAndIO(300, 0); | |
197 Assert(sizeof(SavegameHeader) == 100); | |
198 for (uint i = 0; i < uNumSavegameFiles; ++i) | |
199 { | |
200 sprintf(pTmpBuf.data(), "saves\\%s", pSavegameList->pFileList[i].pSaveFileName); | |
201 if (_access(pTmpBuf.data(), 6)) | |
202 { | |
203 pSavegameUsedSlots[i] = 0; | |
204 strcpy(pSavegameHeader[i].pName, pGlobalTXT_LocalizationStrings[72]); // "Empty" | |
205 continue; | |
206 } | |
207 pLODFile.LoadFile(pTmpBuf.data(), 1); | |
208 if ( pLODFile.FindContainer("header.bin", true) ) | |
209 fread(&pSavegameHeader[i], 100, 1, pLODFile.FindContainer("header.bin", true)); | |
210 if ( !_stricmp(pSavegameList->pFileList[i].pSaveFileName, pGlobalTXT_LocalizationStrings[613]) )// "AutoSave.MM7" | |
211 strcpy(pSavegameHeader[i].pName, pGlobalTXT_LocalizationStrings[16]);// "Autosave" | |
212 if ( !pLODFile.FindContainer("image.pcx", true) ) | |
213 { | |
214 pSavegameUsedSlots[i] = 0; | |
215 strcpy(pSavegameList->pFileList[i].pSaveFileName, ""); | |
216 } | |
217 else | |
218 { | |
219 pSavegameThumbnails[i].LoadFromFILE(pLODFile.FindContainer("image.pcx", true), 0, true); | |
220 pLODFile.CloseWriteFile(); | |
221 pSavegameUsedSlots[i] = 1; | |
222 } | |
223 } | |
224 | |
225 pLODFile.FreeSubIndexAndIO(); | |
2541 | 226 if ( current_screen_type == SCREEN_SAVEGAME ) |
2501 | 227 { |
228 uTextureID_x_d = pIcons_LOD->LoadTexture("x_d", TEXTURE_16BIT_PALETTE); | |
229 uTextureID_LS_ = pIcons_LOD->LoadTexture("LS_saveD",TEXTURE_16BIT_PALETTE); | |
230 } | |
231 else | |
232 { | |
233 uTextureID_x_d = pIcons_LOD->LoadTexture("x_d", TEXTURE_16BIT_PALETTE); | |
234 uTextureID_LS_ = pIcons_LOD->LoadTexture("LS_loadD",TEXTURE_16BIT_PALETTE); | |
235 } | |
236 uTextureID_AR_UP_DN = pIcons_LOD->LoadTexture("AR_UP_DN", TEXTURE_16BIT_PALETTE); | |
237 uTextureID_AR_DN_DN = pIcons_LOD->LoadTexture("AR_DN_DN", TEXTURE_16BIT_PALETTE); | |
238 pGUIWindow_CurrentMenu->CreateButton(21, 198, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 0, 0, "", 0); | |
239 pGUIWindow_CurrentMenu->CreateButton(21, 219, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 1, 0, "", 0); | |
240 pGUIWindow_CurrentMenu->CreateButton(21, 240, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 2, 0, "", 0); | |
241 pGUIWindow_CurrentMenu->CreateButton(21, 261, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 3, 0, "", 0); | |
242 pGUIWindow_CurrentMenu->CreateButton(21, 282, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 4, 0, "", 0); | |
243 pGUIWindow_CurrentMenu->CreateButton(21, 303, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 5, 0, "", 0); | |
244 pGUIWindow_CurrentMenu->CreateButton(21, 324, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 6, 0, "", 0); | |
245 pBtnLoadSlot = pGUIWindow_CurrentMenu->CreateButton(241, 302, 105, 40, 1, 0, UIMSG_SaveLoadBtn, 0, 0, "", pIcons_LOD->GetTexture(uTextureID_LS_), 0); | |
246 pBtnCancel = pGUIWindow_CurrentMenu->CreateButton(350, 302, 105, 40, 1, 0, UIMSG_Cancel, 0, 0, "", pIcons_LOD->GetTexture(uTextureID_x_d), 0); | |
247 pBtnArrowUp = pGUIWindow_CurrentMenu->CreateButton(215, 199, 17, 17, 1, 0, UIMSG_ArrowUp, 0, 0, "", pIcons_LOD->GetTexture(uTextureID_AR_UP_DN), 0); | |
248 pBtnDownArrow = pGUIWindow_CurrentMenu->CreateButton(215, 323, 17, 17, 1, 0, UIMSG_DownArrow, uNumSavegameFiles, 0, "", pIcons_LOD->GetTexture(uTextureID_AR_DN_DN), 0); | |
249 } | |
250 | |
251 //----- (0045E93E) -------------------------------------------------------- | |
2541 | 252 GUIWindow *SaveUI_Load(enum CURRENT_SCREEN screen) |
2501 | 253 { |
254 char *v3; // eax@7 | |
255 LODWriteableFile pLODFile; // [sp+1Ch] [bp-248h]@1 | |
256 | |
257 ++pIcons_LOD->uTexturePacksCount; | |
258 if ( !pIcons_LOD->uNumPrevLoadedFiles ) | |
259 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; | |
260 memset(&pSavegameUsedSlots, 0, sizeof(pSavegameUsedSlots)); | |
261 memset(&pSavegameThumbnails, 0, sizeof(pSavegameThumbnails)); | |
262 uTextureID_loadsave = pIcons_LOD->LoadTexture("loadsave", TEXTURE_16BIT_PALETTE); | |
263 uTextureID_load_up = pIcons_LOD->LoadTexture("load_up", TEXTURE_16BIT_PALETTE); | |
264 uTextureID_save_up = pIcons_LOD->LoadTexture("save_up", TEXTURE_16BIT_PALETTE); | |
265 uTextureID_LS_loadU = pIcons_LOD->LoadTexture("LS_loadU", TEXTURE_16BIT_PALETTE); | |
266 uTextureID_LS_saveU = pIcons_LOD->LoadTexture("LS_saveU", TEXTURE_16BIT_PALETTE); | |
267 uTextureID_x_u = pIcons_LOD->LoadTexture("x_u", TEXTURE_16BIT_PALETTE); | |
268 pRenderer->DrawTextureIndexed(8, 8, pIcons_LOD->GetTexture(uTextureID_loadsave)); | |
2541 | 269 if (screen == SCREEN_SAVEGAME) |
2501 | 270 { |
271 pRenderer->DrawTextureIndexed(241, 302, pIcons_LOD->GetTexture(uTextureID_LS_saveU)); | |
272 pRenderer->DrawTextureIndexed(351, 302, pIcons_LOD->GetTexture(uTextureID_x_u)); | |
273 pRenderer->DrawTextureIndexed(18, 141, pIcons_LOD->GetTexture(uTextureID_save_up)); | |
274 } | |
275 else | |
276 { | |
277 pRenderer->DrawTextureIndexed(241, 302, pIcons_LOD->GetTexture(uTextureID_LS_loadU)); | |
278 pRenderer->DrawTextureIndexed(351, 302, pIcons_LOD->GetTexture(uTextureID_x_u)); | |
279 pRenderer->DrawTextureIndexed(18, 141, pIcons_LOD->GetTexture(uTextureID_load_up)); | |
280 } | |
2541 | 281 |
282 //pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, 25, 199, 0, pGlobalTXT_LocalizationStrings[505], 0, 0, 0);//Read...(Чтение...) | |
2501 | 283 pRenderer->Present(); |
284 pSavegameList->Initialize(1); | |
285 pLODFile.AllocSubIndicesAndIO(300, 0); | |
286 for (uint i = 0; i < 40; ++i) | |
287 { | |
288 v3 = pSavegameList->pFileList[i].pSaveFileName; | |
289 if ( !*pSavegameList->pFileList[i].pSaveFileName ) | |
290 v3 = "1.mm7"; | |
291 sprintf(pTmpBuf.data(), "saves\\%s", v3); | |
292 if ( _access(pTmpBuf.data(), 0) || _access(pTmpBuf.data(), 6) ) | |
293 { | |
294 pSavegameUsedSlots[i] = 0; | |
295 strcpy(pSavegameHeader[i].pName, pGlobalTXT_LocalizationStrings[LOCSTR_EMPTY]); | |
296 } | |
297 else | |
298 { | |
299 pLODFile.LoadFile(pTmpBuf.data(), 1); | |
300 fread(&pSavegameHeader[i], 100, 1, pLODFile.FindContainer("header.bin", 1)); | |
301 if ( pLODFile.FindContainer("image.pcx", 1) ) | |
302 { | |
303 pSavegameThumbnails[i].LoadFromFILE(pLODFile.FindContainer("image.pcx", 1), 0, 1); | |
304 pLODFile.CloseWriteFile(); | |
305 pSavegameUsedSlots[i] = 1; | |
306 } | |
307 else | |
308 pSavegameUsedSlots[i] = 0; | |
309 } | |
310 } | |
311 pLODFile.FreeSubIndexAndIO(); | |
312 uTextureID_x_d = pIcons_LOD->LoadTexture("x_d", TEXTURE_16BIT_PALETTE); | |
313 uTextureID_LS_ = pIcons_LOD->LoadTexture("LS_saveD", TEXTURE_16BIT_PALETTE); | |
314 uTextureID_AR_UP_DN = pIcons_LOD->LoadTexture("AR_UP_DN", TEXTURE_16BIT_PALETTE); | |
315 uTextureID_AR_DN_DN = pIcons_LOD->LoadTexture("AR_DN_DN", TEXTURE_16BIT_PALETTE); | |
2541 | 316 |
2544
c674d547cc7c
GUIWindow switch logic refactored into behaviour classes
a.parshin
parents:
2541
diff
changeset
|
317 auto wnd = new GUIWindow_Save(0, 0, window->GetWidth(), window->GetHeight(), 0, 0); |
2541 | 318 wnd->CreateButton(21, 198, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 0, 0, "", 0); |
319 wnd->CreateButton(21, 218, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 1, 0, "", 0); | |
320 wnd->CreateButton(21, 238, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 2, 0, "", 0); | |
321 wnd->CreateButton(21, 258, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 3, 0, "", 0); | |
322 wnd->CreateButton(21, 278, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 4, 0, "", 0); | |
323 wnd->CreateButton(21, 298, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 5, 0, "", 0); | |
324 wnd->CreateButton(21, 318, 191, 18, 1, 0, UIMSG_SelectLoadSlot, 6, 0, "", 0); | |
325 pBtnLoadSlot = wnd->CreateButton(241, 302, 105, 40, 1, 0, UIMSG_SaveLoadBtn, 0, 0, "", pIcons_LOD->GetTexture(uTextureID_LS_), 0); | |
326 pBtnCancel = wnd->CreateButton(350, 302, 105, 40, 1, 0, UIMSG_Cancel, 0, 0, "", pIcons_LOD->GetTexture(uTextureID_x_d), 0); | |
327 pBtnArrowUp = wnd->CreateButton(215, 199, 17, 17, 1, 0, UIMSG_ArrowUp, 0, 0, "", pIcons_LOD->GetTexture(uTextureID_AR_UP_DN), 0); | |
328 pBtnDownArrow = wnd->CreateButton(215, 323, 17, 17, 1, 0, UIMSG_DownArrow, 34, 0, "", pIcons_LOD->GetTexture(uTextureID_AR_DN_DN), 0); | |
329 | |
330 return wnd; | |
2501 | 331 } |