annotate GUIButton.cpp @ 2476:faf21e357a83

mistake in goto cleaning
author zipi
date Thu, 21 Aug 2014 21:26:47 +0100
parents f4af3b203f65
children 68cdef6879a0
rev   line source
2415
f4af3b203f65 LOD.cpp cleaned and search memory corrupt
Ritor1
parents: 2349
diff changeset
1 #define _CRTDBG_MAP_ALLOC
f4af3b203f65 LOD.cpp cleaned and search memory corrupt
Ritor1
parents: 2349
diff changeset
2 #include <stdlib.h>
f4af3b203f65 LOD.cpp cleaned and search memory corrupt
Ritor1
parents: 2349
diff changeset
3 #include <crtdbg.h>
f4af3b203f65 LOD.cpp cleaned and search memory corrupt
Ritor1
parents: 2349
diff changeset
4
2253
aff7a7b072b7 adding _CRT_SECURE_NO_WARNINGS to get rid of a few hundrer annoying warnings + adding count parameter to swprintf
Grumpy7
parents: 2215
diff changeset
5 #define _CRT_SECURE_NO_WARNINGS
2349
7ebc07cd6c53 Adding GUIButton.h
Grumpy7
parents: 2278
diff changeset
6 #include "GUIButton.h"
0
Ritor1
parents:
diff changeset
7 #include "GUIWindow.h"
Ritor1
parents:
diff changeset
8 #include "GUIFont.h"
Ritor1
parents:
diff changeset
9
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
10 #include "mm7_data.h"
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
11 #include "LOD.h"
1297
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
12 #include "Texts.h"
2215
e9625ad08541 fog fix and change 640,480 - window->GetWidth(), window->GetHeight()
Ritor1
parents: 1458
diff changeset
13 #include "OSWindow.h"
0
Ritor1
parents:
diff changeset
14
Ritor1
parents:
diff changeset
15
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17 struct GUIButton *pBtn_CloseBook;
Ritor1
parents:
diff changeset
18 struct GUIButton *pBtn_InstallRemoveSpell;
Ritor1
parents:
diff changeset
19 struct GUIButton *pBtn_Autonotes_Instructors;
Ritor1
parents:
diff changeset
20 struct GUIButton *pBtn_Autonotes_Misc;
Ritor1
parents:
diff changeset
21 struct GUIButton *pBtn_Book_6;
Ritor1
parents:
diff changeset
22 struct GUIButton *pBtn_Book_5;
Ritor1
parents:
diff changeset
23 struct GUIButton *pBtn_Book_4;
Ritor1
parents:
diff changeset
24 struct GUIButton *pBtn_Book_3;
Ritor1
parents:
diff changeset
25 struct GUIButton *pBtn_Book_2;
Ritor1
parents:
diff changeset
26 struct GUIButton *pBtn_Book_1;
Ritor1
parents:
diff changeset
27
Ritor1
parents:
diff changeset
28
Ritor1
parents:
diff changeset
29 struct GUIButton *pPlayerCreationUI_BtnReset;
Ritor1
parents:
diff changeset
30 struct GUIButton *pPlayerCreationUI_BtnOK;
Ritor1
parents:
diff changeset
31 struct GUIButton *pBtn_ExitCancel;
Ritor1
parents:
diff changeset
32 struct GUIButton *pBtn_YES;
Ritor1
parents:
diff changeset
33 struct GUIButton *pPlayerCreationUI_BtnPlus;
Ritor1
parents:
diff changeset
34 struct GUIButton *pPlayerCreationUI_BtnMinus;
Ritor1
parents:
diff changeset
35
Ritor1
parents:
diff changeset
36
Ritor1
parents:
diff changeset
37 struct GUIButton *pButton_RestUI_Main;
Ritor1
parents:
diff changeset
38 struct GUIButton *pButton_RestUI_Exit;
Ritor1
parents:
diff changeset
39 struct GUIButton *pButton_RestUI_Wait5Minutes;
Ritor1
parents:
diff changeset
40 struct GUIButton *pButton_RestUI_WaitUntilDawn;
Ritor1
parents:
diff changeset
41 struct GUIButton *pButton_RestUI_Wait1Hour;
Ritor1
parents:
diff changeset
42
Ritor1
parents:
diff changeset
43
Ritor1
parents:
diff changeset
44 struct GUIButton *pCharacterScreen_ExitBtn;
Ritor1
parents:
diff changeset
45 struct GUIButton *pCharacterScreen_AwardsBtn;
Ritor1
parents:
diff changeset
46 struct GUIButton *pCharacterScreen_InventoryBtn;
Ritor1
parents:
diff changeset
47 struct GUIButton *pCharacterScreen_SkillsBtn;
Ritor1
parents:
diff changeset
48 struct GUIButton *pCharacterScreen_StatsBtn;
Ritor1
parents:
diff changeset
49 struct GUIButton *pCharacterScreen_DollBtn;
Ritor1
parents:
diff changeset
50 struct GUIButton *pCharacterScreen_DetalizBtn;
Ritor1
parents:
diff changeset
51
Ritor1
parents:
diff changeset
52
Ritor1
parents:
diff changeset
53 struct GUIButton *pBtn_NPCRight;
Ritor1
parents:
diff changeset
54 struct GUIButton *pBtn_NPCLeft;
Ritor1
parents:
diff changeset
55 struct GUIButton *pBtn_GameSettings;
Ritor1
parents:
diff changeset
56 struct GUIButton *pBtn_QuickReference;
Ritor1
parents:
diff changeset
57 struct GUIButton *pBtn_CastSpell;
Ritor1
parents:
diff changeset
58 struct GUIButton *pBtn_Rest;
Ritor1
parents:
diff changeset
59 struct GUIButton *pBtn_History;
Ritor1
parents:
diff changeset
60 struct GUIButton *pBtn_Calendar;
Ritor1
parents:
diff changeset
61 struct GUIButton *pBtn_Maps;
Ritor1
parents:
diff changeset
62 struct GUIButton *pBtn_Autonotes;
Ritor1
parents:
diff changeset
63 struct GUIButton *pBtn_Quests;
Ritor1
parents:
diff changeset
64
Ritor1
parents:
diff changeset
65
2278
0cd17b0d36c2 MMT_MainMenu
Ritor1
parents: 2268
diff changeset
66 struct GUIButton *pMMT_MainMenu_BtnMM6;
0cd17b0d36c2 MMT_MainMenu
Ritor1
parents: 2268
diff changeset
67 struct GUIButton *pMMT_MainMenu_BtnMM7;
0cd17b0d36c2 MMT_MainMenu
Ritor1
parents: 2268
diff changeset
68 struct GUIButton *pMMT_MainMenu_BtnMM8;
0cd17b0d36c2 MMT_MainMenu
Ritor1
parents: 2268
diff changeset
69 struct GUIButton *pMMT_MainMenu_BtnContinue;
0cd17b0d36c2 MMT_MainMenu
Ritor1
parents: 2268
diff changeset
70 struct GUIButton *pMMT_MainMenu_BtnExit;
0cd17b0d36c2 MMT_MainMenu
Ritor1
parents: 2268
diff changeset
71
0cd17b0d36c2 MMT_MainMenu
Ritor1
parents: 2268
diff changeset
72
0
Ritor1
parents:
diff changeset
73 struct GUIButton *pMainMenu_BtnExit;
Ritor1
parents:
diff changeset
74 struct GUIButton *pMainMenu_BtnCredits;
Ritor1
parents:
diff changeset
75 struct GUIButton *pMainMenu_BtnLoad;
Ritor1
parents:
diff changeset
76 struct GUIButton *pMainMenu_BtnNew;
Ritor1
parents:
diff changeset
77
Ritor1
parents:
diff changeset
78
Ritor1
parents:
diff changeset
79 struct GUIButton *pBtn_Up;
Ritor1
parents:
diff changeset
80 struct GUIButton *pBtn_Down;
Ritor1
parents:
diff changeset
81 struct GUIButton *ptr_507BA4;
Ritor1
parents:
diff changeset
82
Ritor1
parents:
diff changeset
83
Ritor1
parents:
diff changeset
84 struct GUIWindow *pPrimaryWindow;
Ritor1
parents:
diff changeset
85 struct GUIWindow *pChestWindow;
Ritor1
parents:
diff changeset
86 struct GUIWindow *pDialogueWindow;
336
ea55d6414029 Event_proceccor preliminary
Gloval
parents: 2
diff changeset
87 struct GUIWindow *window_SpeakInHouse;
0
Ritor1
parents:
diff changeset
88 struct GUIWindow *pGUIWindow_ScrollWindow;
Ritor1
parents:
diff changeset
89 struct GUIWindow *ptr_507BC8;
Ritor1
parents:
diff changeset
90 struct GUIWindow *pGUIWindow_CurrentMenu;
Ritor1
parents:
diff changeset
91 struct GUIWindow *ptr_507BD0;
Ritor1
parents:
diff changeset
92 struct GUIWindow *pGUIWindow_Settings;
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1455
diff changeset
93 struct GUIWindow *pModalWindow;
0
Ritor1
parents:
diff changeset
94 struct GUIWindow *pGUIWindow_EscMessageWindow;
Ritor1
parents:
diff changeset
95 struct GUIWindow *pBooksWindow;
Ritor1
parents:
diff changeset
96 struct GUIWindow *pGUIWindow2;
Ritor1
parents:
diff changeset
97
Ritor1
parents:
diff changeset
98
Ritor1
parents:
diff changeset
99 struct GUIButton *pBtn_Resume;
Ritor1
parents:
diff changeset
100 struct GUIButton *pBtn_QuitGame;
Ritor1
parents:
diff changeset
101 struct GUIButton *pBtn_GameControls;
Ritor1
parents:
diff changeset
102 struct GUIButton *pBtn_LoadGame;
Ritor1
parents:
diff changeset
103 struct GUIButton *pBtn_SaveGame;
Ritor1
parents:
diff changeset
104 struct GUIButton *pBtn_NewGame;
Ritor1
parents:
diff changeset
105
Ritor1
parents:
diff changeset
106 struct GUIButton *pBtn_SliderRight;
Ritor1
parents:
diff changeset
107 struct GUIButton *pBtn_SliderLeft;
Ritor1
parents:
diff changeset
108
Ritor1
parents:
diff changeset
109
2
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
110 struct GUIButton *pBtnDownArrow;
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
111 struct GUIButton *pBtnArrowUp;
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
112 struct GUIButton *pBtnCancel;
89240115d392 MainMenuBtn(work)
Ritor1
parents: 0
diff changeset
113 struct GUIButton *pBtnLoadSlot;
0
Ritor1
parents:
diff changeset
114
Ritor1
parents:
diff changeset
115
1202
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1018
diff changeset
116 std::array<GUIButton*, 4> pCreationUI_BtnPressRight2;
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1018
diff changeset
117 std::array<GUIButton*, 4> pCreationUI_BtnPressLeft2;
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1018
diff changeset
118 std::array<GUIButton*, 4> pCreationUI_BtnPressLeft;
0dbf6c4dd029 arrays to std::arrays phase 1
Grumpy7
parents: 1018
diff changeset
119 std::array<GUIButton*, 4> pCreationUI_BtnPressRight;
0
Ritor1
parents:
diff changeset
120
Ritor1
parents:
diff changeset
121
Ritor1
parents:
diff changeset
122
Ritor1
parents:
diff changeset
123
Ritor1
parents:
diff changeset
124
Ritor1
parents:
diff changeset
125
Ritor1
parents:
diff changeset
126 //----- (0041D0D8) --------------------------------------------------------
697
2dfb67633b01 GUIButton Release
zipi
parents: 336
diff changeset
127 void GUIButton::Release()
0
Ritor1
parents:
diff changeset
128 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
129 if ( this )
0
Ritor1
parents:
diff changeset
130 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
131 if ( this == this->pParent->pControlsHead )
0
Ritor1
parents:
diff changeset
132 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
133 if ( this->pNext )
0
Ritor1
parents:
diff changeset
134 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
135 this->pParent->pControlsHead = this->pNext;
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
136 this->pNext->pPrev = 0;
0
Ritor1
parents:
diff changeset
137 }
Ritor1
parents:
diff changeset
138 else
Ritor1
parents:
diff changeset
139 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
140 this->pParent->pControlsHead = 0;
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
141 this->pParent->pControlsTail = 0;
0
Ritor1
parents:
diff changeset
142 }
Ritor1
parents:
diff changeset
143 }
Ritor1
parents:
diff changeset
144 else
Ritor1
parents:
diff changeset
145 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
146 if ( this->pNext )
0
Ritor1
parents:
diff changeset
147 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
148 this->pPrev->pNext = this->pNext;
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
149 this->pNext->pPrev = this->pPrev;
0
Ritor1
parents:
diff changeset
150 }
Ritor1
parents:
diff changeset
151 else
Ritor1
parents:
diff changeset
152 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
153 this->pPrev->pNext = 0;
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
154 this->pParent->pControlsTail = this->pPrev;
0
Ritor1
parents:
diff changeset
155 }
Ritor1
parents:
diff changeset
156 }
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
157 --this->pParent->uNumControls;
0
Ritor1
parents:
diff changeset
158 }
Ritor1
parents:
diff changeset
159 }
Ritor1
parents:
diff changeset
160
Ritor1
parents:
diff changeset
161 //----- (00415180) --------------------------------------------------------
1006
e865f349aa41 ui cleanup
Gloval
parents: 832
diff changeset
162 void GUIButton::DrawLabel( const char *label_text, struct GUIFont *pFont, int a5, int uFontShadowColor )
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
163 {
0
Ritor1
parents:
diff changeset
164 //strlen(edx0);
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
165 return pParent->DrawText(pFont,
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
166 this->uX + (signed int)(this->uWidth - pFont->GetLineWidth(label_text)) / 2,
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
167 this->uY + (signed int)(this->uHeight - pFont->uFontHeight) / 2,
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
168 a5, label_text, 0, 0, uFontShadowColor);
0
Ritor1
parents:
diff changeset
169 }
1295
86a83e12d795 moving files
Ritor1
parents: 1262
diff changeset
170 //----- (004B36CC) --------------------------------------------------------
86a83e12d795 moving files
Ritor1
parents: 1262
diff changeset
171 void CreateButtonInColumn( int column_pos, unsigned int control_id )
86a83e12d795 moving files
Ritor1
parents: 1262
diff changeset
172 {
2268
fd788d2e9585 EventProcessor cleaned and ODM_NearClip fix
Ritor1
parents: 2253
diff changeset
173 pDialogueWindow->CreateButton( 480, 30 * column_pos + 146, 140, 30, 1, 0, UIMSG_SelectShopDialogueOption, control_id, 0, "", 0);
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
174 }
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
175 //----- (00419379) --------------------------------------------------------
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1455
diff changeset
176 void ReleaseAwardsScrollBar()
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
177 {
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
178 GUIButton *pButton; // esi@2
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
179
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1455
diff changeset
180 if ( awards_scroll_bar_created )
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
181 {
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1455
diff changeset
182 awards_scroll_bar_created = false;
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
183 ptr_507BA4->Release();
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
184 pBtn_Up->Release();
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
185 pBtn_Down->Release();
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
186 pBtn_Down = 0;
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
187 pBtn_Up = 0;
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
188 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext )
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
189 {
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
190 if ( pButton->msg == UIMSG_InventoryLeftClick )
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
191 {
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
192 pButton->uX = dword_50698C_uX;
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
193 pButton->uY = dword_506988_uY;
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
194 pButton->uZ = dword_506984_uZ;
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
195 pButton->uW = dword_506980_uW;
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
196 pGUIWindow_CurrentMenu->_41D08F_set_keyboard_control_group(1, 0, 0, 0);
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
197 }
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
198 }
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
199 }
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
200 }
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
201 //----- (00419220) --------------------------------------------------------
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1455
diff changeset
202 void CreateAwardsScrollBar()
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
203 {
1455
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
204 GUIButton *pButton; // eax@2
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
205
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1455
diff changeset
206 if ( !awards_scroll_bar_created )
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
207 {
1458
934074e7fcc1 ModalWindow
Nomad
parents: 1455
diff changeset
208 awards_scroll_bar_created = 1;
1455
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
209 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext )
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
210 {
1455
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
211 if ( pButton->msg == UIMSG_InventoryLeftClick )
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
212 {
1455
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
213 dword_50698C_uX = pButton->uX;
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
214 dword_506988_uY = pButton->uY;
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
215 dword_506984_uZ = pButton->uZ;
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
216 dword_506980_uW = pButton->uW;
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
217 pButton->uW = 0;
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
218 pButton->uZ = 0;
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
219 pButton->uY = 0;
bfe342ae0c1f DrawPaperdoll cleaning
Ritor1
parents: 1297
diff changeset
220 pButton->uX = 0;
1296
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
221 }
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
222 }
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
223 pBtn_Up = pGUIWindow_CurrentMenu->CreateButton(438, 46,
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
224 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureWidth,
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
225 pIcons_LOD->GetTexture(uTextureID_ar_up_up)->uTextureHeight,
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
226 1, 0, UIMSG_ClickAwardsUpBtn, 0, 0, "",
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
227 pIcons_LOD->GetTexture(uTextureID_ar_up_up),
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
228 pIcons_LOD->GetTexture(uTextureID_ar_up_dn), 0);
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
229 pBtn_Down = pGUIWindow_CurrentMenu->CreateButton(438, 292,
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
230 pIcons_LOD->GetTexture(uTextureID_ar_dn_up)->uTextureWidth,
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
231 pIcons_LOD->GetTexture(uTextureID_ar_dn_up)->uTextureHeight,
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
232 1, 0, UIMSG_ClickAwardsDownBtn, 0, 0, "",
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
233 pIcons_LOD->GetTexture(uTextureID_ar_dn_up),
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
234 pIcons_LOD->GetTexture(uTextureID_ar_dn_dn), 0);
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
235 ptr_507BA4 = pGUIWindow_CurrentMenu->CreateButton(440, 62, 16, 232, 1, 0, UIMSG_ClickAwardScrollBar, 0, 0, "", 0);
c423f946dc99 moving files continue
Ritor1
parents: 1295
diff changeset
236 }
1297
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
237 }
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
238 //----- (004BCA33) --------------------------------------------------------
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
239 void UI_CreateEndConversationButton()
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
240 {
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
241 pDialogueWindow->Release();
2215
e9625ad08541 fog fix and change 640,480 - window->GetWidth(), window->GetHeight()
Ritor1
parents: 1458
diff changeset
242 pDialogueWindow = GUIWindow::Create(0, 0, window->GetWidth(), 345, WINDOW_MainMenu, 0, 0);
1297
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
243 pBtn_ExitCancel = pDialogueWindow->CreateButton( 471, 445, 169, 35, 1, 0, UIMSG_Escape, 0, 0,
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
244 pGlobalTXT_LocalizationStrings[74], //"End Conversation"
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
245 pIcons_LOD->GetTexture(uExitCancelTextureId), 0);
5450af4f57ef moving files mm7_x ending
Ritor1
parents: 1296
diff changeset
246 pDialogueWindow->CreateButton(8, 8, 450, 320, 1, 0, UIMSG_BuyInShop_Identify_Repair, 0, 0, "", 0);
1295
86a83e12d795 moving files
Ritor1
parents: 1262
diff changeset
247 }