Mercurial > mm7
comparison GUIButton.cpp @ 1296:c423f946dc99
moving files continue
author | Ritor1 |
---|---|
date | Tue, 18 Jun 2013 17:28:11 +0600 |
parents | 86a83e12d795 |
children | 5450af4f57ef |
comparison
equal
deleted
inserted
replaced
1295:86a83e12d795 | 1296:c423f946dc99 |
---|---|
1 #include "GUIWindow.h" | 1 #include "GUIWindow.h" |
2 #include "GUIFont.h" | 2 #include "GUIFont.h" |
3 | 3 |
4 | 4 #include "mm7_data.h" |
5 #include "LOD.h" | |
5 | 6 |
6 | 7 |
7 | 8 |
8 | 9 |
9 | 10 |
178 //----- (004B36CC) -------------------------------------------------------- | 179 //----- (004B36CC) -------------------------------------------------------- |
179 void CreateButtonInColumn( int column_pos, unsigned int control_id ) | 180 void CreateButtonInColumn( int column_pos, unsigned int control_id ) |
180 { | 181 { |
181 pDialogueWindow->CreateButton( 480, 30 * column_pos + 146, 140, 30, 1, 0, UIMSG_SelectShopDialogueOption, control_id, 0, "", 0); | 182 pDialogueWindow->CreateButton( 480, 30 * column_pos + 146, 140, 30, 1, 0, UIMSG_SelectShopDialogueOption, control_id, 0, "", 0); |
182 } | 183 } |
184 //----- (00419379) -------------------------------------------------------- | |
185 void __cdecl sub_419379() | |
186 { | |
187 GUIButton *pButton; // esi@2 | |
188 | |
189 if ( dword_507CBC ) | |
190 { | |
191 dword_507CBC = 0; | |
192 ptr_507BA4->Release(); | |
193 pBtn_Up->Release(); | |
194 pBtn_Down->Release(); | |
195 pBtn_Down = 0; | |
196 pBtn_Up = 0; | |
197 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext ) | |
198 { | |
199 if ( pButton->msg == UIMSG_InventoryLeftClick ) | |
200 { | |
201 pButton->uX = dword_50698C_uX; | |
202 pButton->uY = dword_506988_uY; | |
203 pButton->uZ = dword_506984_uZ; | |
204 pButton->uW = dword_506980_uW; | |
205 pGUIWindow_CurrentMenu->_41D08F_set_keyboard_control_group(1, 0, 0, 0); | |
206 } | |
207 } | |
208 } | |
209 } | |
210 //----- (00419220) -------------------------------------------------------- | |
211 void __cdecl sub_419220() | |
212 { | |
213 GUIButton *i; // eax@2 | |
214 | |
215 if ( !dword_507CBC ) | |
216 { | |
217 dword_507CBC = 1; | |
218 for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = i->pNext ) | |
219 { | |
220 if ( i->msg == UIMSG_InventoryLeftClick ) | |
221 { | |
222 dword_50698C_uX = i->uX; | |
223 dword_506988_uY = i->uY; | |
224 dword_506984_uZ = i->uZ; | |
225 dword_506980_uW = i->uW; | |
226 i->uW = 0; | |
227 i->uZ = 0; | |
228 i->uY = 0; | |
229 i->uX = 0; | |
230 } | |
231 } | |
232 pBtn_Up = pGUIWindow_CurrentMenu->CreateButton(438, 46, | |
233 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureWidth, | |
234 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureHeight, | |
235 1, 0, UIMSG_ClickAwardsUpBtn, 0, 0, "", | |
236 pIcons_LOD->GetTexture(uTextureID_ar_up_up), | |
237 pIcons_LOD->GetTexture(uTextureID_ar_up_dn), 0); | |
238 pBtn_Down = pGUIWindow_CurrentMenu->CreateButton(438, 292, | |
239 pIcons_LOD->GetTexture(uTextureID_ar_dn_up)->uTextureWidth, | |
240 pIcons_LOD->GetTexture(uTextureID_ar_dn_up)->uTextureHeight, | |
241 1, 0, UIMSG_ClickAwardsDownBtn, 0, 0, "", | |
242 pIcons_LOD->GetTexture(uTextureID_ar_dn_up), | |
243 pIcons_LOD->GetTexture(uTextureID_ar_dn_dn), 0); | |
244 ptr_507BA4 = pGUIWindow_CurrentMenu->CreateButton(440, 62, 16, 232, 1, 0, UIMSG_ClickAwardScrollBar, 0, 0, "", 0); | |
245 } | |
246 } |