Mercurial > mm7
annotate UI/UIHouses.h @ 2412:e7a551f458e1
LoadSound - cause of the crash exe file
author | Ritor1 |
---|---|
date | Wed, 16 Jul 2014 17:22:12 +0600 |
parents | a574a80e7012 |
children | 2a8010d99cf8 |
rev | line source |
---|---|
1298 | 1 #pragma once |
1411 | 2 #include "..\Events2D.h" |
1298 | 3 |
4 enum HOUSE_DIALOGUE_MENU: __int32 | |
5 { | |
6 HOUSE_DIALOGUE_NULL = 0, | |
7 HOUSE_DIALOGUE_MAIN = 1, | |
8 HOUSE_DIALOGUE_SHOP_BUY_STANDARD = 2, | |
9 HOUSE_DIALOGUE_SHOP_SELL = 3, | |
10 HOUSE_DIALOGUE_SHOP_IDENTIFY = 4, | |
11 HOUSE_DIALOGUE_SHOP_REPAIR = 5, | |
12 HOUSE_DIALOGUE_SHOP_6 = 6, | |
1573 | 13 HOUSE_DIALOGUE_BANK_PUT_GOLD = 7, |
14 HOUSE_DIALOGUE_BANK_GET_GOLD = 8, | |
1298 | 15 HOUSE_DIALOGUE_9 = 9, |
16 HOUSE_DIALOGUE_TEMPLE_HEAL = 10, | |
17 HOUSE_DIALOGUE_TEMPLE_DONATE = 11, | |
18 HOUSE_DIALOGUE_12 = 12, | |
19 HOUSE_DIALOGUE_13 = 13, | |
20 HOUSE_DIALOGUE_14 = 14, | |
21 HOUSE_DIALOGUE_TAVERN_REST = 15, | |
22 HOUSE_DIALOGUE_TAVERN_BUY_FOOD = 16, | |
23 HOUSE_DIALOGUE_TRAININGHALL_TRAIN = 17, | |
24 HOUSE_DIALOGUE_GUILD_BUY_BOOKS = 18, | |
25 //... | |
26 HOUSE_DIALOGUE_36 = 36, | |
27 //.. | |
28 HOUSE_DIALOGUE_GUILD_LEARN_SKILL = 72, | |
29 //... | |
30 HOUSE_DIALOGUE_SHOP_DISPLAY_EQUIPMENT = 94, | |
31 HOUSE_DIALOGUE_SHOP_BUY_SPECIAL = 95, | |
32 HOUSE_DIALOGUE_LEARN_SKILLS = 96, | |
33 HOUSE_DIALOGUE_97 = 97, | |
34 HOUSE_DIALOGUE_98 = 98, | |
1529 | 35 HOUSE_DIALOGUE_TOWNHALL_MESSAGE = 99, |
36 HOUSE_DIALOGUE_TOWNHALL_PAY_FINE = 100, | |
1298 | 37 HOUSE_DIALOGUE_TAVERN_ARCOMAGE_MAIN = 101, |
38 HOUSE_DIALOGUE_TAVERN_ARCOMAGE_RULES = 102, | |
39 HOUSE_DIALOGUE_TAVERN_ARCOMAGE_VICTORY_CONDITIONS = 103, | |
40 HOUSE_DIALOGUE_TAVERN_ARCOMAGE_RESULT = 104, | |
41 HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_1 = 105, | |
42 HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_2 = 106, | |
43 HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_3 = 107, | |
44 HOUSE_DIALOGUE_TRANSPORT_SCHEDULE_4 = 108, | |
45 HOUSE_DIALOGUE_OTHER = -1 | |
46 }; | |
47 | |
48 /* 349 */ | |
49 enum HOUSE_ID | |
50 { | |
51 HOUSE_SMITH_EMERALD_ISLE = 1, | |
52 HOUSE_ARMOURER_EMERALD_ISLE = 15, | |
53 HOUSE_MAGE_EMERALD_ISLE = 29, | |
54 HOUSE_MAGE_HARMONDALE = 30, | |
55 HOUSE_ALCHEMIST_EMERALD_ISLE = 42, | |
56 HOUSE_ALCHEMIST_HARMONDALE = 43, | |
57 HOUSE_STABLES_HARMONDALE = 54, | |
58 HOUSE_STABLES_STEADWICK = 55, | |
1589 | 59 HOUSE_STABLES_TULAREAN_FOREST = 56, |
60 HOUSE_STABLES_DEYJA = 57, | |
1591 | 61 HOUSE_STABLES_BRACADA_DESERT = 58, |
62 HOUSE_STABLES_TATALIA = 59, | |
63 HOUSE_STABLES_AVLEE = 60, | |
1298 | 64 HOUSE_STABLES_61 = 61, |
65 HOUSE_STABLES_62 = 62, | |
1591 | 66 HOUSE_BOATS_EMERALD_ISLE = 63, |
67 HOUSE_BOATS_ERATHIA = 64, | |
68 HOUSE_BOATS_TULAREAN_FOREST = 65, | |
69 HOUSE_BOATS_BRACADA_DESERT = 66, | |
70 HOUSE_BOATS_EVENMORN_ISLAND = 67, | |
1298 | 71 HOUSE_BOATS_68 = 68, |
1591 | 72 HOUSE_BOATS_TATALIA = 69, |
73 HOUSE_BOATS_AVLEE = 70, | |
1298 | 74 HOUSE_BOATS_71 = 71, |
75 HOUSE_BOATS_72 = 72, | |
76 HOUSE_BOATS_73 = 73, | |
77 HOUSE_TEMPLE_EMERALD_ISLE = 74, | |
78 HOUSE_TEMPLE_HARMONDALE = 75, | |
79 HOUSE_TRAINING_HALL_EMERALD_ISLE = 89, | |
80 HOUSE_TRAINING_HALL_HARMONDALE = 90, | |
81 HOUSE_TRAINING_HALL_91 = 91, | |
82 HOUSE_TRAINING_HALL_92 = 92, | |
83 HOUSE_TRAINING_HALL_93 = 93, | |
84 HOUSE_TRAINING_HALL_94 = 94, | |
85 HOUSE_TRAINING_HALL_95 = 95, | |
86 | |
87 HOUSE_TOWNHALL_HARMONDALE = 102, | |
88 HOUSE_TAVERN_EMERALD_ISLE = 107, | |
89 HOUSE_BANK_HARMONDALE = 128, | |
90 HOUSE_FIRE_GUILD_INITIATE_EMERALD_ISLE = 139, | |
91 HOUSE_AIR_GUILD_INITIATE_EMERALD_ISLE = 143, | |
92 HOUSE_SPIRIT_GUILD_INITIATE_EMERALD_ISLE = 155, | |
93 HOUSE_BODY_GUILD_INITIATE_EMERALD_ISLE = 163, | |
94 HOUSE_BODY_GUILD_ERATHIA = 165, | |
95 HOUSE_DARK_GUILD_PIT = 170, | |
96 HOUSE_LORD_AND_JUDGE_EMERALD_ISLE = 186, | |
97 HOUSE_JAIL = 187, | |
98 HOUSE_JUDGE_HARMONDALE = 190, | |
99 HOUSE_224_EMERALD_ISLE = 224, | |
100 HOUSE_225_EMERALD_ISLE = 225, | |
101 HOUSE_238_EMERALD_ISLE = 238, | |
102 HOUSE_466_HARMONDALE = 466, | |
103 HOUSE_467_HARMONDALE = 467, | |
104 HOUSE_468_HARMONDALE = 468, | |
105 HOUSE_472_HARMONDALE = 472, | |
106 HOUSE_488_HARMONDALE = 488, | |
107 HOUSE_489_HARMONDALE = 489, | |
108 HOUSE_600 = 600,//??? | |
109 HOUSE_601 = 601//??? | |
110 }; | |
111 | |
112 enum HouseSoundID: unsigned __int32 | |
113 { | |
114 HouseSound_Greeting = 1, // General greeting | |
115 HouseSound_NotEnoughMoney_TrainingSuccessful = 2, | |
116 HouseSound_Greeting_2 = 3, // Polite Greeting when you're guild member | |
117 HouseSound_Goodbye = 4 // farewells when bought something | |
118 }; | |
119 | |
1393 | 120 bool HouseUI_CheckIfPlayerCanInteract(); |
1298 | 121 void TrainingDialog(); |
122 void JailDialog(); | |
123 void MagicShopDialog(); | |
124 void GuildDialog(); | |
125 void sub_4B6478(); | |
126 bool __fastcall IsTravelAvailable(int a1); | |
1458 | 127 void TravelByTransport(); |
1298 | 128 void TempleDialog(); |
1458 | 129 void TownHallDialog(); |
130 void BankDialog(); | |
131 void TavernDialog(); | |
1298 | 132 void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound); // idb |
1458 | 133 void WeaponShopDialog(); |
134 void AlchemistDialog(); | |
135 void ArmorShopDialog(); | |
2349 | 136 void SimpleHouseDialog(); |
2350
7c10dfb6d802
Finishing moving all known UI functions to their appropriate headers
Grumpy7
parents:
2349
diff
changeset
|
137 void __fastcall OnSelectShopDialogueOption(signed int uMessageParam); |
7c10dfb6d802
Finishing moving all known UI functions to their appropriate headers
Grumpy7
parents:
2349
diff
changeset
|
138 void PrepareHouse(enum HOUSE_ID house); // idb |
7c10dfb6d802
Finishing moving all known UI functions to their appropriate headers
Grumpy7
parents:
2349
diff
changeset
|
139 bool EnterHouse(enum HOUSE_ID uHouseID); |
1298 | 140 |
1411 | 141 |
142 void InitializaDialogueOptions_Tavern(BuildingType type); // idb | |
143 void InitializaDialogueOptions_Shops(BuildingType type); | |
144 void InitializaDialogueOptions(BuildingType type); | |
2355 | 145 void InitializeBuildingResidents(); |
1411 | 146 |
1298 | 147 extern int uHouse_ExitPic; // weak |
148 extern int dword_591080; // weak | |
1411 | 149 extern BuildingType in_current_building_type; // 00F8B198 |
1298 | 150 extern HOUSE_DIALOGUE_MENU dialog_menu_id; // 00F8B19C |