Mercurial > mm7
comparison Chest.cpp @ 1443:a8b1bbac95d4
Слияние
author | Ritor1 |
---|---|
date | Fri, 02 Aug 2013 23:59:25 +0600 |
parents | b67a3e0d6fc3 110eac219e5a |
children | 6de9c1316852 |
comparison
equal
deleted
inserted
replaced
1442:c3bfa7e7cee1 | 1443:a8b1bbac95d4 |
---|---|
20 #include "Math.h" | 20 #include "Math.h" |
21 #include "Texts.h" | 21 #include "Texts.h" |
22 #include "ObjectList.h" | 22 #include "ObjectList.h" |
23 #include "GUIWindow.h" | 23 #include "GUIWindow.h" |
24 #include "Time.h" | 24 #include "Time.h" |
25 #include "Overlays.h" | |
25 | 26 |
26 #include "mm7_data.h" | 27 #include "mm7_data.h" |
27 #include "MM7.h" | 28 #include "MM7.h" |
28 #include "SpriteObject.h" | 29 #include "SpriteObject.h" |
29 #include "Mouse.h" | 30 #include "Mouse.h" |
191 pBtn_ExitCancel = pChestWindow->CreateButton(471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], pIcons_LOD->GetTexture(uExitCancelTextureId), 0);// Exit | 192 pBtn_ExitCancel = pChestWindow->CreateButton(471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], pIcons_LOD->GetTexture(uExitCancelTextureId), 0);// Exit |
192 pChestWindow->CreateButton( 7, 8, 460, 343, 1, 0, UIMSG_CHEST_ClickItem, 0, 0, "", 0); | 193 pChestWindow->CreateButton( 7, 8, 460, 343, 1, 0, UIMSG_CHEST_ClickItem, 0, 0, "", 0); |
193 pCurrentScreen = SCREEN_CHEST; | 194 pCurrentScreen = SCREEN_CHEST; |
194 pEventTimer->Pause(); | 195 pEventTimer->Pause(); |
195 return true; | 196 return true; |
197 } | |
198 | |
199 | |
200 //----- (0042038D) -------------------------------------------------------- | |
201 void __cdecl ChestUI_WritePointedObjectStatusString() | |
202 { | |
203 POINT *v0; // esi@2 | |
204 int v1; // ecx@2 | |
205 const char *v2; // eax@3 | |
206 POINT v3; // [sp+0h] [bp-10h]@2 | |
207 POINT a2; // [sp+8h] [bp-8h]@1 | |
208 | |
209 __debugbreak(); // invalid indexing | |
210 if ( pMouse->GetCursorPos(&a2)->y < 350 ) | |
211 { | |
212 v0 = pMouse->GetCursorPos(&a2); | |
213 v1 = pRenderer->pActiveZBuffer[v0->x + pSRZBufferLineOffsets[pMouse->GetCursorPos(&v3)->y]]; | |
214 if ( v1 ) | |
215 { | |
216 auto _w = (ItemGen *)(&pOtherOverlayList->pOverlays[49].field_4 + 2662 * (unsigned int)pChestWindow->ptr_1C | |
217 + 18 * *((short *)&pChests[0].igChestItems[139].uExpireTime | |
218 + v1 + 2662 * (unsigned int)pChestWindow->ptr_1C + 3)); | |
219 | |
220 _w = (ItemGen *)(&pChests[(unsigned int)pChestWindow->ptr_1C] -32 | |
221 + 18 * *((short *)&pChests[(unsigned int)pChestWindow->ptr_1C].igChestItems[139].uExpireTime + v1 + 3)); | |
222 v2 = _w->GetDisplayName(); | |
223 GameUI_SetFooterString(v2); | |
224 } | |
225 } | |
196 } | 226 } |
197 | 227 |
198 //----- (0042092D) -------------------------------------------------------- | 228 //----- (0042092D) -------------------------------------------------------- |
199 void Chest::DrawChestUI(signed int uChestID) | 229 void Chest::DrawChestUI(signed int uChestID) |
200 { | 230 { |