Mercurial > mm7
comparison GUIWindow.cpp @ 1446:8b4f4c723edd
Questbook_Draw
author | Ritor1 |
---|---|
date | Mon, 05 Aug 2013 22:31:12 +0600 |
parents | 71a2cf416478 |
children | dfc9484ed94c |
comparison
equal
deleted
inserted
replaced
1445:6de9c1316852 | 1446:8b4f4c723edd |
---|---|
431 v1 = this; | 431 v1 = this; |
432 pAudioPlayer->StopChannels(-1, -1); | 432 pAudioPlayer->StopChannels(-1, -1); |
433 InitializeBookFonts(); | 433 InitializeBookFonts(); |
434 v1->CreateButton(475, 445, 158, 34, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], 0); // Close | 434 v1->CreateButton(475, 445, 158, 34, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], 0); // Close |
435 pCurrentScreen = SCREEN_BOOKS; | 435 pCurrentScreen = SCREEN_BOOKS; |
436 num_achieved_awards_2 = 0; | 436 full_num_items_in_book = 0; |
437 dword_506528 = 0; | 437 books_primary_item_per_page = 0; |
438 dword_50651C = 0; | 438 books_page_number = 0; |
439 num_achieved_awards = 0; | 439 num_achieved_awards = 0; |
440 switch (v1->par1C) | 440 switch (v1->par1C) |
441 { | 441 { |
442 case WINDOW_LloydsBeacon:{ | 442 case WINDOW_LloydsBeacon:{ |
443 byte_506360 = 0; | 443 byte_506360 = 0; |
509 pTex_tab_an_7b__zoot_on->uTextureHeight, pTex_tab_an_7b__zoot_on->uTextureHeight, | 509 pTex_tab_an_7b__zoot_on->uTextureHeight, pTex_tab_an_7b__zoot_on->uTextureHeight, |
510 1, 0, UIMSG_ClickBooksBtn, 0xAu, 0, pGlobalTXT_LocalizationStrings[193],// "Scroll Down" | 510 1, 0, UIMSG_ClickBooksBtn, 0xAu, 0, pGlobalTXT_LocalizationStrings[193],// "Scroll Down" |
511 pTex_tab_an_7b__zoot_on, 0); | 511 pTex_tab_an_7b__zoot_on, 0); |
512 num_achieved_awards = 0; | 512 num_achieved_awards = 0; |
513 memset(achieved_awards.data(), 0, 4000); | 513 memset(achieved_awards.data(), 0, 4000); |
514 for ( i = dword_506528; i < 512; ++i ) | 514 for ( i = books_primary_item_per_page; i < 512; ++i ) |
515 { | 515 { |
516 // v14 = (char *)pQuestTable[i];//(&dword_722F10)[4 * i]; | 516 // v14 = (char *)pQuestTable[i];//(&dword_722F10)[4 * i]; |
517 if ( _449B57_test_bit(pParty->_quest_bits, i) && pQuestTable[i] ) | 517 if ( _449B57_test_bit(pParty->_quest_bits, i) && pQuestTable[i] ) |
518 { | 518 { |
519 achieved_awards[num_achieved_awards] = (AwardType)i; | 519 achieved_awards[num_achieved_awards] = (AwardType)i; |
520 ++num_achieved_awards; | 520 ++num_achieved_awards; |
521 } | 521 } |
522 } | 522 } |
523 v12 = num_achieved_awards; | 523 v12 = num_achieved_awards; |
524 num_achieved_awards = 0; | 524 num_achieved_awards = 0; |
525 num_achieved_awards_2 = v12; | 525 full_num_items_in_book = v12; |
526 } | 526 } |
527 break; | 527 break; |
528 | 528 |
529 | 529 |
530 case WINDOW_AutonotesBook: | 530 case WINDOW_AutonotesBook: |
564 UIMSG_ClickBooksBtn, 6, 0, pGlobalTXT_LocalizationStrings[123], pTexture_506374, 0); // "Miscellaneous Notes" | 564 UIMSG_ClickBooksBtn, 6, 0, pGlobalTXT_LocalizationStrings[123], pTexture_506374, 0); // "Miscellaneous Notes" |
565 pBtn_Autonotes_Instructors = v1->CreateButton(pViewport->uViewportTL_X + 397, pViewport->uViewportTL_Y + 302, 50, 34, 1, 0, | 565 pBtn_Autonotes_Instructors = v1->CreateButton(pViewport->uViewportTL_X + 397, pViewport->uViewportTL_Y + 302, 50, 34, 1, 0, |
566 UIMSG_ClickBooksBtn, 7, 0, pGlobalTXT_LocalizationStrings[662], pTexture_50636C, 0); // "Instructors" | 566 UIMSG_ClickBooksBtn, 7, 0, pGlobalTXT_LocalizationStrings[662], pTexture_50636C, 0); // "Instructors" |
567 | 567 |
568 num_achieved_awards = 0; | 568 num_achieved_awards = 0; |
569 for ( i = dword_506528; i < 196; ++i ) | 569 for ( i = books_primary_item_per_page; i < 196; ++i ) |
570 if ( _506568_autonote_type == pAutonoteTxt[i].eType)//dword_72371C[2 * v10] ) | 570 if ( _506568_autonote_type == pAutonoteTxt[i].eType)//dword_72371C[2 * v10] ) |
571 { | 571 { |
572 if ( i ) | 572 if ( i ) |
573 { | 573 { |
574 if ( _449B57_test_bit(pParty->_autonote_bits, i) && pAutonoteTxt[i].pText ) | 574 if ( _449B57_test_bit(pParty->_autonote_bits, i) && pAutonoteTxt[i].pText ) |
650 v26.uFrameZ = 407; | 650 v26.uFrameZ = 407; |
651 v26.uFrameHeight = v2 * 264 / v2; | 651 v26.uFrameHeight = v2 * 264 / v2; |
652 v26.uFrameW = v26.uFrameHeight + 69; | 652 v26.uFrameW = v26.uFrameHeight + 69; |
653 memset(&achieved_awards, 0, 4000); | 653 memset(&achieved_awards, 0, 4000); |
654 memset(byte_5C6D50.data(), 0, 0x64u); | 654 memset(byte_5C6D50.data(), 0, 0x64u); |
655 if ( dword_506528 < 29 ) | 655 if ( books_primary_item_per_page < 29 ) |
656 { | 656 { |
657 v3 = (__int64 *)&pParty->field_3C.field_4F0[2 * dword_506528]; | 657 v3 = (__int64 *)&pParty->field_3C.field_4F0[2 * books_primary_item_per_page]; |
658 for(int i=dword_506528+1;i<dword_506528+31;i++) | 658 for(int i = books_primary_item_per_page+1; i < books_primary_item_per_page + 31; i++) |
659 { | 659 { |
660 v4 = pStorylineText->StoreLine[i].pText; | 660 v4 = pStorylineText->StoreLine[i].pText; |
661 if ( *v3 ) | 661 if ( *v3 ) |
662 { | 662 { |
663 if ( v4 ) | 663 if ( v4 ) |