comparison UI/Books/UIMapBook.cpp @ 1453:dfc9484ed94c

GetDayPart and Journal_Draw
author Ritor1
date Thu, 08 Aug 2013 16:34:19 +0600
parents 8b4f4c723edd
children 934074e7fcc1
comparison
equal deleted inserted replaced
1452:9add223260ce 1453:dfc9484ed94c
106 pText = pGlobalTXT_LocalizationStrings[375]; // Set Beacon 106 pText = pGlobalTXT_LocalizationStrings[375]; // Set Beacon
107 sprintf(pTmpBuf.data(), "%s", pText); 107 sprintf(pTmpBuf.data(), "%s", pText);
108 pWindow.DrawTitleText(pBook2Font, 0, 22, 0, pTmpBuf.data(), 3); 108 pWindow.DrawTitleText(pBook2Font, 0, 22, 0, pTmpBuf.data(), 3);
109 if ( bRecallingBeacon ) 109 if ( bRecallingBeacon )
110 { 110 {
111 pRenderer->DrawTextureTransparent(pBtn_Book_1->uX, pBtn_Book_1->uY, pTex_tab_an_6b__zoom_on); 111 pRenderer->DrawTextureTransparent(pBtn_Book_1->uX, pBtn_Book_1->uY, pTex_book_button1_on);
112 v19 = pTex_tab_an_6a__zoom_off; 112 v19 = pTex_book_button1_off;
113 } 113 }
114 else 114 else
115 { 115 {
116 pRenderer->DrawTextureTransparent(pBtn_Book_1->uX, pBtn_Book_1->uY, pTex_tab_an_6a__zoom_off); 116 pRenderer->DrawTextureTransparent(pBtn_Book_1->uX, pBtn_Book_1->uY, pTex_book_button1_off);
117 v19 = pTex_tab_an_6b__zoom_on; 117 v19 = pTex_book_button1_on;
118 } 118 }
119 pRenderer->DrawTextureTransparent(pBtn_Book_2->uX, pBtn_Book_2->uY, v19); 119 pRenderer->DrawTextureTransparent(pBtn_Book_2->uX, pBtn_Book_2->uY, v19);
120 uNumMaxBeacons = 1; 120 uNumMaxBeacons = 1;
121 if ( HIBYTE(pPlayer->pActiveSkills[14]) & 1 || (pPlayer->pActiveSkills[14] & 0x80u) != 0 ) 121 if ( HIBYTE(pPlayer->pActiveSkills[14]) & 1 || (pPlayer->pActiveSkills[14] & 0x80u) != 0 )
122 { 122 {
190 190
191 //----- (00413980) -------------------------------------------------------- 191 //----- (00413980) --------------------------------------------------------
192 void BookUI_Map_Draw() 192 void BookUI_Map_Draw()
193 { 193 {
194 unsigned int map_id; // eax@35 194 unsigned int map_id; // eax@35
195 Texture *buttnTxtr; // [sp-4h] [bp-DCh]@3
196 char party_coord[120]; // [sp+Ch] [bp-CCh]@37 195 char party_coord[120]; // [sp+Ch] [bp-CCh]@37
197 GUIWindow map_window; // [sp+84h] [bp-54h]@35 196 GUIWindow map_window; // [sp+84h] [bp-54h]@35
198 unsigned int textrX, textrY;
199 197
200 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pSpellBookPagesTextr_12); 198 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pSpellBookPagesTextr_12);
201 if ( BtnUp_flag || viewparams->field_2C / 128 >= 12 ) 199 if ( BtnUp_flag || viewparams->field_2C / 128 >= 12 )//Button 1
202 { 200 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 408, pViewport->uViewportTL_Y + 2, pTex_book_button1_off);
203 buttnTxtr = pTex_tab_an_6a__zoom_off; 201 else
204 textrY = pViewport->uViewportTL_Y + 2; 202 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 398, pViewport->uViewportTL_Y + 1, pTex_book_button1_on);
205 textrX = pViewport->uViewportTL_X + 408; 203
206 } 204 if ( BtnDown_flag || viewparams->field_2C / 128 <= 3 )//Button 2
207 else 205 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 408, pViewport->uViewportTL_Y + 38, pTex_book_button2_off);
208 { 206 else
209 buttnTxtr = pTex_tab_an_6b__zoom_on; 207 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 398, pViewport->uViewportTL_Y + 38, pTex_book_button2_on);
210 textrY = pViewport->uViewportTL_Y + 1; 208
211 textrX = pViewport->uViewportTL_X + 398; 209 if ( Book_PageBtn3_flag )//Button 3
212 } 210 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 408, pViewport->uViewportTL_Y + 113, pTex_book_button3_off);
213 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); 211 else
214 if ( BtnDown_flag || viewparams->field_2C / 128 <= 3 ) 212 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 398, pViewport->uViewportTL_Y + 113, pTex_book_button3_on);
215 { 213
216 buttnTxtr = pTex_tab_an_7a__zoot_off; 214 if ( Book_PageBtn4_flag )//Button 4
217 textrY = pViewport->uViewportTL_Y + 38; 215 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 408, pViewport->uViewportTL_Y + 150, pTex_book_button4_off);
218 textrX = pViewport->uViewportTL_X + 408; 216 else
219 } 217 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 399, pViewport->uViewportTL_Y + 150, pTex_book_button4_on);
220 else 218
221 { 219 if ( Book_PageBtn5_flag )//Button 5
222 buttnTxtr = pTex_tab_an_7b__zoot_on; 220 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 408, pViewport->uViewportTL_Y + 188, pTex_book_button5_off);
223 textrY = pViewport->uViewportTL_Y + 38; 221 else
224 textrX = pViewport->uViewportTL_X + 398; 222 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 397, pViewport->uViewportTL_Y + 188, pTex_book_button5_on);
225 } 223
226 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); 224 if ( Book_PageBtn6_flag )//Button 6
227 if ( Book_PageBtn3_flag ) 225 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 408, pViewport->uViewportTL_Y + 226, pTex_book_button6_off);
228 { 226 else
229 buttnTxtr = pTexture_506390; 227 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 397, pViewport->uViewportTL_Y + 226, pTex_book_button6_on);
230 textrY = pViewport->uViewportTL_Y + 113; 228
231 textrX = pViewport->uViewportTL_X + 408;
232 }
233 else
234 {
235 buttnTxtr = pTexture_506394;
236 textrY = pViewport->uViewportTL_Y + 113;
237 textrX = pViewport->uViewportTL_X + 398;
238 }
239 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr);
240 if ( Book_PageBtn4_flag )
241 {
242 buttnTxtr = pTexture_506388;
243 textrY = pViewport->uViewportTL_X + 150;
244 textrX = pViewport->uViewportTL_Y + 408;
245 }
246 else
247 {
248 buttnTxtr = pTexture_50638C;
249 textrY = pViewport->uViewportTL_X + 150;
250 textrX = pViewport->uViewportTL_Y + 399;
251 }
252 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr);
253 if ( Book_PageBtn5_flag )
254 {
255 buttnTxtr = pTexture_506380;
256 textrY = pViewport->uViewportTL_Y + 188;
257 textrX = pViewport->uViewportTL_X + 408;
258 }
259 else
260 {
261 buttnTxtr = pTexture_506384;
262 textrY = pViewport->uViewportTL_Y + 188;
263 textrX = pViewport->uViewportTL_X + 397;
264 }
265 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr);
266 if ( Book_PageBtn6_flag )
267 {
268 buttnTxtr = pTexture_506378;
269 textrY = pViewport->uViewportTL_Y + 226;
270 textrX = pViewport->uViewportTL_X + 408;
271 }
272 else
273 {
274 buttnTxtr = pTexture_50637C;
275 textrY = pViewport->uViewportTL_Y + 226;
276 textrX = pViewport->uViewportTL_X + 397;
277 }
278 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr);
279 if ( BtnDown_flag ) 229 if ( BtnDown_flag )
280 viewparams->CenterOnParty2(); 230 viewparams->CenterOnParty2();
281 if ( BtnUp_flag ) 231 if ( BtnUp_flag )
282 viewparams->CenterOnParty(); 232 viewparams->CenterOnParty();
283 if ( Book_PageBtn3_flag ) 233 if ( Book_PageBtn3_flag )