Mercurial > mm7
comparison UIBooks.cpp @ 990:087a9af8e0ec
MessageParam
author | Ritor1 |
---|---|
date | Mon, 13 May 2013 18:03:55 +0600 |
parents | a6ef7125f6e4 |
children | 5876a9cafa3e |
comparison
equal
deleted
inserted
replaced
989:bb37d33934b0 | 990:087a9af8e0ec |
---|---|
394 Texture *v13; // [sp-4h] [bp-60h]@3 | 394 Texture *v13; // [sp-4h] [bp-60h]@3 |
395 Texture *v14; // [sp-4h] [bp-60h]@7 | 395 Texture *v14; // [sp-4h] [bp-60h]@7 |
396 GUIWindow a1; // [sp+8h] [bp-54h]@10 | 396 GUIWindow a1; // [sp+8h] [bp-54h]@10 |
397 | 397 |
398 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pSpellBookPagesTextr_11); | 398 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pSpellBookPagesTextr_11); |
399 if ( dword_506548 || !dword_506528 ) | 399 if ( BtnUp_flag || !dword_506528 ) |
400 { | 400 { |
401 v13 = pTex_tab_an_6a__zoom_off; | 401 v13 = pTex_tab_an_6a__zoom_off; |
402 v11 = pViewport->uViewportTL_Y + 2; | 402 v11 = pViewport->uViewportTL_Y + 2; |
403 v0 = pViewport->uViewportTL_X + 407; | 403 v0 = pViewport->uViewportTL_X + 407; |
404 } | 404 } |
407 v13 = pTex_tab_an_6b__zoom_on; | 407 v13 = pTex_tab_an_6b__zoom_on; |
408 v11 = pViewport->uViewportTL_Y + 1; | 408 v11 = pViewport->uViewportTL_Y + 1; |
409 v0 = pViewport->uViewportTL_X + 398; | 409 v0 = pViewport->uViewportTL_X + 398; |
410 } | 410 } |
411 pRenderer->DrawTextureTransparent(v0, v11, v13); | 411 pRenderer->DrawTextureTransparent(v0, v11, v13); |
412 if ( dword_506544 || dword_506528 + num_achieved_awards >= num_achieved_awards_2 ) | 412 if ( BtnDown_flag || dword_506528 + num_achieved_awards >= num_achieved_awards_2 ) |
413 { | 413 { |
414 v14 = pTex_tab_an_7a__zoot_off; | 414 v14 = pTex_tab_an_7a__zoot_off; |
415 v12 = pViewport->uViewportTL_Y + 38; | 415 v12 = pViewport->uViewportTL_Y + 38; |
416 v1 = pViewport->uViewportTL_X + 407; | 416 v1 = pViewport->uViewportTL_X + 407; |
417 } | 417 } |
441 a1.uFrameHeight = 264; | 441 a1.uFrameHeight = 264; |
442 v4 = LOBYTE(pAutonoteFont->uFontHeight) - 3; | 442 v4 = LOBYTE(pAutonoteFont->uFontHeight) - 3; |
443 a1.uFrameZ = 407; | 443 a1.uFrameZ = 407; |
444 a1.uFrameHeight = v4 * 264 / v4; | 444 a1.uFrameHeight = v4 * 264 / v4; |
445 a1.uFrameW = a1.uFrameHeight + 69; | 445 a1.uFrameW = a1.uFrameHeight + 69; |
446 if ( dword_506544 && dword_506528 + num_achieved_awards < num_achieved_awards_2 ) | 446 if ( BtnDown_flag && dword_506528 + num_achieved_awards < num_achieved_awards_2 ) |
447 { | 447 { |
448 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); | 448 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); |
449 v5 = dword_50651C++; | 449 v5 = dword_50651C++; |
450 dword_506528 += num_achieved_awards; | 450 dword_506528 += num_achieved_awards; |
451 byte_506130[v5] = num_achieved_awards; | 451 byte_506130[v5] = num_achieved_awards; |
452 } | 452 } |
453 if ( dword_506548 && dword_50651C ) | 453 if ( BtnUp_flag && dword_50651C ) |
454 { | 454 { |
455 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); | 455 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); |
456 --dword_50651C; | 456 --dword_50651C; |
457 dword_506528 -= (unsigned __int8)byte_506130[dword_50651C]; | 457 dword_506528 -= (unsigned __int8)byte_506130[dword_50651C]; |
458 } | 458 } |
459 if ( !num_achieved_awards || dword_506528 < 1 ) | 459 if ( !num_achieved_awards || dword_506528 < 1 ) |
460 { | 460 { |
461 dword_506528 = 0; | 461 dword_506528 = 0; |
462 dword_50651C = 0; | 462 dword_50651C = 0; |
463 } | 463 } |
464 dword_506544 = 0; | 464 BtnDown_flag = 0; |
465 v6 = achieved_awards[dword_506528]; | 465 v6 = achieved_awards[dword_506528]; |
466 dword_506548 = 0; | 466 BtnUp_flag = 0; |
467 num_achieved_awards = 0; | 467 num_achieved_awards = 0; |
468 //v7 = *pStorylineText->StoreLine[v6].pText;//*(&pStorylineText->field_0 + 3 * v6); | 468 //v7 = *pStorylineText->StoreLine[v6].pText;//*(&pStorylineText->field_0 + 3 * v6); |
469 v7 = (int)pStorylineText->StoreLine[v6].pText;//*(&pStorylineText->field_0 + 3 * v6); | 469 v7 = (int)pStorylineText->StoreLine[v6].pText;//*(&pStorylineText->field_0 + 3 * v6); |
470 v8 = BuilDialogueString( | 470 v8 = BuilDialogueString( |
471 pStorylineText->StoreLine[v6].pText, | 471 pStorylineText->StoreLine[v6].pText, |
500 Texture *v10; // [sp-4h] [bp-64h]@3 | 500 Texture *v10; // [sp-4h] [bp-64h]@3 |
501 Texture *v11; // [sp-4h] [bp-64h]@7 | 501 Texture *v11; // [sp-4h] [bp-64h]@7 |
502 GUIWindow a1; // [sp+Ch] [bp-54h]@9 | 502 GUIWindow a1; // [sp+Ch] [bp-54h]@9 |
503 | 503 |
504 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pTexture_CurrentBook); | 504 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pTexture_CurrentBook); |
505 if ( dword_506548 || !dword_506528 ) | 505 if ( BtnUp_flag || !dword_506528 ) |
506 { | 506 { |
507 v10 = pTex_tab_an_6a__zoom_off; | 507 v10 = pTex_tab_an_6a__zoom_off; |
508 v8 = pViewport->uViewportTL_Y + 2; | 508 v8 = pViewport->uViewportTL_Y + 2; |
509 v0 = pViewport->uViewportTL_X + 407; | 509 v0 = pViewport->uViewportTL_X + 407; |
510 } | 510 } |
513 v10 = pTex_tab_an_6b__zoom_on; | 513 v10 = pTex_tab_an_6b__zoom_on; |
514 v8 = pViewport->uViewportTL_Y + 1; | 514 v8 = pViewport->uViewportTL_Y + 1; |
515 v0 = pViewport->uViewportTL_X + 398; | 515 v0 = pViewport->uViewportTL_X + 398; |
516 } | 516 } |
517 pRenderer->DrawTextureTransparent(v0, v8, v10); | 517 pRenderer->DrawTextureTransparent(v0, v8, v10); |
518 if ( dword_506544 || dword_506528 + num_achieved_awards >= num_achieved_awards_2 ) | 518 if ( BtnDown_flag || dword_506528 + num_achieved_awards >= num_achieved_awards_2 ) |
519 { | 519 { |
520 v11 = pTex_tab_an_7a__zoot_off; | 520 v11 = pTex_tab_an_7a__zoot_off; |
521 v9 = pViewport->uViewportTL_Y + 38; | 521 v9 = pViewport->uViewportTL_Y + 38; |
522 v1 = pViewport->uViewportTL_X + 407; | 522 v1 = pViewport->uViewportTL_X + 407; |
523 } | 523 } |
539 a1.uFrameY = 70; | 539 a1.uFrameY = 70; |
540 a1.uFrameWidth = 360; | 540 a1.uFrameWidth = 360; |
541 a1.uFrameHeight = 264; | 541 a1.uFrameHeight = 264; |
542 a1.uFrameZ = 407; | 542 a1.uFrameZ = 407; |
543 a1.uFrameW = 333; | 543 a1.uFrameW = 333; |
544 if ( dword_506544 && dword_506528 + num_achieved_awards < num_achieved_awards_2 ) | 544 if ( BtnDown_flag && dword_506528 + num_achieved_awards < num_achieved_awards_2 ) |
545 { | 545 { |
546 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); | 546 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); |
547 v2 = dword_50651C++; | 547 v2 = dword_50651C++; |
548 dword_506528 += num_achieved_awards; | 548 dword_506528 += num_achieved_awards; |
549 byte_506130[v2] = num_achieved_awards; | 549 byte_506130[v2] = num_achieved_awards; |
550 } | 550 } |
551 if ( dword_506548 && dword_50651C ) | 551 if ( BtnUp_flag && dword_50651C ) |
552 { | 552 { |
553 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); | 553 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); |
554 --dword_50651C; | 554 --dword_50651C; |
555 dword_506528 -= (unsigned __int8)byte_506130[dword_50651C]; | 555 dword_506528 -= (unsigned __int8)byte_506130[dword_50651C]; |
556 } | 556 } |
558 { | 558 { |
559 v3 = 0; | 559 v3 = 0; |
560 dword_50651C = 0; | 560 dword_50651C = 0; |
561 dword_506528 = 0; | 561 dword_506528 = 0; |
562 } | 562 } |
563 dword_506544 = 0; | 563 BtnDown_flag = 0; |
564 dword_506548 = 0; | 564 BtnUp_flag = 0; |
565 num_achieved_awards = 0; | 565 num_achieved_awards = 0; |
566 while ( v3 < num_achieved_awards_2 ) | 566 while ( v3 < num_achieved_awards_2 ) |
567 { | 567 { |
568 v4 = achieved_awards[v3]; | 568 v4 = achieved_awards[v3]; |
569 ++num_achieved_awards; | 569 ++num_achieved_awards; |
618 char *v32; // [sp+10h] [bp-58h]@49 | 618 char *v32; // [sp+10h] [bp-58h]@49 |
619 GUIWindow a1; // [sp+14h] [bp-54h]@46 | 619 GUIWindow a1; // [sp+14h] [bp-54h]@46 |
620 | 620 |
621 v31 = 0; | 621 v31 = 0; |
622 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pTexture_AutonotesBook); | 622 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pTexture_AutonotesBook); |
623 if ( dword_506548 || !dword_506528 ) | 623 if ( BtnUp_flag || !dword_506528 ) |
624 { | 624 { |
625 v24 = pTex_tab_an_6a__zoom_off; | 625 v24 = pTex_tab_an_6a__zoom_off; |
626 v17 = pViewport->uViewportTL_Y + 2; | 626 v17 = pViewport->uViewportTL_Y + 2; |
627 v0 = pViewport->uViewportTL_X + 407; | 627 v0 = pViewport->uViewportTL_X + 407; |
628 } | 628 } |
631 v24 = pTex_tab_an_6b__zoom_on; | 631 v24 = pTex_tab_an_6b__zoom_on; |
632 v17 = pViewport->uViewportTL_Y + 1; | 632 v17 = pViewport->uViewportTL_Y + 1; |
633 v0 = pViewport->uViewportTL_X + 398; | 633 v0 = pViewport->uViewportTL_X + 398; |
634 } | 634 } |
635 pRenderer->DrawTextureTransparent(v0, v17, v24); | 635 pRenderer->DrawTextureTransparent(v0, v17, v24); |
636 if ( dword_506544 || dword_506528 + num_achieved_awards >= num_achieved_awards_2 ) | 636 if ( BtnDown_flag || dword_506528 + num_achieved_awards >= num_achieved_awards_2 ) |
637 { | 637 { |
638 v25 = pTex_tab_an_7a__zoot_off; | 638 v25 = pTex_tab_an_7a__zoot_off; |
639 v18 = pViewport->uViewportTL_Y + 38; | 639 v18 = pViewport->uViewportTL_Y + 38; |
640 v1 = pViewport->uViewportTL_X + 407; | 640 v1 = pViewport->uViewportTL_X + 407; |
641 } | 641 } |
644 v25 = pTex_tab_an_7b__zoot_on; | 644 v25 = pTex_tab_an_7b__zoot_on; |
645 v18 = pViewport->uViewportTL_Y + 38; | 645 v18 = pViewport->uViewportTL_Y + 38; |
646 v1 = pViewport->uViewportTL_X + 398; | 646 v1 = pViewport->uViewportTL_X + 398; |
647 } | 647 } |
648 pRenderer->DrawTextureTransparent(v1, v18, v25); | 648 pRenderer->DrawTextureTransparent(v1, v18, v25); |
649 if ( !dword_506540 ) | 649 if ( !Book_PageBtn3_flag )//Potions_page_flag |
650 { | 650 { |
651 if (_506568_autonote_type != AUTONOTE_POTION_RECEPIE) | 651 if (_506568_autonote_type != AUTONOTE_POTION_RECEPIE) |
652 { | 652 { |
653 pRenderer->DrawTextureTransparent( | 653 pRenderer->DrawTextureTransparent( |
654 pViewport->uViewportTL_X + 408, | 654 pViewport->uViewportTL_X + 408, |
670 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); | 670 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
671 LABEL_15: | 671 LABEL_15: |
672 _506568_autonote_type = AUTONOTE_POTION_RECEPIE; | 672 _506568_autonote_type = AUTONOTE_POTION_RECEPIE; |
673 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 398, pViewport->uViewportTL_Y + 113, pTexture_506394); | 673 pRenderer->DrawTextureTransparent(pViewport->uViewportTL_X + 398, pViewport->uViewportTL_Y + 113, pTexture_506394); |
674 LABEL_16: | 674 LABEL_16: |
675 if ( dword_50653C ) | 675 if ( Book_PageBtn4_flag )//Fontains_page_flag |
676 { | 676 { |
677 if ( _506568_autonote_type != v2 ) | 677 if ( _506568_autonote_type != v2 ) |
678 { | 678 { |
679 v31 = v2; | 679 v31 = v2; |
680 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); | 680 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
694 _506568_autonote_type = v2; | 694 _506568_autonote_type = v2; |
695 v19 = pViewport->uViewportTL_Y + 150; | 695 v19 = pViewport->uViewportTL_Y + 150; |
696 v3 = pViewport->uViewportTL_X + 399; | 696 v3 = pViewport->uViewportTL_X + 399; |
697 LABEL_22: | 697 LABEL_22: |
698 pRenderer->DrawTextureTransparent(v3, v19, v26); | 698 pRenderer->DrawTextureTransparent(v3, v19, v26); |
699 if ( dword_506538 ) | 699 if ( Book_PageBtn5_flag )//Autonotes_Obelisks_page_flag |
700 { | 700 { |
701 if ( _506568_autonote_type != AUTONOTE_OBELISK) | 701 if ( _506568_autonote_type != AUTONOTE_OBELISK) |
702 { | 702 { |
703 v31 = v2; | 703 v31 = v2; |
704 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); | 704 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
718 _506568_autonote_type = AUTONOTE_OBELISK; | 718 _506568_autonote_type = AUTONOTE_OBELISK; |
719 v20 = pViewport->uViewportTL_Y + 188; | 719 v20 = pViewport->uViewportTL_Y + 188; |
720 v4 = pViewport->uViewportTL_X + 397; | 720 v4 = pViewport->uViewportTL_X + 397; |
721 LABEL_28: | 721 LABEL_28: |
722 pRenderer->DrawTextureTransparent(v4, v20, v27); | 722 pRenderer->DrawTextureTransparent(v4, v20, v27); |
723 if ( dword_506534 ) | 723 if ( Book_PageBtn6_flag )//Autonotes_Seer_page_flag |
724 { | 724 { |
725 if ( _506568_autonote_type != AUTONOTE_SEER) | 725 if ( _506568_autonote_type != AUTONOTE_SEER) |
726 { | 726 { |
727 v31 = v2; | 727 v31 = v2; |
728 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); | 728 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
742 _506568_autonote_type = AUTONOTE_SEER; | 742 _506568_autonote_type = AUTONOTE_SEER; |
743 v21 = pViewport->uViewportTL_Y + 226; | 743 v21 = pViewport->uViewportTL_Y + 226; |
744 v5 = pViewport->uViewportTL_X + 397; | 744 v5 = pViewport->uViewportTL_X + 397; |
745 LABEL_34: | 745 LABEL_34: |
746 pRenderer->DrawTextureTransparent(v5, v21, v28); | 746 pRenderer->DrawTextureTransparent(v5, v21, v28); |
747 if ( dword_506530 ) | 747 if ( Autonotes_Misc_page_flag ) |
748 { | 748 { |
749 if ( _506568_autonote_type != AUTONOTE_MISC) | 749 if ( _506568_autonote_type != AUTONOTE_MISC) |
750 { | 750 { |
751 v31 = v2; | 751 v31 = v2; |
752 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); | 752 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
766 _506568_autonote_type = AUTONOTE_MISC; | 766 _506568_autonote_type = AUTONOTE_MISC; |
767 v22 = pViewport->uViewportTL_Y + 264; | 767 v22 = pViewport->uViewportTL_Y + 264; |
768 v6 = pViewport->uViewportTL_X + 397; | 768 v6 = pViewport->uViewportTL_X + 397; |
769 LABEL_40: | 769 LABEL_40: |
770 pRenderer->DrawTextureTransparent(v6, v22, v29); | 770 pRenderer->DrawTextureTransparent(v6, v22, v29); |
771 if ( dword_50652C ) | 771 if ( Autonotes_Instructors_page_flag ) |
772 { | 772 { |
773 if ( _506568_autonote_type != AUTONOTE_TEACHER) | 773 if ( _506568_autonote_type != AUTONOTE_TEACHER) |
774 { | 774 { |
775 v31 = v2; | 775 v31 = v2; |
776 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); | 776 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
833 while ( v8 < 196 ); | 833 while ( v8 < 196 ); |
834 num_achieved_awards_2 = num_achieved_awards; | 834 num_achieved_awards_2 = num_achieved_awards; |
835 } | 835 } |
836 else | 836 else |
837 { | 837 { |
838 if ( dword_506544 ) | 838 if ( BtnDown_flag ) |
839 { | 839 { |
840 v10 = num_achieved_awards + dword_506528; | 840 v10 = num_achieved_awards + dword_506528; |
841 if ( num_achieved_awards + dword_506528 < num_achieved_awards_2 ) | 841 if ( num_achieved_awards + dword_506528 < num_achieved_awards_2 ) |
842 { | 842 { |
843 v11 = dword_50651C++; | 843 v11 = dword_50651C++; |
844 byte_506130[v11] = num_achieved_awards; | 844 byte_506130[v11] = num_achieved_awards; |
845 dword_506528 = v10; | 845 dword_506528 = v10; |
846 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); | 846 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); |
847 } | 847 } |
848 } | 848 } |
849 if ( dword_506548 && dword_50651C ) | 849 if ( BtnUp_flag && dword_50651C ) |
850 { | 850 { |
851 --dword_50651C; | 851 --dword_50651C; |
852 dword_506528 -= (unsigned __int8)byte_506130[dword_50651C]; | 852 dword_506528 -= (unsigned __int8)byte_506130[dword_50651C]; |
853 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); | 853 pAudioPlayer->PlaySound((SoundID)230, 0, 0, -1, 0, 0, 0, 0); |
854 } | 854 } |
857 dword_506528 = 0; | 857 dword_506528 = 0; |
858 dword_50651C = 0; | 858 dword_50651C = 0; |
859 } | 859 } |
860 } | 860 } |
861 v12 = dword_506528; | 861 v12 = dword_506528; |
862 dword_50652C = 0; | 862 Autonotes_Instructors_page_flag = 0; |
863 dword_506544 = 0; | 863 BtnDown_flag = 0; |
864 dword_506548 = 0; | 864 BtnUp_flag = 0; |
865 num_achieved_awards = 0; | 865 num_achieved_awards = 0; |
866 dword_506530 = 0; | 866 Autonotes_Misc_page_flag = 0; |
867 dword_506534 = 0; | 867 Book_PageBtn6_flag = 0;//Autonotes_Seer_page_flag |
868 dword_506538 = 0; | 868 Book_PageBtn5_flag = 0;//Autonotes_Obelisks_page_flag |
869 dword_50653C = 0; | 869 Book_PageBtn4_flag = 0;//Fontains_page_flag |
870 dword_506540 = 0; | 870 Book_PageBtn3_flag = 0;//Potions_page_flag |
871 while ( v12 < num_achieved_awards_2 ) | 871 while ( v12 < num_achieved_awards_2 ) |
872 { | 872 { |
873 v13 = achieved_awards[v12]; | 873 v13 = achieved_awards[v12]; |
874 ++num_achieved_awards; | 874 ++num_achieved_awards; |
875 //v14 = (&dword_723718_autonote_related)[8 * v13]; | 875 //v14 = (&dword_723718_autonote_related)[8 * v13]; |
897 char party_coord[120]; // [sp+Ch] [bp-CCh]@37 | 897 char party_coord[120]; // [sp+Ch] [bp-CCh]@37 |
898 GUIWindow map_window; // [sp+84h] [bp-54h]@35 | 898 GUIWindow map_window; // [sp+84h] [bp-54h]@35 |
899 unsigned int textrX, textrY; | 899 unsigned int textrX, textrY; |
900 | 900 |
901 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pSpellBookPagesTextr_12); | 901 pRenderer->DrawTextureIndexed(pViewport->uViewportTL_X, pViewport->uViewportTL_Y, pSpellBookPagesTextr_12); |
902 if ( dword_506548 || viewparams->field_2C / 128 >= 12 ) | 902 if ( BtnUp_flag || viewparams->field_2C / 128 >= 12 ) |
903 { | 903 { |
904 buttnTxtr = pTex_tab_an_6a__zoom_off; | 904 buttnTxtr = pTex_tab_an_6a__zoom_off; |
905 textrY = pViewport->uViewportTL_Y + 2; | 905 textrY = pViewport->uViewportTL_Y + 2; |
906 textrX = pViewport->uViewportTL_X + 408; | 906 textrX = pViewport->uViewportTL_X + 408; |
907 } | 907 } |
910 buttnTxtr = pTex_tab_an_6b__zoom_on; | 910 buttnTxtr = pTex_tab_an_6b__zoom_on; |
911 textrY = pViewport->uViewportTL_Y + 1; | 911 textrY = pViewport->uViewportTL_Y + 1; |
912 textrX = pViewport->uViewportTL_X + 398; | 912 textrX = pViewport->uViewportTL_X + 398; |
913 } | 913 } |
914 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); | 914 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); |
915 if ( dword_506544 || viewparams->field_2C / 128 <= 3 ) | 915 if ( BtnDown_flag || viewparams->field_2C / 128 <= 3 ) |
916 { | 916 { |
917 buttnTxtr = pTex_tab_an_7a__zoot_off; | 917 buttnTxtr = pTex_tab_an_7a__zoot_off; |
918 textrY = pViewport->uViewportTL_Y + 38; | 918 textrY = pViewport->uViewportTL_Y + 38; |
919 textrX = pViewport->uViewportTL_X + 408; | 919 textrX = pViewport->uViewportTL_X + 408; |
920 } | 920 } |
923 buttnTxtr = pTex_tab_an_7b__zoot_on; | 923 buttnTxtr = pTex_tab_an_7b__zoot_on; |
924 textrY = pViewport->uViewportTL_Y + 38; | 924 textrY = pViewport->uViewportTL_Y + 38; |
925 textrX = pViewport->uViewportTL_X + 398; | 925 textrX = pViewport->uViewportTL_X + 398; |
926 } | 926 } |
927 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); | 927 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); |
928 if ( dword_506540 ) | 928 if ( Book_PageBtn3_flag ) |
929 { | 929 { |
930 buttnTxtr = pTexture_506390; | 930 buttnTxtr = pTexture_506390; |
931 textrY = pViewport->uViewportTL_Y + 113; | 931 textrY = pViewport->uViewportTL_Y + 113; |
932 textrX = pViewport->uViewportTL_X + 408; | 932 textrX = pViewport->uViewportTL_X + 408; |
933 } | 933 } |
936 buttnTxtr = pTexture_506394; | 936 buttnTxtr = pTexture_506394; |
937 textrY = pViewport->uViewportTL_Y + 113; | 937 textrY = pViewport->uViewportTL_Y + 113; |
938 textrX = pViewport->uViewportTL_X + 398; | 938 textrX = pViewport->uViewportTL_X + 398; |
939 } | 939 } |
940 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); | 940 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); |
941 if ( dword_50653C ) | 941 if ( Book_PageBtn4_flag ) |
942 { | 942 { |
943 buttnTxtr = pTexture_506388; | 943 buttnTxtr = pTexture_506388; |
944 textrY = pViewport->uViewportTL_X + 150; | 944 textrY = pViewport->uViewportTL_X + 150; |
945 textrX = pViewport->uViewportTL_Y + 408; | 945 textrX = pViewport->uViewportTL_Y + 408; |
946 } | 946 } |
949 buttnTxtr = pTexture_50638C; | 949 buttnTxtr = pTexture_50638C; |
950 textrY = pViewport->uViewportTL_X + 150; | 950 textrY = pViewport->uViewportTL_X + 150; |
951 textrX = pViewport->uViewportTL_Y + 399; | 951 textrX = pViewport->uViewportTL_Y + 399; |
952 } | 952 } |
953 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); | 953 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); |
954 if ( dword_506538 ) | 954 if ( Book_PageBtn5_flag ) |
955 { | 955 { |
956 buttnTxtr = pTexture_506380; | 956 buttnTxtr = pTexture_506380; |
957 textrY = pViewport->uViewportTL_Y + 188; | 957 textrY = pViewport->uViewportTL_Y + 188; |
958 textrX = pViewport->uViewportTL_X + 408; | 958 textrX = pViewport->uViewportTL_X + 408; |
959 } | 959 } |
962 buttnTxtr = pTexture_506384; | 962 buttnTxtr = pTexture_506384; |
963 textrY = pViewport->uViewportTL_Y + 188; | 963 textrY = pViewport->uViewportTL_Y + 188; |
964 textrX = pViewport->uViewportTL_X + 397; | 964 textrX = pViewport->uViewportTL_X + 397; |
965 } | 965 } |
966 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); | 966 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); |
967 if ( dword_506534 ) | 967 if ( Book_PageBtn6_flag ) |
968 { | 968 { |
969 buttnTxtr = pTexture_506378; | 969 buttnTxtr = pTexture_506378; |
970 textrY = pViewport->uViewportTL_Y + 226; | 970 textrY = pViewport->uViewportTL_Y + 226; |
971 textrX = pViewport->uViewportTL_X + 408; | 971 textrX = pViewport->uViewportTL_X + 408; |
972 } | 972 } |
975 buttnTxtr = pTexture_50637C; | 975 buttnTxtr = pTexture_50637C; |
976 textrY = pViewport->uViewportTL_Y + 226; | 976 textrY = pViewport->uViewportTL_Y + 226; |
977 textrX = pViewport->uViewportTL_X + 397; | 977 textrX = pViewport->uViewportTL_X + 397; |
978 } | 978 } |
979 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); | 979 pRenderer->DrawTextureTransparent(textrX, textrY, buttnTxtr); |
980 if ( dword_506544 ) | 980 if ( BtnDown_flag ) |
981 viewparams->CenterOnParty2(); | 981 viewparams->CenterOnParty2(); |
982 if ( dword_506548 ) | 982 if ( BtnUp_flag ) |
983 viewparams->CenterOnParty(); | 983 viewparams->CenterOnParty(); |
984 if ( dword_506540 ) | 984 if ( Book_PageBtn3_flag ) |
985 viewparams->_443219(); | 985 viewparams->_443219(); |
986 if ( dword_50653C ) | 986 if ( Book_PageBtn4_flag ) |
987 viewparams->_443231(); | 987 viewparams->_443231(); |
988 if ( dword_506538 ) | 988 if ( Book_PageBtn5_flag ) |
989 viewparams->_44323D(); | 989 viewparams->_44323D(); |
990 if ( dword_506534 ) | 990 if ( Book_PageBtn6_flag ) |
991 viewparams->_443225(); | 991 viewparams->_443225(); |
992 | 992 |
993 if ( dword_506548 | dword_506544 | dword_506540 | dword_50653C | dword_506538 | dword_506534 ) | 993 if ( BtnUp_flag | BtnDown_flag | Book_PageBtn3_flag | Book_PageBtn4_flag | Book_PageBtn5_flag | Book_PageBtn6_flag ) |
994 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); | 994 pAudioPlayer->PlaySound(SOUND_Button2, 0, 0, -1, 0, 0, 0, 0); |
995 dword_506548 = 0; | 995 BtnUp_flag = 0; |
996 dword_506544 = 0; | 996 BtnDown_flag = 0; |
997 dword_506534 = 0; | 997 Book_PageBtn6_flag = 0; |
998 dword_506538 = 0; | 998 Book_PageBtn5_flag = 0; |
999 dword_50653C = 0; | 999 Book_PageBtn4_flag = 0; |
1000 dword_506540 = 0; | 1000 Book_PageBtn3_flag = 0; |
1001 DrawBook_Map_sub(97, 49, 361, 313, 0); | 1001 DrawBook_Map_sub(97, 49, 361, 313, 0); |
1002 pRenderer->DrawTextureTransparent(75, 22, pTexture_mapbordr); | 1002 pRenderer->DrawTextureTransparent(75, 22, pTexture_mapbordr); |
1003 map_window.uFrameWidth = game_viewport_width; | 1003 map_window.uFrameWidth = game_viewport_width; |
1004 map_window.uFrameHeight = game_viewport_height; | 1004 map_window.uFrameHeight = game_viewport_height; |
1005 map_window.uFrameX = game_viewport_x; | 1005 map_window.uFrameX = game_viewport_x; |