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