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