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