Mercurial > might-and-magic-trilogy
comparison mm7_5.cpp @ 167:90a9c828c2a6
pWindow and pBtn
author | Ritor1 |
---|---|
date | Wed, 12 Dec 2012 12:52:40 +0600 |
parents | 87c503d426e0 |
children | 12a0213e66c7 |
comparison
equal
deleted
inserted
replaced
166:87c503d426e0 | 167:90a9c828c2a6 |
---|---|
669 0xE2u, | 669 0xE2u, |
670 0, | 670 0, |
671 0, | 671 0, |
672 v1, | 672 v1, |
673 0); | 673 0); |
674 ptr_50C9CC = pGUIWindow_CurrentMenu->CreateButton( | 674 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton( |
675 243u, | 675 243u, |
676 162u, | 676 162u, |
677 16u, | 677 16u, |
678 16u, | 678 16u, |
679 v0, | 679 v0, |
682 4u, | 682 4u, |
683 0, | 683 0, |
684 v1, | 684 v1, |
685 &pIcons_LOD->pTextures[uTextureID_507C70], | 685 &pIcons_LOD->pTextures[uTextureID_507C70], |
686 0); | 686 0); |
687 ptr_50C9C8 = pGUIWindow_CurrentMenu->CreateButton( | 687 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton( |
688 0x1B3u, | 688 0x1B3u, |
689 0xA2u, | 689 0xA2u, |
690 0x10u, | 690 0x10u, |
691 0x10u, | 691 0x10u, |
692 v0, | 692 v0, |
696 0, | 696 0, |
697 v1, | 697 v1, |
698 &pIcons_LOD->pTextures[uTextureID_507C74], | 698 &pIcons_LOD->pTextures[uTextureID_507C74], |
699 0); | 699 0); |
700 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0xA2u, 0xACu, 0x11u, v0, 0, 0x6Fu, 0, 0, v1, 0); | 700 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0xA2u, 0xACu, 0x11u, v0, 0, 0x6Fu, 0, 0, v1, 0); |
701 ptr_50C9CC = pGUIWindow_CurrentMenu->CreateButton( | 701 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton( |
702 0xF3u, | 702 0xF3u, |
703 0xD8u, | 703 0xD8u, |
704 0x10u, | 704 0x10u, |
705 0x10u, | 705 0x10u, |
706 v0, | 706 v0, |
709 4u, | 709 4u, |
710 0, | 710 0, |
711 v1, | 711 v1, |
712 &pIcons_LOD->pTextures[uTextureID_507C70], | 712 &pIcons_LOD->pTextures[uTextureID_507C70], |
713 0); | 713 0); |
714 ptr_50C9C8 = pGUIWindow_CurrentMenu->CreateButton( | 714 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton( |
715 0x1B3u, | 715 0x1B3u, |
716 0xD8u, | 716 0xD8u, |
717 0x10u, | 717 0x10u, |
718 0x10u, | 718 0x10u, |
719 v0, | 719 v0, |
723 0, | 723 0, |
724 v1, | 724 v1, |
725 &pIcons_LOD->pTextures[uTextureID_507C74], | 725 &pIcons_LOD->pTextures[uTextureID_507C74], |
726 0); | 726 0); |
727 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0xD8u, 0xACu, 0x11u, v0, 0, 0x70u, 0, 0, v1, 0); | 727 pGUIWindow_CurrentMenu->CreateButton(0x107u, 0xD8u, 0xACu, 0x11u, v0, 0, 0x70u, 0, 0, v1, 0); |
728 ptr_50C9CC = pGUIWindow_CurrentMenu->CreateButton( | 728 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton( |
729 0xF3u, | 729 0xF3u, |
730 0x10Eu, | 730 0x10Eu, |
731 0x10u, | 731 0x10u, |
732 0x10u, | 732 0x10u, |
733 v0, | 733 v0, |
736 4u, | 736 4u, |
737 0, | 737 0, |
738 v1, | 738 v1, |
739 &pIcons_LOD->pTextures[uTextureID_507C70], | 739 &pIcons_LOD->pTextures[uTextureID_507C70], |
740 0); | 740 0); |
741 ptr_50C9C8 = pGUIWindow_CurrentMenu->CreateButton( | 741 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton( |
742 0x1B3u, | 742 0x1B3u, |
743 0x10Eu, | 743 0x10Eu, |
744 0x10u, | 744 0x10u, |
745 0x10u, | 745 0x10u, |
746 v0, | 746 v0, |
905 if ( !pRenderer->bWindowMode ) | 905 if ( !pRenderer->bWindowMode ) |
906 { | 906 { |
907 v0 = 1; | 907 v0 = 1; |
908 if ( GammaController::IsGammaSupported() ) | 908 if ( GammaController::IsGammaSupported() ) |
909 { | 909 { |
910 ptr_50C9CC = pGUIWindow_CurrentMenu->CreateButton( | 910 pBtn_SliderLeft = pGUIWindow_CurrentMenu->CreateButton( |
911 0x15u, | 911 0x15u, |
912 0xA1u, | 912 0xA1u, |
913 0x10u, | 913 0x10u, |
914 0x10u, | 914 0x10u, |
915 1, | 915 1, |
918 4u, | 918 4u, |
919 0, | 919 0, |
920 v1, | 920 v1, |
921 &pIcons_LOD->pTextures[uTextureID_507C20], | 921 &pIcons_LOD->pTextures[uTextureID_507C20], |
922 0); | 922 0); |
923 ptr_50C9C8 = pGUIWindow_CurrentMenu->CreateButton( | 923 pBtn_SliderRight = pGUIWindow_CurrentMenu->CreateButton( |
924 0xD5u, | 924 0xD5u, |
925 0xA1u, | 925 0xA1u, |
926 0x10u, | 926 0x10u, |
927 0x10u, | 927 0x10u, |
928 1, | 928 1, |
970 goto LABEL_128; | 970 goto LABEL_128; |
971 } | 971 } |
972 v19 = (double)(signed int)uGammaPos * 0.1 + 0.6; | 972 v19 = (double)(signed int)uGammaPos * 0.1 + 0.6; |
973 pGame->pGammaController->Initialize(v19); | 973 pGame->pGammaController->Initialize(v19); |
974 v166 = v0; | 974 v166 = v0; |
975 v152 = (int)ptr_50C9CC; | 975 v152 = (int)pBtn_SliderLeft; |
976 v145 = (WindowType)90; | 976 v145 = (WindowType)90; |
977 v140 = 0; | 977 v140 = 0; |
978 v136 = 0; | 978 v136 = 0; |
979 v20 = 21; | 979 v20 = 21; |
980 goto LABEL_122; | 980 goto LABEL_122; |
986 { | 986 { |
987 v21 = (double)(signed int)uGammaPos * 0.1 + 0.6; | 987 v21 = (double)(signed int)uGammaPos * 0.1 + 0.6; |
988 pGame->pGammaController->Initialize(v21); | 988 pGame->pGammaController->Initialize(v21); |
989 v20 = 213; | 989 v20 = 213; |
990 v166 = v0; | 990 v166 = v0; |
991 v152 = (int)ptr_50C9C8; | 991 v152 = (int)pBtn_SliderRight; |
992 v145 = (WindowType)90; | 992 v145 = (WindowType)90; |
993 v140 = 0; | 993 v140 = 0; |
994 v136 = 0; | 994 v136 = 0; |
995 LABEL_122: | 995 LABEL_122: |
996 GUIWindow::Create(v20, 0xA1u, v136, v140, v145, v152, v166); | 996 GUIWindow::Create(v20, 0xA1u, v136, v140, v145, v152, v166); |
1029 --uMusicVolimeMultiplier; | 1029 --uMusicVolimeMultiplier; |
1030 if ( (char)uMusicVolimeMultiplier < 1 ) | 1030 if ( (char)uMusicVolimeMultiplier < 1 ) |
1031 uMusicVolimeMultiplier = 0; | 1031 uMusicVolimeMultiplier = 0; |
1032 v167 = v0; | 1032 v167 = v0; |
1033 v23 = 243; | 1033 v23 = 243; |
1034 v153 = (int)ptr_50C9CC; | 1034 v153 = (int)pBtn_SliderLeft; |
1035 LABEL_136: | 1035 LABEL_136: |
1036 GUIWindow::Create(v23, 0xD8u, 0, 0, (enum WindowType)90, v153, v167); | 1036 GUIWindow::Create(v23, 0xD8u, 0, 0, (enum WindowType)90, v153, v167); |
1037 goto LABEL_143; | 1037 goto LABEL_143; |
1038 } | 1038 } |
1039 if ( uMessageParam == 5 ) | 1039 if ( uMessageParam == 5 ) |
1041 ++uMusicVolimeMultiplier; | 1041 ++uMusicVolimeMultiplier; |
1042 if ( (char)uMusicVolimeMultiplier > 9 ) | 1042 if ( (char)uMusicVolimeMultiplier > 9 ) |
1043 uMusicVolimeMultiplier = 9; | 1043 uMusicVolimeMultiplier = 9; |
1044 v167 = v0; | 1044 v167 = v0; |
1045 v23 = 435; | 1045 v23 = 435; |
1046 v153 = (int)ptr_50C9C8; | 1046 v153 = (int)pBtn_SliderRight; |
1047 goto LABEL_136; | 1047 goto LABEL_136; |
1048 } | 1048 } |
1049 uMusicVolimeMultiplier = (pMouse->GetCursorPos(&v202)->x - 263) / 17; | 1049 uMusicVolimeMultiplier = (pMouse->GetCursorPos(&v202)->x - 263) / 17; |
1050 if ( (char)uMusicVolimeMultiplier > 9 ) | 1050 if ( (char)uMusicVolimeMultiplier > 9 ) |
1051 uMusicVolimeMultiplier = 9; | 1051 uMusicVolimeMultiplier = 9; |
1069 --uSoundVolumeMultiplier; | 1069 --uSoundVolumeMultiplier; |
1070 if ( (char)uSoundVolumeMultiplier < 1 ) | 1070 if ( (char)uSoundVolumeMultiplier < 1 ) |
1071 uSoundVolumeMultiplier = 0; | 1071 uSoundVolumeMultiplier = 0; |
1072 v168 = v0; | 1072 v168 = v0; |
1073 v24 = 243; | 1073 v24 = 243; |
1074 v154 = (int)ptr_50C9CC; | 1074 v154 = (int)pBtn_SliderLeft; |
1075 LABEL_150: | 1075 LABEL_150: |
1076 GUIWindow::Create(v24, 0xA2u, 0, 0, (enum WindowType)90, v154, v168); | 1076 GUIWindow::Create(v24, 0xA2u, 0, 0, (enum WindowType)90, v154, v168); |
1077 goto LABEL_157; | 1077 goto LABEL_157; |
1078 } | 1078 } |
1079 if ( uMessageParam == 5 ) | 1079 if ( uMessageParam == 5 ) |
1081 ++uSoundVolumeMultiplier; | 1081 ++uSoundVolumeMultiplier; |
1082 if ( (char)uSoundVolumeMultiplier > 8 ) | 1082 if ( (char)uSoundVolumeMultiplier > 8 ) |
1083 uSoundVolumeMultiplier = 9; | 1083 uSoundVolumeMultiplier = 9; |
1084 v168 = v0; | 1084 v168 = v0; |
1085 v24 = 435; | 1085 v24 = 435; |
1086 v154 = (int)ptr_50C9C8; | 1086 v154 = (int)pBtn_SliderRight; |
1087 goto LABEL_150; | 1087 goto LABEL_150; |
1088 } | 1088 } |
1089 uSoundVolumeMultiplier = (pMouse->GetCursorPos(&v207)->x - 263) / 17; | 1089 uSoundVolumeMultiplier = (pMouse->GetCursorPos(&v207)->x - 263) / 17; |
1090 if ( (char)uSoundVolumeMultiplier > 8 ) | 1090 if ( (char)uSoundVolumeMultiplier > 8 ) |
1091 uSoundVolumeMultiplier = 9; | 1091 uSoundVolumeMultiplier = 9; |
1119 --uVoicesVolumeMultiplier; | 1119 --uVoicesVolumeMultiplier; |
1120 if ( (char)uVoicesVolumeMultiplier < 1 ) | 1120 if ( (char)uVoicesVolumeMultiplier < 1 ) |
1121 uVoicesVolumeMultiplier = 0; | 1121 uVoicesVolumeMultiplier = 0; |
1122 v169 = v0; | 1122 v169 = v0; |
1123 v25 = 243; | 1123 v25 = 243; |
1124 v155 = (int)ptr_50C9CC; | 1124 v155 = (int)pBtn_SliderLeft; |
1125 LABEL_166: | 1125 LABEL_166: |
1126 GUIWindow::Create(v25, 0x10Eu, 0, 0, (enum WindowType)90, v155, v169); | 1126 GUIWindow::Create(v25, 0x10Eu, 0, 0, (enum WindowType)90, v155, v169); |
1127 goto LABEL_173; | 1127 goto LABEL_173; |
1128 } | 1128 } |
1129 if ( uMessageParam == 5 ) | 1129 if ( uMessageParam == 5 ) |
1131 ++uVoicesVolumeMultiplier; | 1131 ++uVoicesVolumeMultiplier; |
1132 if ( (char)uVoicesVolumeMultiplier > 8 ) | 1132 if ( (char)uVoicesVolumeMultiplier > 8 ) |
1133 uVoicesVolumeMultiplier = 9; | 1133 uVoicesVolumeMultiplier = 9; |
1134 v169 = v0; | 1134 v169 = v0; |
1135 v25 = 435; | 1135 v25 = 435; |
1136 v155 = (int)ptr_50C9C8; | 1136 v155 = (int)pBtn_SliderRight; |
1137 goto LABEL_166; | 1137 goto LABEL_166; |
1138 } | 1138 } |
1139 uVoicesVolumeMultiplier = (pMouse->GetCursorPos(&v205)->x - 263) / 17; | 1139 uVoicesVolumeMultiplier = (pMouse->GetCursorPos(&v205)->x - 263) / 17; |
1140 if ( (char)uVoicesVolumeMultiplier > 8 ) | 1140 if ( (char)uVoicesVolumeMultiplier > 8 ) |
1141 uVoicesVolumeMultiplier = 9; | 1141 uVoicesVolumeMultiplier = 9; |
1190 if ( pCurrentScreen ) | 1190 if ( pCurrentScreen ) |
1191 pGUIWindow_CurrentMenu->Release(); | 1191 pGUIWindow_CurrentMenu->Release(); |
1192 pEventTimer->Pause(); | 1192 pEventTimer->Pause(); |
1193 pAudioPlayer->StopChannels(-1, -1); | 1193 pAudioPlayer->StopChannels(-1, -1); |
1194 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640u, 480u, WINDOW_Book, uMessage, 0); | 1194 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640u, 480u, WINDOW_Book, uMessage, 0); |
1195 ptr_507BE0 = GUIWindow::Create(493u, 355u, 0, 0, (enum WindowType)99, (int)ptr_507A10, 0); | 1195 pBooksWindow = GUIWindow::Create(493u, 355u, 0, 0, (enum WindowType)99, (int)pBtn_Quests, 0); |
1196 bFlashQuestBook = 0; | 1196 bFlashQuestBook = 0; |
1197 goto _continue; | 1197 goto _continue; |
1198 case UIMSG_OpenAutonotes: | 1198 case UIMSG_OpenAutonotes: |
1199 if ( pMessageQueue_50CBD0->uNumMessages ) | 1199 if ( pMessageQueue_50CBD0->uNumMessages ) |
1200 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 1200 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
1201 if ( pCurrentScreen ) | 1201 if ( pCurrentScreen ) |
1202 pGUIWindow_CurrentMenu->Release(); | 1202 pGUIWindow_CurrentMenu->Release(); |
1203 pEventTimer->Pause(); | 1203 pEventTimer->Pause(); |
1204 pAudioPlayer->StopChannels(-1, -1); | 1204 pAudioPlayer->StopChannels(-1, -1); |
1205 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640u, 480u, WINDOW_Book, uMessage, 0); | 1205 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640u, 480u, WINDOW_Book, uMessage, 0); |
1206 ptr_507BE0 = GUIWindow::Create(527u, 353u, 0, 0, (enum WindowType)99, (int)ptr_507A0C, 0); | 1206 pBooksWindow = GUIWindow::Create(527u, 353u, 0, 0, (enum WindowType)99, (int)pBtn_Autonotes, 0); |
1207 bFlashAutonotesBook = 0; | 1207 bFlashAutonotesBook = 0; |
1208 goto _continue; | 1208 goto _continue; |
1209 case UIMSG_OpenMapBook: | 1209 case UIMSG_OpenMapBook: |
1210 if ( pMessageQueue_50CBD0->uNumMessages ) | 1210 if ( pMessageQueue_50CBD0->uNumMessages ) |
1211 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 1211 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
1217 pAudioPlayer->StopChannels(-1, -1); | 1217 pAudioPlayer->StopChannels(-1, -1); |
1218 v26 = GUIWindow::Create(0, 0, 640u, 480u, WINDOW_Book, uMessage, 0); | 1218 v26 = GUIWindow::Create(0, 0, 640u, 480u, WINDOW_Book, uMessage, 0); |
1219 v27 = 353; | 1219 v27 = 353; |
1220 v28 = 546; | 1220 v28 = 546; |
1221 v170 = 0; | 1221 v170 = 0; |
1222 v156 = (int)ptr_507A08; | 1222 v156 = (int)pBtn_Maps; |
1223 goto LABEL_210; | 1223 goto LABEL_210; |
1224 case UIMSG_OpenCalendar: | 1224 case UIMSG_OpenCalendar: |
1225 if ( pMessageQueue_50CBD0->uNumMessages ) | 1225 if ( pMessageQueue_50CBD0->uNumMessages ) |
1226 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 1226 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
1227 if ( pCurrentScreen ) | 1227 if ( pCurrentScreen ) |
1230 pAudioPlayer->StopChannels(-1, -1); | 1230 pAudioPlayer->StopChannels(-1, -1); |
1231 v26 = GUIWindow::Create(0, 0, 640, 480, WINDOW_Book, uMessage, 0); | 1231 v26 = GUIWindow::Create(0, 0, 640, 480, WINDOW_Book, uMessage, 0); |
1232 v27 = 354; | 1232 v27 = 354; |
1233 v28 = 570; | 1233 v28 = 570; |
1234 v170 = 0; | 1234 v170 = 0; |
1235 v156 = (int)dword_507A04; | 1235 v156 = (int)pBtn_Calendar; |
1236 LABEL_210: | 1236 LABEL_210: |
1237 pGUIWindow_CurrentMenu = v26; | 1237 pGUIWindow_CurrentMenu = v26; |
1238 ptr_507BE0 = GUIWindow::Create(v28, v27, 0, 0, (enum WindowType)99, v156, v170); | 1238 pBooksWindow = GUIWindow::Create(v28, v27, 0, 0, (enum WindowType)99, v156, v170); |
1239 goto _continue; | 1239 goto _continue; |
1240 case UIMSG_OpenHistoryBook: | 1240 case UIMSG_OpenHistoryBook: |
1241 if ( pMessageQueue_50CBD0->uNumMessages ) | 1241 if ( pMessageQueue_50CBD0->uNumMessages ) |
1242 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; | 1242 pMessageQueue_50CBD0->uNumMessages = pMessageQueue_50CBD0->pMessages[0].field_8 != 0; |
1243 if ( pCurrentScreen ) | 1243 if ( pCurrentScreen ) |
1244 pGUIWindow_CurrentMenu->Release(); | 1244 pGUIWindow_CurrentMenu->Release(); |
1245 pEventTimer->Pause(); | 1245 pEventTimer->Pause(); |
1246 pAudioPlayer->StopChannels(-1, -1); | 1246 pAudioPlayer->StopChannels(-1, -1); |
1247 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_Book, uMessage, 0); | 1247 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, WINDOW_Book, uMessage, 0); |
1248 ptr_507BE0 = GUIWindow::Create(0x258u, 0x169u, 0, 0, (enum WindowType)99, (int)ptr_507A00, 0); | 1248 pBooksWindow = GUIWindow::Create(0x258u, 0x169u, 0, 0, (enum WindowType)99, (int)pBtn_History, 0); |
1249 bFlashHistoryBook = 0; | 1249 bFlashHistoryBook = 0; |
1250 goto _continue; | 1250 goto _continue; |
1251 case UIMSG_CloseBook: | 1251 case UIMSG_CloseBook: |
1252 back_to_game(); | 1252 back_to_game(); |
1253 if ( pMessageQueue_50CBD0->uNumMessages ) | 1253 if ( pMessageQueue_50CBD0->uNumMessages ) |
1320 dword_50C9A8 = 0; | 1320 dword_50C9A8 = 0; |
1321 ptr_50C9A4 = 0; | 1321 ptr_50C9A4 = 0; |
1322 } | 1322 } |
1323 goto LABEL_322; | 1323 goto LABEL_322; |
1324 case 3: | 1324 case 3: |
1325 ptr_507BE0->Release(); | 1325 pBooksWindow->Release(); |
1326 //crt_deconstruct_ptr_6A0118(); | 1326 //crt_deconstruct_ptr_6A0118(); |
1327 ptr_507BE0 = 0; | 1327 pBooksWindow = 0; |
1328 pEventTimer->Resume(); | 1328 pEventTimer->Resume(); |
1329 goto LABEL_322; | 1329 goto LABEL_322; |
1330 case 11: | 1330 case 11: |
1331 case 12: | 1331 case 12: |
1332 pIcons_LOD->_4114F2(); | 1332 pIcons_LOD->_4114F2(); |
1334 goto LABEL_291; | 1334 goto LABEL_291; |
1335 case 15: | 1335 case 15: |
1336 pCurrentScreen = 10; | 1336 pCurrentScreen = 10; |
1337 goto _continue; | 1337 goto _continue; |
1338 case 10: | 1338 case 10: |
1339 v29 = ptr_507BB8; | 1339 v29 = pChestWindow; |
1340 goto LABEL_249; | 1340 goto LABEL_249; |
1341 case 25: | 1341 case 25: |
1342 v29 = ptr_507BC8; | 1342 v29 = ptr_507BC8; |
1343 LABEL_249: | 1343 LABEL_249: |
1344 v29->Release(); | 1344 v29->Release(); |
1582 } | 1582 } |
1583 v36 = pGUIWindow_Settings; | 1583 v36 = pGUIWindow_Settings; |
1584 if ( !pGUIWindow_Settings ) | 1584 if ( !pGUIWindow_Settings ) |
1585 { | 1585 { |
1586 dword_6BE138 = -1; | 1586 dword_6BE138 = -1; |
1587 GUIWindow::Create(0x25Au, 0x1C2u, 0, 0, (enum WindowType)90, (int)ptr_5079F0, v0); | 1587 GUIWindow::Create(0x25Au, 0x1C2u, 0, 0, (enum WindowType)90, (int)pBtn_GameSettings, v0); |
1588 pEventTimer->Pause(); | 1588 pEventTimer->Pause(); |
1589 pAudioPlayer->StopChannels(-1, -1); | 1589 pAudioPlayer->StopChannels(-1, -1); |
1590 ++pIcons_LOD->uTexturePacksCount; | 1590 ++pIcons_LOD->uTexturePacksCount; |
1591 pCurrentScreen = v0; | 1591 pCurrentScreen = v0; |
1592 if ( !pIcons_LOD->uNumPrevLoadedFiles ) | 1592 if ( !pIcons_LOD->uNumPrevLoadedFiles ) |
1597 uTextureID_50793C = pIcons_LOD->LoadTexture("load1", TEXTURE_16BIT_PALETTE); | 1597 uTextureID_50793C = pIcons_LOD->LoadTexture("load1", TEXTURE_16BIT_PALETTE); |
1598 uTextureID_507938 = pIcons_LOD->LoadTexture("save1", TEXTURE_16BIT_PALETTE); | 1598 uTextureID_507938 = pIcons_LOD->LoadTexture("save1", TEXTURE_16BIT_PALETTE); |
1599 uTextureID_507934 = pIcons_LOD->LoadTexture("controls1", TEXTURE_16BIT_PALETTE); | 1599 uTextureID_507934 = pIcons_LOD->LoadTexture("controls1", TEXTURE_16BIT_PALETTE); |
1600 uTextureID_507930 = pIcons_LOD->LoadTexture("resume1", TEXTURE_16BIT_PALETTE); | 1600 uTextureID_507930 = pIcons_LOD->LoadTexture("resume1", TEXTURE_16BIT_PALETTE); |
1601 uTextureID_50792C = pIcons_LOD->LoadTexture("quit1", TEXTURE_16BIT_PALETTE); | 1601 uTextureID_50792C = pIcons_LOD->LoadTexture("quit1", TEXTURE_16BIT_PALETTE); |
1602 ptr_50C9C4 = pGUIWindow_CurrentMenu->CreateButton( | 1602 pBtn_NewGame = pGUIWindow_CurrentMenu->CreateButton( |
1603 0x13u, | 1603 0x13u, |
1604 0x9Bu, | 1604 0x9Bu, |
1605 0xD6u, | 1605 0xD6u, |
1606 0x28u, | 1606 0x28u, |
1607 v0, | 1607 v0, |
1610 0, | 1610 0, |
1611 0x4Eu, | 1611 0x4Eu, |
1612 pGlobalTXT_LocalizationStrings[614],// "New Game" | 1612 pGlobalTXT_LocalizationStrings[614],// "New Game" |
1613 (Texture *)(uTextureID_507940 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507940] : 0), | 1613 (Texture *)(uTextureID_507940 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507940] : 0), |
1614 0); | 1614 0); |
1615 ptr_50C9C0 = pGUIWindow_CurrentMenu->CreateButton( | 1615 pBtn_SaveGame = pGUIWindow_CurrentMenu->CreateButton( |
1616 0x13u, | 1616 0x13u, |
1617 0xD1u, | 1617 0xD1u, |
1618 0xD6u, | 1618 0xD6u, |
1619 0x28u, | 1619 0x28u, |
1620 v0, | 1620 v0, |
1623 0, | 1623 0, |
1624 0x53u, | 1624 0x53u, |
1625 pGlobalTXT_LocalizationStrings[615],// "Save Game" | 1625 pGlobalTXT_LocalizationStrings[615],// "Save Game" |
1626 (Texture *)(uTextureID_507938 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507938] : 0), | 1626 (Texture *)(uTextureID_507938 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507938] : 0), |
1627 0); | 1627 0); |
1628 ptr_50C9BC = pGUIWindow_CurrentMenu->CreateButton( | 1628 pBtn_LoadGame = pGUIWindow_CurrentMenu->CreateButton( |
1629 0x13u, | 1629 0x13u, |
1630 0x107u, | 1630 0x107u, |
1631 0xD6u, | 1631 0xD6u, |
1632 0x28u, | 1632 0x28u, |
1633 v0, | 1633 v0, |
1636 0, | 1636 0, |
1637 0x4Cu, | 1637 0x4Cu, |
1638 pGlobalTXT_LocalizationStrings[616],// "Load Game" | 1638 pGlobalTXT_LocalizationStrings[616],// "Load Game" |
1639 (Texture *)(uTextureID_50793C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50793C] : 0), | 1639 (Texture *)(uTextureID_50793C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50793C] : 0), |
1640 0); | 1640 0); |
1641 pyt_50C9B8 = pGUIWindow_CurrentMenu->CreateButton( | 1641 pBtn_GameControls = pGUIWindow_CurrentMenu->CreateButton( |
1642 0xF1u, | 1642 0xF1u, |
1643 0x9Bu, | 1643 0x9Bu, |
1644 0xD6u, | 1644 0xD6u, |
1645 0x28u, | 1645 0x28u, |
1646 v0, | 1646 v0, |
1649 0, | 1649 0, |
1650 0x43u, | 1650 0x43u, |
1651 pGlobalTXT_LocalizationStrings[617],// ""Sound, Keyboard, Game Options:"" | 1651 pGlobalTXT_LocalizationStrings[617],// ""Sound, Keyboard, Game Options:"" |
1652 (Texture *)(uTextureID_507934 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507934] : 0), | 1652 (Texture *)(uTextureID_507934 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507934] : 0), |
1653 0); | 1653 0); |
1654 ptr_50C9B4 = pGUIWindow_CurrentMenu->CreateButton( | 1654 pBtn_QuitGame = pGUIWindow_CurrentMenu->CreateButton( |
1655 0xF1u, | 1655 0xF1u, |
1656 0xD1u, | 1656 0xD1u, |
1657 0xD6u, | 1657 0xD6u, |
1658 0x28u, | 1658 0x28u, |
1659 v0, | 1659 v0, |
1662 0, | 1662 0, |
1663 0x51u, | 1663 0x51u, |
1664 pGlobalTXT_LocalizationStrings[618],// "Quit" | 1664 pGlobalTXT_LocalizationStrings[618],// "Quit" |
1665 (Texture *)(uTextureID_50792C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50792C] : 0), | 1665 (Texture *)(uTextureID_50792C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50792C] : 0), |
1666 0); | 1666 0); |
1667 ptr_50C9B0 = pGUIWindow_CurrentMenu->CreateButton( | 1667 pBtn_Resume = pGUIWindow_CurrentMenu->CreateButton( |
1668 0xF1u, | 1668 0xF1u, |
1669 0x107u, | 1669 0x107u, |
1670 0xD6u, | 1670 0xD6u, |
1671 0x28u, | 1671 0x28u, |
1672 v0, | 1672 v0, |
1692 _continue: | 1692 _continue: |
1693 continue; | 1693 continue; |
1694 case UIMSG_BC: | 1694 case UIMSG_BC: |
1695 if ( uMessageParam ) | 1695 if ( uMessageParam ) |
1696 { | 1696 { |
1697 GUIWindow::Create(0x272u, 0xB3u, 0, 0, (enum WindowType)90, (int)ptr_5079E8, 0); | 1697 GUIWindow::Create(0x272u, 0xB3u, 0, 0, (enum WindowType)90, (int)pBtn_NPCRight, 0); |
1698 v37 = (pParty->pHirelings[0].pName != 0) | 1698 v37 = (pParty->pHirelings[0].pName != 0) |
1699 + (pParty->pHirelings[1].pName != 0) | 1699 + (pParty->pHirelings[1].pName != 0) |
1700 + (unsigned __int8)pParty->field_70A | 1700 + (unsigned __int8)pParty->field_70A |
1701 - 2; | 1701 - 2; |
1702 if ( (unsigned __int8)pParty->field_709 < v37 ) | 1702 if ( (unsigned __int8)pParty->field_709 < v37 ) |
1709 - 2; | 1709 - 2; |
1710 } | 1710 } |
1711 } | 1711 } |
1712 else | 1712 else |
1713 { | 1713 { |
1714 GUIWindow::Create(0x1D5u, 0xB3u, 0, 0, (enum WindowType)90, (int)ptr_5079EC, 0); | 1714 GUIWindow::Create(0x1D5u, 0xB3u, 0, 0, (enum WindowType)90, (int)pBtn_NPCLeft, 0); |
1715 if ( pParty->field_709 ) | 1715 if ( pParty->field_709 ) |
1716 { | 1716 { |
1717 --pParty->field_709; | 1717 --pParty->field_709; |
1718 if ( pParty->field_709 < 1 ) | 1718 if ( pParty->field_709 < 1 ) |
1719 pParty->field_709 = 0; | 1719 pParty->field_709 = 0; |
2146 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = v0; | 2146 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].param = v0; |
2147 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; | 2147 *(&pMessageQueue_50CBD0->uNumMessages + 3 * pMessageQueue_50CBD0->uNumMessages + 3) = 0; |
2148 ++pMessageQueue_50CBD0->uNumMessages; | 2148 ++pMessageQueue_50CBD0->uNumMessages; |
2149 } | 2149 } |
2150 //crt_deconstruct_ptr_6A0118(); | 2150 //crt_deconstruct_ptr_6A0118(); |
2151 ptr_507BE0->Release(); | 2151 pBooksWindow->Release(); |
2152 pGUIWindow_CurrentMenu->Release(); | 2152 pGUIWindow_CurrentMenu->Release(); |
2153 ptr_507BE0 = 0; | 2153 pBooksWindow = 0; |
2154 pGUIWindow_CurrentMenu = 0; | 2154 pGUIWindow_CurrentMenu = 0; |
2155 } | 2155 } |
2156 else | 2156 else |
2157 { | 2157 { |
2158 sprintf(a1, "data\\lloyd%d%d.pcx", _506348_current_lloyd_playerid + 1, uMessageParam + 1); | 2158 sprintf(a1, "data\\lloyd%d%d.pcx", _506348_current_lloyd_playerid + 1, uMessageParam + 1); |
2707 } | 2707 } |
2708 sprintf(pTmpBuf, v161, v178); | 2708 sprintf(pTmpBuf, v161, v178); |
2709 sub_41C0B8_set_status_string(pTmpBuf); | 2709 sub_41C0B8_set_status_string(pTmpBuf); |
2710 goto LABEL_91; | 2710 goto LABEL_91; |
2711 case 0x58: | 2711 case 0x58: |
2712 GUIWindow::Create(ptr_5064F8->uX, ptr_5064F8->uY, 0, 0, (enum WindowType)90, (int)ptr_5064F8, 0); | 2712 GUIWindow::Create(pBtn_InstallRemoveSpell->uX, pBtn_InstallRemoveSpell->uY, 0, 0, (enum WindowType)90, (int)pBtn_InstallRemoveSpell, 0); |
2713 if ( !uActiveCharacter ) | 2713 if ( !uActiveCharacter ) |
2714 goto _continue; | 2714 goto _continue; |
2715 thisk = pPlayers[uActiveCharacter]; | 2715 thisk = pPlayers[uActiveCharacter]; |
2716 if ( !byte_506550 || !dword_50654C ) | 2716 if ( !byte_506550 || !dword_50654C ) |
2717 { | 2717 { |
2877 && (pCurrentScreen <= 99 | 2877 && (pCurrentScreen <= 99 |
2878 || pCurrentScreen > 103) ) | 2878 || pCurrentScreen > 103) ) |
2879 { | 2879 { |
2880 pGUIWindow_CurrentMenu->Release(); | 2880 pGUIWindow_CurrentMenu->Release(); |
2881 LABEL_693: | 2881 LABEL_693: |
2882 GUIWindow::Create(0x1DCu, 0x1C2u, 0, 0, (enum WindowType)90, (int)ptr_5079F8, 0); | 2882 GUIWindow::Create(0x1DCu, 0x1C2u, 0, 0, (enum WindowType)90, (int)pBtn_CastSpell, 0); |
2883 pCurrentScreen = 8; | 2883 pCurrentScreen = 8; |
2884 pEventTimer->Pause(); | 2884 pEventTimer->Pause(); |
2885 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, (enum WindowType)18, 0, 0); | 2885 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, (enum WindowType)18, 0, 0); |
2886 pAudioPlayer->PlaySound((SoundID)48, 0, 0, -1, 0, 0, 0, 0); | 2886 pAudioPlayer->PlaySound((SoundID)48, 0, 0, -1, 0, 0, 0, 0); |
2887 viewparams->field_48 = v0; | 2887 viewparams->field_48 = v0; |
2896 if ( pCurrentScreen ) | 2896 if ( pCurrentScreen ) |
2897 pGUIWindow_CurrentMenu->Release(); | 2897 pGUIWindow_CurrentMenu->Release(); |
2898 ++pIcons_LOD->uTexturePacksCount; | 2898 ++pIcons_LOD->uTexturePacksCount; |
2899 if ( !pIcons_LOD->uNumPrevLoadedFiles ) | 2899 if ( !pIcons_LOD->uNumPrevLoadedFiles ) |
2900 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; | 2900 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; |
2901 GUIWindow::Create(0x230u, 0x1C2u, 0, 0, (enum WindowType)90, (int)ptr_5079F4, 0); | 2901 GUIWindow::Create(0x230u, 0x1C2u, 0, 0, (enum WindowType)90, (int)pBtn_QuickReference, 0); |
2902 viewparams->bRedrawGameUI = v0; | 2902 viewparams->bRedrawGameUI = v0; |
2903 pEventTimer->Pause(); | 2903 pEventTimer->Pause(); |
2904 pAudioPlayer->StopChannels(-1, -1); | 2904 pAudioPlayer->StopChannels(-1, -1); |
2905 pCurrentScreen = 104; | 2905 pCurrentScreen = 104; |
2906 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, (enum WindowType)12, 5, 0); | 2906 pGUIWindow_CurrentMenu = GUIWindow::Create(0, 0, 640, 480, (enum WindowType)12, 5, 0); |
2907 papredoll_dbrds[2] = pIcons_LOD->LoadTexture("BUTTEXI1", TEXTURE_16BIT_PALETTE); | 2907 papredoll_dbrds[2] = pIcons_LOD->LoadTexture("BUTTEXI1", TEXTURE_16BIT_PALETTE); |
2908 ptr_5076F4 = pGUIWindow_CurrentMenu->CreateButton( | 2908 pBtn_ExitCancel = pGUIWindow_CurrentMenu->CreateButton( |
2909 0x187u, | 2909 0x187u, |
2910 0x13Cu, | 2910 0x13Cu, |
2911 0x4Bu, | 2911 0x4Bu, |
2912 0x21u, | 2912 0x21u, |
2913 v0, | 2913 v0, |
2931 stru_506E40.Release(); | 2931 stru_506E40.Release(); |
2932 uNumSeconds = (unsigned int)MakeScreenshot(155, 117); | 2932 uNumSeconds = (unsigned int)MakeScreenshot(155, 117); |
2933 pRenderer->SavePCXImage("gamma.pcx", (char *)uNumSeconds, 155, 117); | 2933 pRenderer->SavePCXImage("gamma.pcx", (char *)uNumSeconds, 155, 117); |
2934 free((void *)uNumSeconds); | 2934 free((void *)uNumSeconds); |
2935 stru_506E40._40E55E("gamma.pcx", 0); | 2935 stru_506E40._40E55E("gamma.pcx", 0); |
2936 GUIWindow::Create(0x25Au, 0x1C2u, 0, 0, (enum WindowType)92, (int)ptr_5079F0, 0); | 2936 GUIWindow::Create(0x25Au, 0x1C2u, 0, 0, (enum WindowType)92, (int)pBtn_GameSettings, 0); |
2937 LABEL_453: | 2937 LABEL_453: |
2938 if ( (signed int)pMessageQueue_50CBD0->uNumMessages >= 40 ) | 2938 if ( (signed int)pMessageQueue_50CBD0->uNumMessages >= 40 ) |
2939 goto _continue; | 2939 goto _continue; |
2940 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; | 2940 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = (UIMessageType)113; |
2941 goto LABEL_770; | 2941 goto LABEL_770; |
2943 dword_50651C = v0; | 2943 dword_50651C = v0; |
2944 if ( pMouse->GetCursorPos(&v211)->y > 178 ) | 2944 if ( pMouse->GetCursorPos(&v211)->y > 178 ) |
2945 dword_50651C = -1; | 2945 dword_50651C = -1; |
2946 goto _continue; | 2946 goto _continue; |
2947 case UIMSG_A9: | 2947 case UIMSG_A9: |
2948 GUIWindow::Create(ptr_507B9C->uX, ptr_507B9C->uY, 0, 0, (WindowType)(WINDOW_HouseInterior|0x42), (int)ptr_507B9C, 0); | 2948 GUIWindow::Create(pBtn_Up->uX, pBtn_Up->uY, 0, 0, (WindowType)(WINDOW_HouseInterior|0x42), (int)pBtn_Up, 0); |
2949 LABEL_707: | 2949 LABEL_707: |
2950 dword_506548 = v0; | 2950 dword_506548 = v0; |
2951 goto _continue; | 2951 goto _continue; |
2952 case UIMSG_AA: | 2952 case UIMSG_AA: |
2953 GUIWindow::Create(ptr_507BA0->uX, ptr_507BA0->uY, 0, 0, (WindowType)(WINDOW_HouseInterior|0x42), (int)ptr_507BA0, 0); | 2953 GUIWindow::Create(pBtn_Down->uX, pBtn_Down->uY, 0, 0, (WindowType)(WINDOW_HouseInterior|0x42), (int)pBtn_Down, 0); |
2954 LABEL_709: | 2954 LABEL_709: |
2955 dword_506544 = v0; | 2955 dword_506544 = v0; |
2956 goto _continue; | 2956 goto _continue; |
2957 case 0x55: | 2957 case 0x55: |
2958 bRingsShownInCharScreen ^= v0; | 2958 bRingsShownInCharScreen ^= v0; |
2959 GUIButton::_41D0D8(ptr_507694); | 2959 GUIButton::_41D0D8(pCharacterScreen_DetalizBtn); |
2960 GUIButton::_41D0D8(ptr_507690); | 2960 GUIButton::_41D0D8(pCharacterScreen_DollBtn); |
2961 if ( bRingsShownInCharScreen ) | 2961 if ( bRingsShownInCharScreen ) |
2962 { | 2962 { |
2963 v128 = (uTextureID_5118C8 != -1 ? pIcons_LOD->pTextures[uTextureID_5118C8].uTextureHeight : 26); | 2963 v128 = (uTextureID_5118C8 != -1 ? pIcons_LOD->pTextures[uTextureID_5118C8].uTextureHeight : 26); |
2964 v125 = (uTextureID_5118C8 != -1 ? pIcons_LOD->pTextures[uTextureID_5118C8].uTextureWidth : 24); | 2964 v125 = (uTextureID_5118C8 != -1 ? pIcons_LOD->pTextures[uTextureID_5118C8].uTextureWidth : 24); |
2965 v123 = 445; | 2965 v123 = 445; |
2970 v128 = 30; | 2970 v128 = 30; |
2971 v125 = 30; | 2971 v125 = 30; |
2972 v123 = 300; | 2972 v123 = 300; |
2973 v121 = 600; | 2973 v121 = 600; |
2974 } | 2974 } |
2975 ptr_507694 = pGUIWindow_CurrentMenu->CreateButton( | 2975 pCharacterScreen_DetalizBtn = pGUIWindow_CurrentMenu->CreateButton( |
2976 v121, | 2976 v121, |
2977 v123, | 2977 v123, |
2978 v125, | 2978 v125, |
2979 v128, | 2979 v128, |
2980 v0, | 2980 v0, |
2982 0x55u, | 2982 0x55u, |
2983 0, | 2983 0, |
2984 0, | 2984 0, |
2985 pGlobalTXT_LocalizationStrings[64],// "Detail Toggle" | 2985 pGlobalTXT_LocalizationStrings[64],// "Detail Toggle" |
2986 0); | 2986 0); |
2987 ptr_507690 = pGUIWindow_CurrentMenu->CreateButton( | 2987 pCharacterScreen_DollBtn = pGUIWindow_CurrentMenu->CreateButton( |
2988 0x1DCu, | 2988 0x1DCu, |
2989 0, | 2989 0, |
2990 0xA4u, | 2990 0xA4u, |
2991 0x159u, | 2991 0x159u, |
2992 v0, | 2992 v0, |
3053 v163 = 0; | 3053 v163 = 0; |
3054 v149 = v85; | 3054 v149 = v85; |
3055 v142 = (WindowType)91; | 3055 v142 = (WindowType)91; |
3056 goto LABEL_731; | 3056 goto LABEL_731; |
3057 case UIMSG_A8: | 3057 case UIMSG_A8: |
3058 v85 = ptr_50767C; | 3058 v85 = pCharacterScreen_ExitBtn; |
3059 v163 = 0; | 3059 v163 = 0; |
3060 v149 = ptr_50767C; | 3060 v149 = pCharacterScreen_ExitBtn; |
3061 v142 = (WindowType)97; | 3061 v142 = (WindowType)97; |
3062 goto LABEL_731; | 3062 goto LABEL_731; |
3063 case UIMSG_CloseBook|0x4: | 3063 case UIMSG_CloseBook|0x4: |
3064 sub_419379(); | 3064 sub_419379(); |
3065 sub_4196A0(); | 3065 sub_4196A0(); |
3360 void __cdecl back_to_game() | 3360 void __cdecl back_to_game() |
3361 { | 3361 { |
3362 dword_507BF0_is_there_popup_onscreen = 0; | 3362 dword_507BF0_is_there_popup_onscreen = 0; |
3363 dword_4E455C = 1; | 3363 dword_4E455C = 1; |
3364 dword_50CDCC = 0; | 3364 dword_50CDCC = 0; |
3365 if ( ptr_507BC4 ) | 3365 if ( pGUIWindow_ScrollWindow ) |
3366 free_book_subwindow(); | 3366 free_book_subwindow(); |
3367 if ( !pCurrentScreen | 3367 if ( !pCurrentScreen && !pGUIWindow_Settings ) |
3368 && !pGUIWindow_Settings ) | |
3369 pEventTimer->Resume(); | 3368 pEventTimer->Resume(); |
3370 viewparams->bRedrawGameUI = 1; | 3369 viewparams->bRedrawGameUI = 1; |
3371 } | 3370 } |
3372 //----- (00435748) -------------------------------------------------------- | 3371 //----- (00435748) -------------------------------------------------------- |
3373 void __cdecl GUI_MainMenuMessageProc() | 3372 void __cdecl GUI_MainMenuMessageProc() |
3594 pGUIWindow_CurrentMenu->Release(); | 3593 pGUIWindow_CurrentMenu->Release(); |
3595 pEventTimer->Resume(); | 3594 pEventTimer->Resume(); |
3596 pCurrentScreen = 0; | 3595 pCurrentScreen = 0; |
3597 viewparams->bRedrawGameUI = 1; | 3596 viewparams->bRedrawGameUI = 1; |
3598 } | 3597 } |
3599 GUIWindow::Create(602, 450, 0, 0, (enum WindowType)92, (int)ptr_5079F0, 0); | 3598 GUIWindow::Create(602, 450, 0, 0, (enum WindowType)92, (int)pBtn_GameSettings, 0); |
3600 if ( (signed int)pMessageQueue_50CBD0->uNumMessages >= 40 ) | 3599 if ( (signed int)pMessageQueue_50CBD0->uNumMessages >= 40 ) |
3601 continue; | 3600 continue; |
3602 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = UIMSG_CloseBook; | 3601 pMessageQueue_50CBD0->pMessages[pMessageQueue_50CBD0->uNumMessages].eType = UIMSG_CloseBook; |
3603 goto LABEL_93; | 3602 goto LABEL_93; |
3604 } | 3603 } |
8371 pRenderer->DrawTextureTransparent( | 8370 pRenderer->DrawTextureTransparent( |
8372 0x1D4u, | 8371 0x1D4u, |
8373 0, | 8372 0, |
8374 (Texture *)(uTextureID_507B04 != -1 ? &pIcons_LOD->pTextures[uTextureID_507B04] : 0)); | 8373 (Texture *)(uTextureID_507B04 != -1 ? &pIcons_LOD->pTextures[uTextureID_507B04] : 0)); |
8375 pRenderer->DrawTextureIndexed( | 8374 pRenderer->DrawTextureIndexed( |
8376 ptr_507694->uX, | 8375 pCharacterScreen_DetalizBtn->uX, |
8377 ptr_507694->uY, | 8376 pCharacterScreen_DetalizBtn->uY, |
8378 (Texture *)(uTextureID_5118C8 != -1 ? &pIcons_LOD->pTextures[uTextureID_5118C8] : 0)); | 8377 (Texture *)(uTextureID_5118C8 != -1 ? &pIcons_LOD->pTextures[uTextureID_5118C8] : 0)); |
8379 v3 = 0; | 8378 v3 = 0; |
8380 v46 = (int)&pPlayer->pEquipment.field_28; | 8379 v46 = (int)&pPlayer->pEquipment.field_28; |
8381 v48 = 0; | 8380 v48 = 0; |
8382 do | 8381 do |
11982 | 11981 |
11983 | 11982 |
11984 | 11983 |
11985 | 11984 |
11986 //----- (0040D75D) -------------------------------------------------------- | 11985 //----- (0040D75D) -------------------------------------------------------- |
11987 char __fastcall pGUIWindow0_draws_text(int a1, const char *pText, int *pXY) | 11986 char __fastcall pPrimaryWindow_draws_text(int a1, const char *pText, int *pXY) |
11988 { | 11987 { |
11989 const char *v3; // ST0C_4@1 | 11988 const char *v3; // ST0C_4@1 |
11990 __int64 v4; // qax@1 | 11989 __int64 v4; // qax@1 |
11991 | 11990 |
11992 v3 = pText; | 11991 v3 = pText; |
11993 v4 = LOBYTE(pFontComic->uFontHeight) - 3; | 11992 v4 = LOBYTE(pFontComic->uFontHeight) - 3; |
11994 return pGUIWindow0->DrawText( | 11993 return pPrimaryWindow->DrawText( |
11995 pFontComic, | 11994 pFontComic, |
11996 *pXY, | 11995 *pXY, |
11997 pXY[1] - (((signed int)v4 - HIDWORD(v4)) >> 1) + 3, | 11996 pXY[1] - (((signed int)v4 - HIDWORD(v4)) >> 1) + 3, |
11998 0, | 11997 0, |
11999 v3, | 11998 v3, |
15067 pRenderer->ClearZBuffer(0, 479); | 15066 pRenderer->ClearZBuffer(0, 479); |
15068 draw_leather(); | 15067 draw_leather(); |
15069 CharacterUI_InventoryTab_Draw(uActiveCharacter, 1); | 15068 CharacterUI_InventoryTab_Draw(uActiveCharacter, 1); |
15070 CharacterUI_DrawPaperdoll(uActiveCharacter); | 15069 CharacterUI_DrawPaperdoll(uActiveCharacter); |
15071 pRenderer->DrawTextureTransparent( | 15070 pRenderer->DrawTextureTransparent( |
15072 ptr_5076F4->uX, | 15071 pBtn_ExitCancel->uX, |
15073 ptr_5076F4->uY, | 15072 pBtn_ExitCancel->uY, |
15074 (Texture *)(uTextureID_x_x_u != -1 ? &pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); | 15073 (Texture *)(uTextureID_x_x_u != -1 ? &pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); |
15075 } | 15074 } |
15076 } | 15075 } |
15077 else | 15076 else |
15078 { | 15077 { |
15116 { | 15115 { |
15117 pRenderer->ClearZBuffer(0, 479); | 15116 pRenderer->ClearZBuffer(0, 479); |
15118 draw_leather(); | 15117 draw_leather(); |
15119 CharacterUI_InventoryTab_Draw(uActiveCharacter, 1); | 15118 CharacterUI_InventoryTab_Draw(uActiveCharacter, 1); |
15120 pRenderer->DrawTextureIndexed( | 15119 pRenderer->DrawTextureIndexed( |
15121 ptr_5076F4->uX, | 15120 pBtn_ExitCancel->uX, |
15122 ptr_5076F4->uY, | 15121 pBtn_ExitCancel->uY, |
15123 (Texture *)(uTextureID_506438 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_506438] : 0)); | 15122 (Texture *)(uTextureID_506438 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_506438] : 0)); |
15124 } | 15123 } |
15125 } | 15124 } |
15126 } | 15125 } |
15127 } | 15126 } |
15827 { | 15826 { |
15828 back_to_game(); | 15827 back_to_game(); |
15829 return; | 15828 return; |
15830 } | 15829 } |
15831 } | 15830 } |
15832 if ( pParty->pPickedItem.uItemID ) | 15831 if ( pParty->pPickedItem.uItemID )//нажатие на портрет перса правой кнопкой мыши с раствором |
15833 { | 15832 { |
15834 //v1 = 0; | 15833 //v1 = 0; |
15835 //do | 15834 //do |
15836 for ( pPlayerNum = 0; pPlayerNum < 4; ++pPlayerNum) | 15835 for ( pPlayerNum = 0; pPlayerNum < 4; ++pPlayerNum) |
15837 { | 15836 { |
15867 goto LABEL_42; | 15866 goto LABEL_42; |
15868 } | 15867 } |
15869 v9 = pX + pSRZBufferLineOffsets[pY]; | 15868 v9 = pX + pSRZBufferLineOffsets[pY]; |
15870 if ( !(pRenderer->pActiveZBuffer[v9] & 0xFFFF) ) | 15869 if ( !(pRenderer->pActiveZBuffer[v9] & 0xFFFF) ) |
15871 goto LABEL_132; | 15870 goto LABEL_132; |
15872 v8 = (ItemGen *)(&pOtherOverlayList->pOverlays[49].field_4 + 2662 * (unsigned int)ptr_507BB8->ptr_1C + 18* *((short *)&pChests[0].mm7__vector_pItems[139].uExpireTime | 15871 v8 = (ItemGen *)(&pOtherOverlayList->pOverlays[49].field_4 + 2662 * (unsigned int)pChestWindow->ptr_1C + 18* *((short *)&pChests[0].mm7__vector_pItems[139].uExpireTime |
15873 + (pRenderer->pActiveZBuffer[v9] & 0xFFFF) + 2662 * (unsigned int)ptr_507BB8->ptr_1C + 3)); | 15872 + (pRenderer->pActiveZBuffer[v9] & 0xFFFF) + 2662 * (unsigned int)pChestWindow->ptr_1C + 3)); |
15874 } | 15873 } |
15875 else | 15874 else |
15876 { | 15875 { |
15877 if ( pCurrentScreen ) | 15876 if ( pCurrentScreen ) |
15878 { | 15877 { |
17424 i->uZ = 0; | 17423 i->uZ = 0; |
17425 i->uY = 0; | 17424 i->uY = 0; |
17426 i->uX = 0; | 17425 i->uX = 0; |
17427 } | 17426 } |
17428 } | 17427 } |
17429 ptr_507B9C = pGUIWindow_CurrentMenu->CreateButton( | 17428 pBtn_Up = pGUIWindow_CurrentMenu->CreateButton( |
17430 0x1B6u, | 17429 0x1B6u, |
17431 0x2Eu, | 17430 0x2Eu, |
17432 (uTextureID_ar_up_up != -1 ? pIcons_LOD->pTextures[uTextureID_ar_up_up].uTextureWidth : 24), | 17431 (uTextureID_ar_up_up != -1 ? pIcons_LOD->pTextures[uTextureID_ar_up_up].uTextureWidth : 24), |
17433 (uTextureID_ar_up_up != -1 ? pIcons_LOD->pTextures[uTextureID_ar_up_up].uTextureHeight : 26), | 17432 (uTextureID_ar_up_up != -1 ? pIcons_LOD->pTextures[uTextureID_ar_up_up].uTextureHeight : 26), |
17434 1, | 17433 1, |
17438 0, | 17437 0, |
17439 "", | 17438 "", |
17440 (Texture *)(uTextureID_ar_up_up != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_ar_up_up] : 0), | 17439 (Texture *)(uTextureID_ar_up_up != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_ar_up_up] : 0), |
17441 uTextureID_ar_up_dn != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_ar_up_dn] : 0, | 17440 uTextureID_ar_up_dn != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_ar_up_dn] : 0, |
17442 0); | 17441 0); |
17443 ptr_507BA0 = pGUIWindow_CurrentMenu->CreateButton( | 17442 pBtn_Down = pGUIWindow_CurrentMenu->CreateButton( |
17444 0x1B6u, | 17443 0x1B6u, |
17445 0x124u, | 17444 0x124u, |
17446 (uTextureID_ar_dn_up != -1 ? pIcons_LOD->pTextures[uTextureID_ar_dn_up].uTextureWidth : 24), | 17445 (uTextureID_ar_dn_up != -1 ? pIcons_LOD->pTextures[uTextureID_ar_dn_up].uTextureWidth : 24), |
17447 (uTextureID_ar_dn_up != -1 ? pIcons_LOD->pTextures[uTextureID_ar_dn_up].uTextureHeight : 26), | 17446 (uTextureID_ar_dn_up != -1 ? pIcons_LOD->pTextures[uTextureID_ar_dn_up].uTextureHeight : 26), |
17448 1, | 17447 1, |
17478 | 17477 |
17479 if ( dword_507CBC ) | 17478 if ( dword_507CBC ) |
17480 { | 17479 { |
17481 dword_507CBC = 0; | 17480 dword_507CBC = 0; |
17482 GUIButton::_41D0D8(ptr_507BA4); | 17481 GUIButton::_41D0D8(ptr_507BA4); |
17483 GUIButton::_41D0D8(ptr_507B9C); | 17482 GUIButton::_41D0D8(pBtn_Up); |
17484 GUIButton::_41D0D8(ptr_507BA0); | 17483 GUIButton::_41D0D8(pBtn_Down); |
17485 ptr_507BA0 = 0; | 17484 pBtn_Down = 0; |
17486 ptr_507B9C = 0; | 17485 pBtn_Up = 0; |
17487 for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = i->pNext ) | 17486 for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = i->pNext ) |
17488 { | 17487 { |
17489 if ( i->uControlID == 120 ) | 17488 if ( i->uControlID == 120 ) |
17490 { | 17489 { |
17491 i->uX = dword_50698C; | 17490 i->uX = dword_50698C; |