Mercurial > mm7
diff GUIButton.cpp @ 1455:bfe342ae0c1f
DrawPaperdoll cleaning
author | Ritor1 |
---|---|
date | Fri, 09 Aug 2013 17:30:33 +0600 |
parents | 5450af4f57ef |
children | 934074e7fcc1 |
line wrap: on
line diff
--- a/GUIButton.cpp Thu Aug 08 16:34:37 2013 +0600 +++ b/GUIButton.cpp Fri Aug 09 17:30:33 2013 +0600 @@ -208,25 +208,25 @@ } } //----- (00419220) -------------------------------------------------------- -void __cdecl sub_419220() +void __cdecl CreateAwardsScrollBar() { - GUIButton *i; // eax@2 + GUIButton *pButton; // eax@2 if ( !dword_507CBC ) { dword_507CBC = 1; - for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = i->pNext ) + for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext ) { - if ( i->msg == UIMSG_InventoryLeftClick ) + if ( pButton->msg == UIMSG_InventoryLeftClick ) { - dword_50698C_uX = i->uX; - dword_506988_uY = i->uY; - dword_506984_uZ = i->uZ; - dword_506980_uW = i->uW; - i->uW = 0; - i->uZ = 0; - i->uY = 0; - i->uX = 0; + dword_50698C_uX = pButton->uX; + dword_506988_uY = pButton->uY; + dword_506984_uZ = pButton->uZ; + dword_506980_uW = pButton->uW; + pButton->uW = 0; + pButton->uZ = 0; + pButton->uY = 0; + pButton->uX = 0; } } pBtn_Up = pGUIWindow_CurrentMenu->CreateButton(438, 46,