annotate GameUIs.cpp @ 189:038a4d09406f

new texts file, fix text rendender error
author Gloval
date Sat, 16 Feb 2013 00:33:21 +0400
parents 9abdd40a107b
children a4a5996fea5b
rev   line source
0
Ritor1
parents:
diff changeset
1 #include <direct.h>
Ritor1
parents:
diff changeset
2 #include <io.h>
Ritor1
parents:
diff changeset
3 #include <assert.h>
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5 #include "GUIWindow.h"
Ritor1
parents:
diff changeset
6 #include "GUIFont.h"
Ritor1
parents:
diff changeset
7 #include "LOD.h"
Ritor1
parents:
diff changeset
8 #include "SaveLoad.h"
Ritor1
parents:
diff changeset
9 #include "Render.h"
189
038a4d09406f new texts file, fix text rendender error
Gloval
parents: 151
diff changeset
10 #include "texts.h"
0
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12 #include "mm7_data.h"
Ritor1
parents:
diff changeset
13
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15 //----- (0045E361) --------------------------------------------------------
Ritor1
parents:
diff changeset
16 void __fastcall GameUI_DrawLoadMenu(unsigned int uDialogueType)
Ritor1
parents:
diff changeset
17 {
Ritor1
parents:
diff changeset
18 unsigned int v1; // ebp@5
Ritor1
parents:
diff changeset
19 unsigned int v2; // eax@5
Ritor1
parents:
diff changeset
20 //signed int v3; // ebp@11
Ritor1
parents:
diff changeset
21 FILE *v4; // eax@14
Ritor1
parents:
diff changeset
22 FILE *v5; // eax@18
Ritor1
parents:
diff changeset
23 unsigned int v6; // eax@25
Ritor1
parents:
diff changeset
24 GUIButton *v7; // eax@27
Ritor1
parents:
diff changeset
25 const char *v8; // [sp-8h] [bp-26Ch]@25
Ritor1
parents:
diff changeset
26 //char *v9; // [sp-4h] [bp-268h]@19
Ritor1
parents:
diff changeset
27 enum TEXTURE_TYPE v10; // [sp-4h] [bp-268h]@25
Ritor1
parents:
diff changeset
28 unsigned int uDialogueType_; // [sp+10h] [bp-254h]@1
Ritor1
parents:
diff changeset
29 //RGBTexture *pTex; // [sp+10h] [bp-254h]@12
Ritor1
parents:
diff changeset
30 //SavegameHeader *Dest; // [sp+14h] [bp-250h]@12
Ritor1
parents:
diff changeset
31 //const char *Str1; // [sp+18h] [bp-24Ch]@12
Ritor1
parents:
diff changeset
32 LODWriteableFile pLODFile; // [sp+1Ch] [bp-248h]@1
Ritor1
parents:
diff changeset
33 int v16; // [sp+260h] [bp-4h]@1
Ritor1
parents:
diff changeset
34
Ritor1
parents:
diff changeset
35 uDialogueType_ = uDialogueType;
Ritor1
parents:
diff changeset
36 dword_6BE138 = -1;
Ritor1
parents:
diff changeset
37 ++pIcons_LOD->uTexturePacksCount;
Ritor1
parents:
diff changeset
38 v16 = 0;
Ritor1
parents:
diff changeset
39 if ( !pIcons_LOD->uNumPrevLoadedFiles )
Ritor1
parents:
diff changeset
40 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
Ritor1
parents:
diff changeset
41 memset(pSavegameUsedSlots, 0, sizeof(pSavegameUsedSlots));
Ritor1
parents:
diff changeset
42 memset(pSavegameThumbnails, 0, 45 * sizeof(RGBTexture));
Ritor1
parents:
diff changeset
43 uTextureID_loadsave = pIcons_LOD->LoadTexture("loadsave", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
44 uTextureID_load_up = pIcons_LOD->LoadTexture("load_up", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
45 uTextureID_save_up = pIcons_LOD->LoadTexture("save_up", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
46 uTextureID_LS_loadU = pIcons_LOD->LoadTexture("LS_loadU", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
47 uTextureID_LS_saveU = pIcons_LOD->LoadTexture("LS_saveU", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
48 uTextureID_x_u = pIcons_LOD->LoadTexture("x_u", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
49 if ( uDialogueType_ )
Ritor1
parents:
diff changeset
50 {
Ritor1
parents:
diff changeset
51 pRenderer->DrawTextureIndexed(8, 8, (Texture *)(uTextureID_loadsave != -1 ? &pIcons_LOD->pTextures[uTextureID_loadsave] : 0));
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 43
diff changeset
52 if ( pCurrentScreen == SCREEN_SAVEGAME )
0
Ritor1
parents:
diff changeset
53 {
Ritor1
parents:
diff changeset
54 v1 = uTextureID_save_up;
Ritor1
parents:
diff changeset
55 v2 = uTextureID_LS_saveU;
Ritor1
parents:
diff changeset
56 }
Ritor1
parents:
diff changeset
57 else
Ritor1
parents:
diff changeset
58 {
Ritor1
parents:
diff changeset
59 v1 = uTextureID_load_up;
Ritor1
parents:
diff changeset
60 v2 = uTextureID_LS_loadU;
Ritor1
parents:
diff changeset
61 }
Ritor1
parents:
diff changeset
62 pRenderer->DrawTextureIndexed(241, 302, (Texture *)(v2 != -1 ? (int)&pIcons_LOD->pTextures[v2] : 0));
Ritor1
parents:
diff changeset
63 pRenderer->DrawTextureIndexed(18, 141, (Texture *)(v1 != -1 ? (int)&pIcons_LOD->pTextures[v1] : 0));
Ritor1
parents:
diff changeset
64 pRenderer->DrawTextureIndexed(351, 302, (Texture *)(uTextureID_x_u != -1 ? &pIcons_LOD->pTextures[uTextureID_x_u] : 0));
Ritor1
parents:
diff changeset
65 }
Ritor1
parents:
diff changeset
66 else
Ritor1
parents:
diff changeset
67 {
Ritor1
parents:
diff changeset
68 pRenderer->DrawTextureRGB(0, 0, &pTexture_PCX);
Ritor1
parents:
diff changeset
69 }
Ritor1
parents:
diff changeset
70 pGUIWindow_CurrentMenu = GUIWindow::Create(saveload_dlg_xs[uDialogueType_], saveload_dlg_ys[uDialogueType_], saveload_dlg_zs[uDialogueType_],
Ritor1
parents:
diff changeset
71 saveload_dlg_ws[uDialogueType_], WINDOW_MainMenu_Load, 0, 0);
Ritor1
parents:
diff changeset
72 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, 25, 199, 0, pGlobalTXT_LocalizationStrings[505], 0, 0, 0);// "Reading..."
Ritor1
parents:
diff changeset
73 pRenderer->Present();
Ritor1
parents:
diff changeset
74 pSavegameList->Initialize(0);
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
75 if ( pSaveListPosition > (signed int)uNumSavegameFiles )
0
Ritor1
parents:
diff changeset
76 {
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
77 pSaveListPosition = 0;
0
Ritor1
parents:
diff changeset
78 uLoadGameUI_SelectedSlot = 0;
Ritor1
parents:
diff changeset
79 }
Ritor1
parents:
diff changeset
80 pLODFile.AllocSubIndicesAndIO(0x12C, 0);
Ritor1
parents:
diff changeset
81 assert(sizeof(SavegameHeader) == 0x64);
Ritor1
parents:
diff changeset
82 //v3 = 0;
Ritor1
parents:
diff changeset
83 for (uint i = 0; i < uNumSavegameFiles; ++i)
Ritor1
parents:
diff changeset
84 {
Ritor1
parents:
diff changeset
85 //Dest = pSavegameHeader;
Ritor1
parents:
diff changeset
86 //pTex = pSavegameThumbnails;
Ritor1
parents:
diff changeset
87 //Str1 = (const char *)pSavegameList->pSavesNames;
Ritor1
parents:
diff changeset
88 //while ( 1 )
Ritor1
parents:
diff changeset
89 //{
Ritor1
parents:
diff changeset
90 sprintf(pTmpBuf, "saves\\%s", pSavegameList->pSavesNames[i]);
Ritor1
parents:
diff changeset
91 if (_access(pTmpBuf, 6))
Ritor1
parents:
diff changeset
92 {
Ritor1
parents:
diff changeset
93 pSavegameUsedSlots[i] = 0;
Ritor1
parents:
diff changeset
94 strcpy(pSavegameHeader[i].pName, pGlobalTXT_LocalizationStrings[72]); // "Empty"
Ritor1
parents:
diff changeset
95 continue;
Ritor1
parents:
diff changeset
96 }
Ritor1
parents:
diff changeset
97 pLODFile.LoadFile(pTmpBuf, 1);
Ritor1
parents:
diff changeset
98 v4 = pLODFile.FindContainer("header.bin", true);
Ritor1
parents:
diff changeset
99 if ( v4 )
Ritor1
parents:
diff changeset
100 fread(&pSavegameHeader[i], 0x64, 1, v4);
Ritor1
parents:
diff changeset
101 if ( !_strcmpi(pSavegameList->pSavesNames[i], pGlobalTXT_LocalizationStrings[613]) )// "AutoSave.MM7"
43
196847ece26a autosave slot fix
zipi
parents: 4
diff changeset
102 strcpy(pSavegameHeader[i].pName, pGlobalTXT_LocalizationStrings[16]);// "Autosave"
4
8e33efd39355 15.01.13(work)
Ritor1
parents: 2
diff changeset
103 v5 = pLODFile.FindContainer("image.pcx", true);
0
Ritor1
parents:
diff changeset
104 if ( !v5 )
Ritor1
parents:
diff changeset
105 {
Ritor1
parents:
diff changeset
106 pSavegameUsedSlots[i] = 0;
Ritor1
parents:
diff changeset
107 strcpy(pSavegameList->pSavesNames[i], "");
Ritor1
parents:
diff changeset
108 }
Ritor1
parents:
diff changeset
109 else
Ritor1
parents:
diff changeset
110 {
Ritor1
parents:
diff changeset
111 pSavegameThumbnails[i].LoadFromFILE(v5, 0, true);
Ritor1
parents:
diff changeset
112 pLODFile.CloseWriteFile();
Ritor1
parents:
diff changeset
113 pSavegameUsedSlots[i] = 1;
Ritor1
parents:
diff changeset
114 }
Ritor1
parents:
diff changeset
115 //LABEL_23:
Ritor1
parents:
diff changeset
116 //Str1 += 280;
Ritor1
parents:
diff changeset
117 //++pTex;
Ritor1
parents:
diff changeset
118 //++Dest;
Ritor1
parents:
diff changeset
119 //++v3;
Ritor1
parents:
diff changeset
120 //if ( v3 >= (signed int)uNumSavegameFiles )
Ritor1
parents:
diff changeset
121 // goto LABEL_24;
Ritor1
parents:
diff changeset
122 //}
Ritor1
parents:
diff changeset
123 //goto LABEL_22;
Ritor1
parents:
diff changeset
124 }
Ritor1
parents:
diff changeset
125
Ritor1
parents:
diff changeset
126 //LABEL_24:
Ritor1
parents:
diff changeset
127 pLODFile.FreeSubIndexAndIO();
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 43
diff changeset
128 if ( pCurrentScreen == SCREEN_SAVEGAME )
0
Ritor1
parents:
diff changeset
129 {
Ritor1
parents:
diff changeset
130 v6 = pIcons_LOD->LoadTexture("x_d", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
131 v10 = (TEXTURE_TYPE)2;
Ritor1
parents:
diff changeset
132 v8 = "LS_saveD";
Ritor1
parents:
diff changeset
133 }
Ritor1
parents:
diff changeset
134 else
Ritor1
parents:
diff changeset
135 {
Ritor1
parents:
diff changeset
136 v6 = pIcons_LOD->LoadTexture("x_d", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
137 v10 = (TEXTURE_TYPE)2;
Ritor1
parents:
diff changeset
138 v8 = "LS_loadD";
Ritor1
parents:
diff changeset
139 }
Ritor1
parents:
diff changeset
140 uTextureID_x_d = v6;
Ritor1
parents:
diff changeset
141 uTextureID_LS_ = pIcons_LOD->LoadTexture(v8, v10);
Ritor1
parents:
diff changeset
142 uTextureID_AR_UP_DN = pIcons_LOD->LoadTexture("AR_UP_DN", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
143 uTextureID_AR_DN_DN = pIcons_LOD->LoadTexture("AR_DN_DN", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
144 pGUIWindow_CurrentMenu->CreateButton(21, 198, 191, 18, 1, 0, 0xA5, 0, 0, "", 0);
Ritor1
parents:
diff changeset
145 pGUIWindow_CurrentMenu->CreateButton(21, 219, 191, 18, 1, 0, 0xA5, 1, 0, "", 0);
Ritor1
parents:
diff changeset
146 pGUIWindow_CurrentMenu->CreateButton(21, 240, 191, 18, 1, 0, 0xA5, 2, 0, "", 0);
Ritor1
parents:
diff changeset
147 pGUIWindow_CurrentMenu->CreateButton(21, 261, 191, 18, 1, 0, 0xA5, 3, 0, "", 0);
Ritor1
parents:
diff changeset
148 pGUIWindow_CurrentMenu->CreateButton(21, 282, 191, 18, 1, 0, 0xA5, 4, 0, "", 0);
Ritor1
parents:
diff changeset
149 pGUIWindow_CurrentMenu->CreateButton(21, 303, 191, 18, 1, 0, 0xA5, 5, 0, "", 0);
Ritor1
parents:
diff changeset
150 pGUIWindow_CurrentMenu->CreateButton(21, 324, 191, 18, 1, 0, 0xA5, 6, 0, "", 0);
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
151 pBtnLoadSlot = pGUIWindow_CurrentMenu->CreateButton(241, 302, 105, 40, 1, 0, 0xA4, 0, 0, "",
0
Ritor1
parents:
diff changeset
152 (Texture *)(uTextureID_LS_ != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_LS_] : 0), 0);
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
153 pBtnCancel = pGUIWindow_CurrentMenu->CreateButton(350, 302, 105, 40, 1, 0, 0xA6, 0, 0, "",
0
Ritor1
parents:
diff changeset
154 (Texture *)(uTextureID_x_d != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_d] : 0), 0);
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
155 pBtnArrowUp = pGUIWindow_CurrentMenu->CreateButton(215, 199, 17, 17, 1, 0, 0xA2, 0, 0, "",
0
Ritor1
parents:
diff changeset
156 (Texture *)(uTextureID_AR_UP_DN != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_AR_UP_DN] : 0), 0);
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
157 pBtnDownArrow = pGUIWindow_CurrentMenu->CreateButton(215, 0x143, 0x11, 0x11, 1, 0, 0xA3, uNumSavegameFiles, 0, "",
0
Ritor1
parents:
diff changeset
158 (Texture *)(uTextureID_AR_DN_DN != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_AR_DN_DN] : 0), 0);
Ritor1
parents:
diff changeset
159 v16 = -1;
Ritor1
parents:
diff changeset
160 //ptr_69BD58 = v7;
Ritor1
parents:
diff changeset
161 }
Ritor1
parents:
diff changeset
162
Ritor1
parents:
diff changeset
163 //----- (0045E93E) --------------------------------------------------------
Ritor1
parents:
diff changeset
164 void __cdecl GameUI_DrawSaveMenu()
Ritor1
parents:
diff changeset
165 {
Ritor1
parents:
diff changeset
166 unsigned int v0; // ebp@4
Ritor1
parents:
diff changeset
167 unsigned int v1; // eax@4
Ritor1
parents:
diff changeset
168 unsigned int *v2; // ebp@6
Ritor1
parents:
diff changeset
169 char *v3; // eax@7
Ritor1
parents:
diff changeset
170 FILE *v4; // eax@11
Ritor1
parents:
diff changeset
171 FILE *v5; // eax@11
Ritor1
parents:
diff changeset
172 const char *v6; // ST64_4@14
Ritor1
parents:
diff changeset
173 GUIButton *v7; // eax@16
Ritor1
parents:
diff changeset
174 char *v8; // [sp+10h] [bp-254h]@6
Ritor1
parents:
diff changeset
175 SavegameHeader *Dest; // [sp+14h] [bp-250h]@6
Ritor1
parents:
diff changeset
176 RGBTexture *this_; // [sp+18h] [bp-24Ch]@6
Ritor1
parents:
diff changeset
177 LODWriteableFile v11; // [sp+1Ch] [bp-248h]@1
Ritor1
parents:
diff changeset
178 int v12; // [sp+260h] [bp-4h]@1
Ritor1
parents:
diff changeset
179
Ritor1
parents:
diff changeset
180 ++pIcons_LOD->uTexturePacksCount;
Ritor1
parents:
diff changeset
181 v12 = 0;
Ritor1
parents:
diff changeset
182 if ( !pIcons_LOD->uNumPrevLoadedFiles )
Ritor1
parents:
diff changeset
183 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
Ritor1
parents:
diff changeset
184 memset(pSavegameUsedSlots, 0, 0xB4u);
Ritor1
parents:
diff changeset
185 memset(&pSavegameThumbnails, 0, 0x708u);
Ritor1
parents:
diff changeset
186 uTextureID_loadsave = pIcons_LOD->LoadTexture("loadsave", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
187 uTextureID_load_up = pIcons_LOD->LoadTexture("load_up", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
188 uTextureID_save_up = pIcons_LOD->LoadTexture("save_up", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
189 uTextureID_LS_loadU = pIcons_LOD->LoadTexture("LS_loadU", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
190 uTextureID_LS_saveU = pIcons_LOD->LoadTexture("LS_saveU", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
191 uTextureID_x_u = pIcons_LOD->LoadTexture("x_u", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
192 pRenderer->DrawTextureIndexed(
Ritor1
parents:
diff changeset
193 8u,
Ritor1
parents:
diff changeset
194 8u,
Ritor1
parents:
diff changeset
195 (Texture *)(uTextureID_loadsave != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_loadsave] : 0));
151
9abdd40a107b pCurrentScreen
Ritor1
parents: 43
diff changeset
196 if ( pCurrentScreen == SCREEN_SAVEGAME )
0
Ritor1
parents:
diff changeset
197 {
Ritor1
parents:
diff changeset
198 v0 = uTextureID_save_up;
Ritor1
parents:
diff changeset
199 v1 = uTextureID_LS_saveU;
Ritor1
parents:
diff changeset
200 }
Ritor1
parents:
diff changeset
201 else
Ritor1
parents:
diff changeset
202 {
Ritor1
parents:
diff changeset
203 v0 = uTextureID_load_up;
Ritor1
parents:
diff changeset
204 v1 = uTextureID_LS_loadU;
Ritor1
parents:
diff changeset
205 }
Ritor1
parents:
diff changeset
206 pRenderer->DrawTextureIndexed(0xF1u, 0x12Eu, (Texture *)(v1 != -1 ? (int)&pIcons_LOD->pTextures[v1] : 0));
Ritor1
parents:
diff changeset
207 pRenderer->DrawTextureIndexed(
Ritor1
parents:
diff changeset
208 0x15Fu,
Ritor1
parents:
diff changeset
209 0x12Eu,
Ritor1
parents:
diff changeset
210 (Texture *)(uTextureID_x_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_u] : 0));
Ritor1
parents:
diff changeset
211 pRenderer->DrawTextureIndexed(0x12u, 0x8Du, (Texture *)(v0 != -1 ? (int)&pIcons_LOD->pTextures[v0] : 0));
Ritor1
parents:
diff changeset
212 pGUIWindow_CurrentMenu->DrawText(pFontSmallnum, 25, 199, 0, pGlobalTXT_LocalizationStrings[505], 0, 0, 0);
Ritor1
parents:
diff changeset
213 pRenderer->Present();
Ritor1
parents:
diff changeset
214 pSavegameList->Initialize(1u);
Ritor1
parents:
diff changeset
215 v11.AllocSubIndicesAndIO(0x12Cu, 0);
Ritor1
parents:
diff changeset
216 v2 = pSavegameUsedSlots;
Ritor1
parents:
diff changeset
217 Dest = pSavegameHeader;
Ritor1
parents:
diff changeset
218 this_ = pSavegameThumbnails;
Ritor1
parents:
diff changeset
219 v8 = (char *)pSavegameList->pSavesNames;
Ritor1
parents:
diff changeset
220 do
Ritor1
parents:
diff changeset
221 {
Ritor1
parents:
diff changeset
222 v3 = v8;
Ritor1
parents:
diff changeset
223 if ( !*v8 )
Ritor1
parents:
diff changeset
224 v3 = "1.mm7";
Ritor1
parents:
diff changeset
225 sprintf(pTmpBuf, "saves\\%s", v3);
Ritor1
parents:
diff changeset
226 if ( _access(pTmpBuf, 0) || _access(pTmpBuf, 6) )
Ritor1
parents:
diff changeset
227 {
Ritor1
parents:
diff changeset
228 v6 = pGlobalTXT_LocalizationStrings[72];
Ritor1
parents:
diff changeset
229 *v2 = 0;
Ritor1
parents:
diff changeset
230 strcpy(Dest->pName, v6);
Ritor1
parents:
diff changeset
231 }
Ritor1
parents:
diff changeset
232 else
Ritor1
parents:
diff changeset
233 {
Ritor1
parents:
diff changeset
234 v11.LoadFile(pTmpBuf, 1);
Ritor1
parents:
diff changeset
235 v4 = v11.FindContainer("header.bin", 1);
Ritor1
parents:
diff changeset
236 fread(Dest, 0x64u, 1u, v4);
Ritor1
parents:
diff changeset
237 v5 = v11.FindContainer("image.pcx", 1);
Ritor1
parents:
diff changeset
238 if ( v5 )
Ritor1
parents:
diff changeset
239 {
Ritor1
parents:
diff changeset
240 this_->LoadFromFILE(v5, 0, 1u);
Ritor1
parents:
diff changeset
241 v11.CloseWriteFile();
Ritor1
parents:
diff changeset
242 *v2 = 1;
Ritor1
parents:
diff changeset
243 }
Ritor1
parents:
diff changeset
244 else
Ritor1
parents:
diff changeset
245 {
Ritor1
parents:
diff changeset
246 *v2 = 0;
Ritor1
parents:
diff changeset
247 }
Ritor1
parents:
diff changeset
248 }
Ritor1
parents:
diff changeset
249 v8 += 280;
Ritor1
parents:
diff changeset
250 ++this_;
Ritor1
parents:
diff changeset
251 ++Dest;
Ritor1
parents:
diff changeset
252 ++v2;
Ritor1
parents:
diff changeset
253 }
Ritor1
parents:
diff changeset
254 while ( (signed int)v8 < (signed int)&_69FBB4_ptr_iterator_end );
Ritor1
parents:
diff changeset
255 v11.FreeSubIndexAndIO();
Ritor1
parents:
diff changeset
256 uTextureID_x_d = pIcons_LOD->LoadTexture("x_d", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
257 uTextureID_LS_ = pIcons_LOD->LoadTexture("LS_saveD", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
258 uTextureID_AR_UP_DN = pIcons_LOD->LoadTexture("AR_UP_DN", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
259 uTextureID_AR_DN_DN = pIcons_LOD->LoadTexture("AR_DN_DN", TEXTURE_16BIT_PALETTE);
Ritor1
parents:
diff changeset
260 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, (WindowType)(WINDOW_Chest|WINDOW_MainMenu|0x2), 0, 0);
Ritor1
parents:
diff changeset
261 pGUIWindow_CurrentMenu->CreateButton(21u, 198u, 0xBFu, 0x12u, 1, 0, 0xA5u, 0, 0, "", 0);
Ritor1
parents:
diff changeset
262 pGUIWindow_CurrentMenu->CreateButton(21u, 218u, 0xBFu, 0x12u, 1, 0, 0xA5u, 1u, 0, "", 0);
Ritor1
parents:
diff changeset
263 pGUIWindow_CurrentMenu->CreateButton(21u, 238u, 0xBFu, 0x12u, 1, 0, 0xA5u, 2u, 0, "", 0);
Ritor1
parents:
diff changeset
264 pGUIWindow_CurrentMenu->CreateButton(21u, 258u, 0xBFu, 0x12u, 1, 0, 0xA5u, 3u, 0, "", 0);
Ritor1
parents:
diff changeset
265 pGUIWindow_CurrentMenu->CreateButton(21u, 278u, 0xBFu, 0x12u, 1, 0, 0xA5u, 4u, 0, "", 0);
Ritor1
parents:
diff changeset
266 pGUIWindow_CurrentMenu->CreateButton(21u, 298u, 0xBFu, 0x12u, 1, 0, 0xA5u, 5u, 0, "", 0);
Ritor1
parents:
diff changeset
267 pGUIWindow_CurrentMenu->CreateButton(21u, 318u, 0xBFu, 0x12u, 1, 0, 0xA5u, 6u, 0, "", 0);
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
268 pBtnLoadSlot = pGUIWindow_CurrentMenu->CreateButton(0xF1u, 0x12Eu, 0x69u, 0x28u, 1, 0, 0xA4u, 0, 0, "",
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
269 (Texture *)(uTextureID_LS_ != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_LS_] : 0), 0);
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
270 pBtnCancel = pGUIWindow_CurrentMenu->CreateButton(0x15Eu, 0x12Eu, 0x69u, 0x28u, 1, 0, 0xA6u, 0, 0, "",
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
271 (Texture *)(uTextureID_x_d != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_d] : 0), 0);
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
272 pBtnArrowUp = pGUIWindow_CurrentMenu->CreateButton( 0xD7u, 0xC7u, 0x11u, 0x11u, 1, 0, 0xA2u, 0, 0, "",
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
273 (Texture *)(uTextureID_AR_UP_DN != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_AR_UP_DN] : 0), 0);
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
274 pBtnDownArrow = pGUIWindow_CurrentMenu->CreateButton( 0xD7u, 0x143u, 0x11u, 0x11u, 1, 0, 0xA3u, 0x22u, 0, "",
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
275 (Texture *)(uTextureID_AR_DN_DN != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_AR_DN_DN] : 0), 0);
0
Ritor1
parents:
diff changeset
276 v12 = -1;
Ritor1
parents:
diff changeset
277 }