comparison UIBooks.cpp @ 981:a6ef7125f6e4

Autonotes & GameState
author Nomad
date Sat, 11 May 2013 01:28:06 +0200
parents ec7568e13b24
children 087a9af8e0ec
comparison
equal deleted inserted replaced
980:a079c489118d 981:a6ef7125f6e4
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 ( !dword_506540 )
650 { 650 {
651 if ( dword_506568 ) 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,
655 pViewport->uViewportTL_Y + 113, 655 pViewport->uViewportTL_Y + 113,
656 pTexture_506390); 656 pTexture_506390);
657 v2 = 1; 657 v2 = 1;
658 goto LABEL_16; 658 goto LABEL_16;
659 } 659 }
660 goto LABEL_14; 660 goto LABEL_14;
661 } 661 }
662 if ( !dword_506568 ) 662 if (_506568_autonote_type == AUTONOTE_POTION_RECEPIE)
663 { 663 {
664 LABEL_14: 664 LABEL_14:
665 v2 = 1; 665 v2 = 1;
666 goto LABEL_15; 666 goto LABEL_15;
667 } 667 }
668 v2 = 1; 668 v2 = 1;
669 v31 = 1; 669 v31 = 1;
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 dword_506568 = 0; 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 ( dword_50653C )
676 { 676 {
677 if ( dword_506568 != 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);
681 } 681 }
682 } 682 }
683 else 683 else
684 { 684 {
685 if ( dword_506568 != v2 ) 685 if ( _506568_autonote_type != v2 )
686 { 686 {
687 v26 = pTexture_506388; 687 v26 = pTexture_506388;
688 v19 = pViewport->uViewportTL_Y + 150; 688 v19 = pViewport->uViewportTL_Y + 150;
689 v3 = pViewport->uViewportTL_X + 408; 689 v3 = pViewport->uViewportTL_X + 408;
690 goto LABEL_22; 690 goto LABEL_22;
691 } 691 }
692 } 692 }
693 v26 = pTexture_50638C; 693 v26 = pTexture_50638C;
694 dword_506568 = 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 ( dword_506538 )
700 { 700 {
701 if ( dword_506568 != 2 ) 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);
705 } 705 }
706 } 706 }
707 else 707 else
708 { 708 {
709 if ( dword_506568 != 2 ) 709 if ( _506568_autonote_type != AUTONOTE_OBELISK)
710 { 710 {
711 v27 = pTexture_506380; 711 v27 = pTexture_506380;
712 v20 = pViewport->uViewportTL_Y + 188; 712 v20 = pViewport->uViewportTL_Y + 188;
713 v4 = pViewport->uViewportTL_X + 408; 713 v4 = pViewport->uViewportTL_X + 408;
714 goto LABEL_28; 714 goto LABEL_28;
715 } 715 }
716 } 716 }
717 v27 = pTexture_506384; 717 v27 = pTexture_506384;
718 dword_506568 = 2; 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 ( dword_506534 )
724 { 724 {
725 if ( dword_506568 != 3 ) 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);
729 } 729 }
730 } 730 }
731 else 731 else
732 { 732 {
733 if ( dword_506568 != 3 ) 733 if ( _506568_autonote_type != AUTONOTE_SEER)
734 { 734 {
735 v28 = pTexture_506378; 735 v28 = pTexture_506378;
736 v21 = pViewport->uViewportTL_Y + 226; 736 v21 = pViewport->uViewportTL_Y + 226;
737 v5 = pViewport->uViewportTL_X + 408; 737 v5 = pViewport->uViewportTL_X + 408;
738 goto LABEL_34; 738 goto LABEL_34;
739 } 739 }
740 } 740 }
741 v28 = pTexture_50637C; 741 v28 = pTexture_50637C;
742 dword_506568 = 3; 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 ( dword_506530 )
748 { 748 {
749 if ( dword_506568 != 4 ) 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);
753 } 753 }
754 } 754 }
755 else 755 else
756 { 756 {
757 if ( dword_506568 != 4 ) 757 if ( _506568_autonote_type != AUTONOTE_MISC)
758 { 758 {
759 v29 = pTexture_506370; 759 v29 = pTexture_506370;
760 v22 = pViewport->uViewportTL_Y + 263; 760 v22 = pViewport->uViewportTL_Y + 263;
761 v6 = pViewport->uViewportTL_X + 408; 761 v6 = pViewport->uViewportTL_X + 408;
762 goto LABEL_40; 762 goto LABEL_40;
763 } 763 }
764 } 764 }
765 v29 = pTexture_506374; 765 v29 = pTexture_506374;
766 dword_506568 = 4; 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 ( dword_50652C )
772 { 772 {
773 if ( dword_506568 != 5 ) 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);
777 } 777 }
778 } 778 }
779 else 779 else
780 { 780 {
781 if ( dword_506568 != 5 ) 781 if ( _506568_autonote_type != AUTONOTE_TEACHER)
782 { 782 {
783 v30 = pTexture_506368; 783 v30 = pTexture_506368;
784 v23 = pViewport->uViewportTL_Y + 302; 784 v23 = pViewport->uViewportTL_Y + 302;
785 v7 = pViewport->uViewportTL_X + 408; 785 v7 = pViewport->uViewportTL_X + 408;
786 goto LABEL_46; 786 goto LABEL_46;
787 } 787 }
788 } 788 }
789 v30 = pTexture_50636C; 789 v30 = pTexture_50636C;
790 dword_506568 = 5; 790 _506568_autonote_type = AUTONOTE_TEACHER;
791 v23 = pViewport->uViewportTL_Y + 302; 791 v23 = pViewport->uViewportTL_Y + 302;
792 v7 = pViewport->uViewportTL_X + 397; 792 v7 = pViewport->uViewportTL_X + 397;
793 LABEL_46: 793 LABEL_46:
794 pRenderer->DrawTextureTransparent(v7, v23, v30); 794 pRenderer->DrawTextureTransparent(v7, v23, v30);
795 a1.uFrameWidth = game_viewport_width; 795 a1.uFrameWidth = game_viewport_width;
813 num_achieved_awards = 0; 813 num_achieved_awards = 0;
814 v8 = 0; 814 v8 = 0;
815 do 815 do
816 { 816 {
817 //if ( dword_72371C[2 * v8] == dword_506568 ) 817 //if ( dword_72371C[2 * v8] == dword_506568 )
818 if ( pAutonoteTxt[v8-1].eType == dword_506568 ) 818 if ( pAutonoteTxt[v8-1].eType == _506568_autonote_type )
819 { 819 {
820 //v32 = (&dword_723718_autonote_related)[8 * (signed __int16)v8]; 820 //v32 = (&dword_723718_autonote_related)[8 * (signed __int16)v8];
821 v32 = (char *)pAutonoteTxt[v8-1].pText; 821 v32 = (char *)pAutonoteTxt[v8-1].pText;
822 if ( (short)v8 ) 822 if ( (short)v8 )
823 { 823 {