Mercurial > mm7
comparison mm7_5.cpp @ 996:bdbbdfa77ea6
UIMSG_ClickBooksBtn
author | Ritor1 |
---|---|
date | Tue, 14 May 2013 10:07:21 +0600 |
parents | 087a9af8e0ec |
children | 1c13fbaad0c5 |
comparison
equal
deleted
inserted
replaced
990:087a9af8e0ec | 996:bdbbdfa77ea6 |
---|---|
153 Player *pPlayer4; // ecx@718 | 153 Player *pPlayer4; // ecx@718 |
154 int v105; // eax@718 | 154 int v105; // eax@718 |
155 Player *pPlayer5; // ST78_4@758 | 155 Player *pPlayer5; // ST78_4@758 |
156 unsigned int v107; // eax@758 | 156 unsigned int v107; // eax@758 |
157 unsigned int v108; // eax@758 | 157 unsigned int v108; // eax@758 |
158 char *v109; // ST64_4@759 | |
159 Player *v110; // ST78_4@759 | |
160 int v111; // ST60_4@759 | |
161 int v112; // ST5C_4@759 | |
162 char *v113; // ST58_4@759 | |
163 signed int v114; // eax@759 | |
164 unsigned int v115; // eax@764 | 158 unsigned int v115; // eax@764 |
165 int v116; // eax@776 | 159 int v116; // eax@776 |
166 POINT *pPoint3; // eax@777 | 160 POINT *pPoint3; // eax@777 |
167 unsigned int v118; // eax@785 | 161 unsigned int v118; // eax@785 |
168 unsigned int v119; // ecx@786 | 162 unsigned int v119; // ecx@786 |
3013 sub_419220(); | 3007 sub_419220(); |
3014 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 102; | 3008 pWindowList_at_506F50_minus1_indexing_buttons____and_an_int_[0] = 102; |
3015 GUIWindow::Create(pCharacterScreen_AwardsBtn->uX, pCharacterScreen_AwardsBtn->uY, 0, 0, WINDOW_CharactersPressedButton, (int)pCharacterScreen_AwardsBtn, 0); | 3009 GUIWindow::Create(pCharacterScreen_AwardsBtn->uX, pCharacterScreen_AwardsBtn->uY, 0, 0, WINDOW_CharactersPressedButton, (int)pCharacterScreen_AwardsBtn, 0); |
3016 FillAwardsData(); | 3010 FillAwardsData(); |
3017 continue; | 3011 continue; |
3018 case UIMSG_AutonotesBook://не только Автозаметки (в процессе) | 3012 case UIMSG_ClickBooksBtn: |
3019 switch ( uMessageParam ) | 3013 switch ( uMessageParam ) |
3020 { | 3014 { |
3021 case 11://Page UP | 3015 case 11://Page UP |
3022 BtnUp_flag = 1; | 3016 BtnUp_flag = 1; |
3023 pButton = pBtn_Book_2; | 3017 pButton = pBtn_Book_2; |
3024 break; | 3018 break; |
3025 case 10://Page DOWN | 3019 case 10://Page DOWN |
3026 BtnDown_flag = 1; | 3020 BtnDown_flag = 1; |
3027 pButton = pBtn_Book_1; | 3021 pButton = pBtn_Book_1; |
3028 break; | 3022 break; |
3029 case 0: | 3023 case 0://Zoom plus |
3030 pButton = pBtn_Book_1; | 3024 pButton = pBtn_Book_1; |
3031 BtnDown_flag = 1; | 3025 BtnDown_flag = 1; |
3032 break; | 3026 break; |
3033 case 1: | 3027 case 1://Zoom minus |
3034 pButton = pBtn_Book_2;//увеличить в MapsBook | 3028 pButton = pBtn_Book_2; |
3035 BtnUp_flag = 1; | 3029 BtnUp_flag = 1; |
3036 break; | 3030 break; |
3037 case 2://Potions | 3031 case 2://Potions |
3038 Book_PageBtn3_flag = 1; | 3032 Book_PageBtn3_flag = 1; |
3039 if ( dword_506364 ) | 3033 if ( dword_506364 ) |
3113 v108 = 8 * uMessageParam - 8; | 3107 v108 = 8 * uMessageParam - 8; |
3114 LOBYTE(v108) = v108 | 4; | 3108 LOBYTE(v108) = v108 | 4; |
3115 pMouse->uPointingObjectID = PID(OBJECT_Player,v108); | 3109 pMouse->uPointingObjectID = PID(OBJECT_Player,v108); |
3116 continue; | 3110 continue; |
3117 case UIMSG_ShowStatus_ManaHP: | 3111 case UIMSG_ShowStatus_ManaHP: |
3118 v109 = pGlobalTXT_LocalizationStrings[212];// "Spell Points" | 3112 sprintf(pTmpBuf, "%d / %d %s %d / %d %s", pPlayers[uMessageParam]->sHealth, pPlayers[uMessageParam]->GetMaxHealth(), |
3119 v110 = pPlayers[uMessageParam]; | 3113 pGlobalTXT_LocalizationStrings[108], pPlayers[uMessageParam]->sMana, pPlayers[uMessageParam]->GetMaxMana(), |
3120 v111 = v110->GetMaxMana(); | 3114 pGlobalTXT_LocalizationStrings[212]); |
3121 v112 = v110->sMana; | |
3122 v113 = pGlobalTXT_LocalizationStrings[108];// "Hit Points" | |
3123 v114 = v110->GetMaxHealth(); | |
3124 sprintf(pTmpBuf, "%d / %d %s %d / %d %s", v110->sHealth, v114, v113, v112, v111, v109); | |
3125 sub_41C0B8_set_status_string(pTmpBuf); | 3115 sub_41C0B8_set_status_string(pTmpBuf); |
3126 continue; | 3116 continue; |
3127 case UIMSG_CHEST_ClickItem: | 3117 case UIMSG_CHEST_ClickItem: |
3128 if ( pCurrentScreen == SCREEN_CHEST_INVENTORY ) | 3118 if ( pCurrentScreen == SCREEN_CHEST_INVENTORY ) |
3129 { | 3119 { |
3143 OnGameViewportClick(); | 3133 OnGameViewportClick(); |
3144 continue; | 3134 continue; |
3145 } | 3135 } |
3146 v115 = pMessageQueue_50CBD0->uNumMessages; | 3136 v115 = pMessageQueue_50CBD0->uNumMessages; |
3147 if ( !pMessageQueue_50CBD0->uNumMessages ) | 3137 if ( !pMessageQueue_50CBD0->uNumMessages ) |
3148 //goto LABEL_768; | |
3149 { | 3138 { |
3150 pMessageQueue_50CBD0->AddMessage(UIMSG_MouseLeftClickInScreen, 0, 0); | 3139 pMessageQueue_50CBD0->AddMessage(UIMSG_MouseLeftClickInScreen, 0, 0); |
3151 /*if ( (signed int)v115 < 40 ) | 3140 /*if ( (signed int)v115 < 40 ) |
3152 //goto LABEL_769; | 3141 //goto LABEL_769; |
3153 { | 3142 { |
3217 continue; | 3206 continue; |
3218 case UIMSG_ClickZoomOutBtn: | 3207 case UIMSG_ClickZoomOutBtn: |
3219 if ( pCurrentScreen ) | 3208 if ( pCurrentScreen ) |
3220 continue; | 3209 continue; |
3221 pParty->uFlags |= 2u; | 3210 pParty->uFlags |= 2u; |
3222 GUIWindow::Create(0x207u, 0x88u, 0, 0, WINDOW_PressedButton2, (int)pBtn_ZoomOut, 0); | 3211 GUIWindow::Create(519, 136, 0, 0, WINDOW_PressedButton2, (int)pBtn_ZoomOut, 0); |
3223 uNumSeconds = 131072; | 3212 uNumSeconds = 131072; |
3224 v118 = 2 * viewparams->uMinimapZoom; | 3213 v118 = 2 * viewparams->uMinimapZoom; |
3225 ++viewparams->field_28; | 3214 ++viewparams->field_28; |
3226 viewparams->uMinimapZoom *= 2; | 3215 viewparams->uMinimapZoom *= 2; |
3227 if ( uCurrentlyLoadedLevelType != LEVEL_Outdoor) | 3216 if ( uCurrentlyLoadedLevelType != LEVEL_Outdoor) |
3247 break; | 3236 break; |
3248 case UIMSG_ClickZoomInBtn: | 3237 case UIMSG_ClickZoomInBtn: |
3249 if ( pCurrentScreen ) | 3238 if ( pCurrentScreen ) |
3250 continue; | 3239 continue; |
3251 pParty->uFlags |= 2u; | 3240 pParty->uFlags |= 2u; |
3252 GUIWindow::Create(0x23Eu, 0x88u, 0, 0, WINDOW_PressedButton2, (int)pBtn_ZoomIn, 0); | 3241 GUIWindow::Create(574, 136, 0, 0, WINDOW_PressedButton2, (int)pBtn_ZoomIn, 0); |
3253 uNumSeconds = 32768; | 3242 uNumSeconds = 32768; |
3254 v118 = (unsigned __int64)((signed __int64)(signed int)viewparams->uMinimapZoom << 15) >> 16; | 3243 v118 = (unsigned __int64)((signed __int64)(signed int)viewparams->uMinimapZoom << 15) >> 16; |
3255 --viewparams->field_28; | 3244 --viewparams->field_28; |
3256 viewparams->uMinimapZoom = (unsigned __int64)((signed __int64)(signed int)viewparams->uMinimapZoom << 15) >> 16; | 3245 viewparams->uMinimapZoom = (unsigned __int64)((signed __int64)(signed int)viewparams->uMinimapZoom << 15) >> 16; |
3257 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor) | 3246 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor) |