Mercurial > mm7
comparison GUI/GUIButton.cpp @ 2574:dd36326a9994
More texture refactoring
GetLeather -> DrawTextureCustomHeight
author | a.parshin |
---|---|
date | Mon, 07 Mar 2016 03:48:40 +0200 |
parents | f2a8ed07e921 |
children |
comparison
equal
deleted
inserted
replaced
2573:0c67be4ec900 | 2574:dd36326a9994 |
---|---|
3 #include <crtdbg.h> | 3 #include <crtdbg.h> |
4 | 4 |
5 #define _CRT_SECURE_NO_WARNINGS | 5 #define _CRT_SECURE_NO_WARNINGS |
6 | 6 |
7 #include "Engine/Engine.h" | 7 #include "Engine/Engine.h" |
8 #include "Engine/LOD.h" | |
9 #include "Engine/Texts.h" | |
10 | |
11 #include "GUI/GUIWindow.h" | |
8 | 12 |
9 #include "GUIButton.h" | 13 #include "GUIButton.h" |
10 #include "GUIWindow.h" | 14 #include "GUIWindow.h" |
11 #include "GUIFont.h" | 15 #include "GUIFont.h" |
12 | 16 |
13 #include "Engine/LOD.h" | |
14 #include "Engine/Texts.h" | |
15 #include "OSWindow.h" | 17 #include "OSWindow.h" |
16 | 18 |
17 | 19 |
18 | 20 |
19 struct GUIButton *pBtn_CloseBook; | 21 struct GUIButton *pBtn_CloseBook; |
215 pButton->uY = 0; | 217 pButton->uY = 0; |
216 pButton->uX = 0; | 218 pButton->uX = 0; |
217 } | 219 } |
218 } | 220 } |
219 pBtn_Up = pGUIWindow_CurrentMenu->CreateButton(438, 46, | 221 pBtn_Up = pGUIWindow_CurrentMenu->CreateButton(438, 46, |
220 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureWidth, | 222 ui_ar_up_up->GetWidth(), |
221 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureHeight, | 223 ui_ar_up_up->GetHeight(), |
222 1, 0, UIMSG_ClickAwardsUpBtn, 0, 0, "", | 224 1, 0, UIMSG_ClickAwardsUpBtn, 0, 0, "", |
223 pIcons_LOD->GetTexture(uTextureID_ar_up_up), | 225 ui_ar_up_up, |
224 pIcons_LOD->GetTexture(uTextureID_ar_up_dn), 0); | 226 ui_ar_up_dn, 0); |
225 pBtn_Down = pGUIWindow_CurrentMenu->CreateButton(438, 292, | 227 pBtn_Down = pGUIWindow_CurrentMenu->CreateButton(438, 292, |
226 pIcons_LOD->GetTexture(uTextureID_ar_dn_up)->uTextureWidth, | 228 ui_ar_dn_up->GetWidth(), |
227 pIcons_LOD->GetTexture(uTextureID_ar_dn_up)->uTextureHeight, | 229 ui_ar_dn_up->GetHeight(), |
228 1, 0, UIMSG_ClickAwardsDownBtn, 0, 0, "", | 230 1, 0, UIMSG_ClickAwardsDownBtn, 0, 0, "", |
229 pIcons_LOD->GetTexture(uTextureID_ar_dn_up), | 231 ui_ar_dn_up, |
230 pIcons_LOD->GetTexture(uTextureID_ar_dn_dn), 0); | 232 ui_ar_dn_dn, 0); |
231 ptr_507BA4 = pGUIWindow_CurrentMenu->CreateButton(440, 62, 16, 232, 1, 0, UIMSG_ClickAwardScrollBar, 0, 0, "", 0); | 233 ptr_507BA4 = pGUIWindow_CurrentMenu->CreateButton(440, 62, 16, 232, 1, 0, UIMSG_ClickAwardScrollBar, 0, 0, "", 0); |
232 } | 234 } |
233 } | 235 } |
234 //----- (004BCA33) -------------------------------------------------------- | 236 //----- (004BCA33) -------------------------------------------------------- |
235 void UI_CreateEndConversationButton() | 237 void UI_CreateEndConversationButton() |
236 { | 238 { |
237 pDialogueWindow->Release(); | 239 pDialogueWindow->Release(); |
238 pDialogueWindow = new GUIWindow(0, 0, window->GetWidth(), 345, 0, 0); | 240 pDialogueWindow = new GUIWindow(0, 0, window->GetWidth(), 345, 0, 0); |
239 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, | 241 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0, |
240 pGlobalTXT_LocalizationStrings[74], //"End Conversation" | 242 pGlobalTXT_LocalizationStrings[74], //"End Conversation" |
241 pIcons_LOD->GetTexture(uExitCancelTextureId), 0); | 243 ui_exit_cancel_button_background, 0); |
242 pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); | 244 pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0); |
243 } | 245 } |