Mercurial > mm7
comparison mm7_1.cpp @ 987:9e132060ada3
UIMSG_CHEST_ClickItem
author | Ritor1 |
---|---|
date | Sun, 12 May 2013 18:11:21 +0600 |
parents | d982fffb8b96 |
children | 087a9af8e0ec |
comparison
equal
deleted
inserted
replaced
986:b584c743cb47 | 987:9e132060ada3 |
---|---|
623 ShowStatusBarString(pTmpBuf2, 2u); | 623 ShowStatusBarString(pTmpBuf2, 2u); |
624 pAudioPlayer->PlaySound(SOUND_GoldReceived, v2, v2, -1, v2, v2, v2, v2); | 624 pAudioPlayer->PlaySound(SOUND_GoldReceived, v2, v2, -1, v2, v2, v2, v2); |
625 } | 625 } |
626 | 626 |
627 //----- (00420E01) -------------------------------------------------------- | 627 //----- (00420E01) -------------------------------------------------------- |
628 void __cdecl sub_420E01() | 628 void __cdecl OnChestLeftClick() |
629 { | 629 { |
630 int chest_id; // edi@1 | 630 int chest_id; // edi@1 |
631 POINT *v1; // esi@2 | 631 POINT *v1; // esi@2 |
632 int v2; // eax@2 | 632 int v2; // eax@2 |
633 int v3; // ebx@4 | 633 int v3; // ebx@4 |
848 //LABEL_23: | 848 //LABEL_23: |
849 viewparams->bRedrawGameUI = true; | 849 viewparams->bRedrawGameUI = true; |
850 if ( uActiveCharacter == uPlayerID ) | 850 if ( uActiveCharacter == uPlayerID ) |
851 { | 851 { |
852 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; | 852 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; |
853 pCurrentScreen = SCREEN_F; | 853 pCurrentScreen = SCREEN_CHEST_INVENTORY; |
854 //goto LABEL_28; | 854 //goto LABEL_28; |
855 uActiveCharacter = uPlayerID; | 855 uActiveCharacter = uPlayerID; |
856 return; | 856 return; |
857 } | 857 } |
858 //LABEL_27: | 858 //LABEL_27: |
868 { | 868 { |
869 //LABEL_28: | 869 //LABEL_28: |
870 uActiveCharacter = uPlayerID; | 870 uActiveCharacter = uPlayerID; |
871 return; | 871 return; |
872 } | 872 } |
873 if ( pCurrentScreen != SCREEN_F ) | 873 if ( pCurrentScreen != SCREEN_CHEST_INVENTORY ) |
874 { | 874 { |
875 viewparams->bRedrawGameUI = true; | 875 viewparams->bRedrawGameUI = true; |
876 uActiveCharacter = uPlayerID; | 876 uActiveCharacter = uPlayerID; |
877 if ( pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] == 102 ) | 877 if ( pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] == 102 ) |
878 FillAwardsData(); | 878 FillAwardsData(); |
881 //goto LABEL_23; | 881 //goto LABEL_23; |
882 viewparams->bRedrawGameUI = true; | 882 viewparams->bRedrawGameUI = true; |
883 if ( uActiveCharacter == uPlayerID ) | 883 if ( uActiveCharacter == uPlayerID ) |
884 { | 884 { |
885 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; | 885 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 103; |
886 pCurrentScreen = SCREEN_F; | 886 pCurrentScreen = SCREEN_CHEST_INVENTORY; |
887 //goto LABEL_28; | 887 //goto LABEL_28; |
888 uActiveCharacter = uPlayerID; | 888 uActiveCharacter = uPlayerID; |
889 return; | 889 return; |
890 } | 890 } |
891 //LABEL_27: | 891 //LABEL_27: |
914 } | 914 } |
915 // 4E28F8: using guessed type int pCurrentScreen; | 915 // 4E28F8: using guessed type int pCurrentScreen; |
916 // F8B19C: using guessed type int dword_F8B19C; | 916 // F8B19C: using guessed type int dword_F8B19C; |
917 | 917 |
918 //----- (00421EA6) -------------------------------------------------------- | 918 //----- (00421EA6) -------------------------------------------------------- |
919 void __cdecl sub_421EA6_OnInventoryLeftClick() | 919 void __cdecl OnInventoryLeftClick() |
920 { | 920 { |
921 Player *v0; // ebx@1 | 921 Player *v0; // ebx@1 |
922 signed int v1; // eax@2 | 922 signed int v1; // eax@2 |
923 signed int v2; // ecx@2 | 923 signed int v2; // ecx@2 |
924 int v3; // eax@2 | 924 int v3; // eax@2 |