comparison GUIWindow.cpp @ 480:d4ea191229ff

BildingType
author Ritor1
date Tue, 26 Feb 2013 15:23:15 +0600
parents 7f1b00901cf7
children 5b6e2021c6fe
comparison
equal deleted inserted replaced
479:89f6107c3362 480:d4ea191229ff
1068 } 1068 }
1069 v18.uFrameWidth += 8; 1069 v18.uFrameWidth += 8;
1070 v18.uFrameZ += 8; 1070 v18.uFrameZ += 8;
1071 if ( !pDialogueNPCCount ) 1071 if ( !pDialogueNPCCount )
1072 { 1072 {
1073 if ( in_current_bilding_type == 31 ) 1073 if ( in_current_bilding_type == BildingType_Jail )
1074 { 1074 {
1075 sub_4B4F4F(); 1075 JailDialog();
1076 goto LABEL_58; 1076 goto LABEL_58;
1077 } 1077 }
1078 if ( ptr_F8B1E8 ) 1078 if ( ptr_F8B1E8 )
1079 { 1079 {
1080 w.uFrameWidth = 458; 1080 w.uFrameWidth = 458;
1149 //p2DEvents_minus1_::08[13 * (unsigned int)ptr_507BC0->ptr_1C], 1149 //p2DEvents_minus1_::08[13 * (unsigned int)ptr_507BC0->ptr_1C],
1150 p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pProprieterName, 1150 p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pProprieterName,
1151 //p2DEvents_minus1__10[13 * (unsigned int)ptr_507BC0->ptr_1C]); 1151 //p2DEvents_minus1__10[13 * (unsigned int)ptr_507BC0->ptr_1C]);
1152 p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pProprieterTitle); 1152 p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pProprieterTitle);
1153 v18.DrawTitleText(pFontCreate, 0x1E3u, 0x71u, v19, pTmpBuf, 3u); 1153 v18.DrawTitleText(pFontCreate, 0x1E3u, 0x71u, v19, pTmpBuf, 3u);
1154 if ( in_current_bilding_type <= 18 )
1155 {
1156 switch ( in_current_bilding_type ) 1154 switch ( in_current_bilding_type )
1157 { 1155 {
1158 case 18: 1156 case BildingType_WeaponShop:
1157 WeaponShopDialog();
1158 break;
1159 case BildingType_ArmorShop:
1160 ArmorShopDialog();
1161 break;
1162 case BildingType_MagicShop:
1163 MagicShopDialog();
1164 break;
1165 case BildingType_AlchemistShop:
1166 AlchemistDialog();
1167 break;
1168 case BildingType_FireGuild:
1169 case BildingType_AirGuild:
1170 case BildingType_WaterGuild:
1171 case BildingType_EarthGuild:
1172 case BildingType_SpiritGuild:
1173 case BildingType_MindGuild:
1174 case BildingType_BodyGuild:
1175 case BildingType_LightGuild:
1176 case BildingType_Dark:
1177 //case BildingType_14:
1178 //case BildingType_15:
1179 //case BildingType_16:
1180 GuildDialog();
1181 break;
1182 case BildingType_18:
1183 __debugbreak; //What over the dialog?
1159 sub_4B6478(); 1184 sub_4B6478();
1160 break; 1185 break;
1161 case 1: 1186 case BildingType_TownHall:
1162 WeaponShopDialog(); 1187 TownHallDialog();
1163 break; 1188 break;
1164 case 2: 1189 case BildingType_Tavern:
1165 ArmorShopDialog(); 1190 TavernDialog();
1166 break; 1191 break;
1167 case 3: 1192 case BildingType_Bank:
1168 MagicShopDialog(); 1193 BankDialog();
1169 break; 1194 break;
1170 case 4: 1195 case BildingType_Tample:
1171 AlchemistDialog(); 1196 TampleDialog();
1197 break;
1198 case BildingType_Stables:
1199 TravelByTransport();
1200 break;
1201 case BildingType_Training:
1202 TrainingDialog();
1203 break;
1204 case BildingType_Jail:
1205 JailDialog();
1172 break; 1206 break;
1173 default: 1207 default:
1174 if ( in_current_bilding_type > 4 )
1175 {
1176 if ( in_current_bilding_type <= 16 )
1177 {
1178 GuildDialog();
1179 }
1180 else
1181 {
1182 if ( in_current_bilding_type == 17 )
1183 sub_4B7911();
1184 }
1185 }
1186 break; 1208 break;
1187 } 1209 }
1188 goto LABEL_58;
1189 }
1190 switch ( in_current_bilding_type )
1191 {
1192 case 21:
1193 TavernDialog();
1194 break;
1195 case 22:
1196 _4B7D7E_bank();
1197 break;
1198 case 23:
1199 TampleDialog();
1200 break;
1201 default:
1202 if ( in_current_bilding_type <= 26 )
1203 break;
1204 if ( in_current_bilding_type <= 28 )
1205 {
1206 TravelByTransport();
1207 }
1208 else
1209 {
1210 if ( in_current_bilding_type != 30 )
1211 {
1212 if ( in_current_bilding_type != 31 )
1213 break;
1214 sub_4B4F4F();
1215 goto LABEL_58;
1216 }
1217 TrainingDialog();
1218 }
1219 break;
1220 }
1221 } 1210 }
1222 LABEL_58: 1211 LABEL_58:
1223 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic ) 1212 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic )
1224 { 1213 {
1225 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); 1214 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]);