Mercurial > mm7
comparison GUIButton.cpp @ 1455:bfe342ae0c1f
DrawPaperdoll cleaning
author | Ritor1 |
---|---|
date | Fri, 09 Aug 2013 17:30:33 +0600 |
parents | 5450af4f57ef |
children | 934074e7fcc1 |
comparison
equal
deleted
inserted
replaced
1454:7d3bed7772cb | 1455:bfe342ae0c1f |
---|---|
206 } | 206 } |
207 } | 207 } |
208 } | 208 } |
209 } | 209 } |
210 //----- (00419220) -------------------------------------------------------- | 210 //----- (00419220) -------------------------------------------------------- |
211 void __cdecl sub_419220() | 211 void __cdecl CreateAwardsScrollBar() |
212 { | 212 { |
213 GUIButton *i; // eax@2 | 213 GUIButton *pButton; // eax@2 |
214 | 214 |
215 if ( !dword_507CBC ) | 215 if ( !dword_507CBC ) |
216 { | 216 { |
217 dword_507CBC = 1; | 217 dword_507CBC = 1; |
218 for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = i->pNext ) | 218 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext ) |
219 { | 219 { |
220 if ( i->msg == UIMSG_InventoryLeftClick ) | 220 if ( pButton->msg == UIMSG_InventoryLeftClick ) |
221 { | 221 { |
222 dword_50698C_uX = i->uX; | 222 dword_50698C_uX = pButton->uX; |
223 dword_506988_uY = i->uY; | 223 dword_506988_uY = pButton->uY; |
224 dword_506984_uZ = i->uZ; | 224 dword_506984_uZ = pButton->uZ; |
225 dword_506980_uW = i->uW; | 225 dword_506980_uW = pButton->uW; |
226 i->uW = 0; | 226 pButton->uW = 0; |
227 i->uZ = 0; | 227 pButton->uZ = 0; |
228 i->uY = 0; | 228 pButton->uY = 0; |
229 i->uX = 0; | 229 pButton->uX = 0; |
230 } | 230 } |
231 } | 231 } |
232 pBtn_Up = pGUIWindow_CurrentMenu->CreateButton(438, 46, | 232 pBtn_Up = pGUIWindow_CurrentMenu->CreateButton(438, 46, |
233 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureWidth, | 233 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureWidth, |
234 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureHeight, | 234 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureHeight, |