World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
31 unsigned __int16 pTextColor;
44 int base_teach_price =
48 int pPrice = base_teach_price *
50 if (pPrice < base_teach_price / 3) pPrice = base_teach_price / 3;
75 i < pDialogueWindow->pNumPresenceButton +
110 (174 - pTextHeight) / 2 + 138,
111 Color16(0xFFu, 0xFFu, 0x9Bu), str, 3);
121 textspacings = (149 - all_text_height) / dialogopts;
122 if (textspacings > 32) {
126 textoffset = 162 - textspacings / 2;
129 i < pDialogueWindow->pNumPresenceButton +
135 pButton->
uY = textspacings + textoffset;
139 pButton->
uHeight = pTextHeight;
140 textoffset = pButton->
uY + pTextHeight - 1;
141 pButton->
uW = textoffset + 6;
142 pTextColor =
Color16(0xFFu, 0xFFu, 0x9Bu);
144 pTextColor =
Color16(0xFFu, 0xFFu, 0xFFu);
154 ->pActiveSkills[pButton->
msg_param - 36]) {
155 pButton->
uY = textspacings + textoffset;
159 pButton->
uHeight = pTextHeight;
160 textoffset = pButton->
uY + pTextHeight - 1;
161 pButton->
uW = textoffset + 6;
162 pTextColor =
Color16(0xFFu, 0xFFu, 0x9Bu);
164 pTextColor =
Color16(0xFFu, 0xFFu, 0xFFu);
183 for (pX = 32; pX < 452; pX += 70) {
188 render->DrawTextureAlphaNew(
189 pX / 640.0
f, 90 / 480.0
f,
196 render->DrawTextureAlphaNew(
197 pX / 640.0
f, 250 / 480.0
f,
206 for (
uint i = 0; i < 12; ++i) {
227 int testx = (pt.
x - 32) / 70;
228 if (testx >= 0 && testx < 6) {
238 testpos = 32 + 70 * testx - 420;
240 testpos = 32 + 70 * testx;
243 if (pt.
x >= testpos &&
256 ->SelectPhrasesTransaction(
266 Color16(0xFFu, 0xFFu, 0xFFu), str, 3);
302 for (
int i = 0; i < 12; ++i) {
315 randomnum = rand() % 4;
317 randomnum = rand() % 3 + 4;
319 randomnum = rand() % 2 + 7;
325 11 * randomnum + 400;
329 if (pItemNum == 487) {
336 item_spellbook->
Reset();
unsigned __int16 uint16_t
const char * GetString(unsigned int index) const
GameTime & GetPlayingTime()
Image * shop_ui_background
bool _449B57_test_bit(unsigned __int8 *a1, __int16 a2)
std::array< GameTime, 85 > Shops_next_generation_time
HOUSE_DIALOGUE_MENU dialog_menu_id
std::array< NPCTopic, 789 > pNPCTopics
void PlaySound(SoundID eSoundID, int pid, unsigned int uNumRepeats, int x, int y, int a7)
unsigned __int8 _quest_bits[64]
Localization * localization
void SpellBookGenerator()
void GameUI_StatusBar_DrawImmediate(const String &str, int color)
void DrawTitleText(GUIFont *font, int horizontal_margin, int vertical_margin, unsigned __int16 uDefaultColor, const char *pInString, int line_spacing)
NZIArray< struct Player *, 5 > pPlayers
const char * GetSkillName(unsigned int index) const
PartyTimeStruct PartyTimes
int pStartingPosActiveItem
struct ItemsTable * pItemsTable
GUIWindow * window_SpeakInHouse
std::array< int16_t, 32 > word_4F0F30
int pCurrentPosActiveItem
@ HOUSE_DIALOGUE_GUILD_BUY_BOOKS
Texture * GetImage_ColorKey(const String &name, uint16_t colorkey)
static Mouse * ResolveMouse()
static void TakeGold(int amount)
unsigned int CalcTextHeight(const String &str, unsigned int width, int x_offset, bool return_on_carriage=false)
std::array< Image *, 12 > shop_ui_items_in_store
void PlayHouseSound(unsigned int uHouseID, HouseSoundID sound)
bool HouseUI_CheckIfPlayerCanInteract()
String BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, ItemGen *a3, char *a4, int a5, GameTime *a6)
unsigned int uActiveCharacter
String FormatString(unsigned int index,...) const
void GameUI_StatusBar_OnEvent(const String &str, unsigned int num_seconds)
@ HouseSound_NotEnoughMoney_TrainingSuccessful
void DrawShops_next_generation_time_string(GameTime time)
std::array< const char *, 7 > pMerchantsBuyPhrases
GUIButton * GetControl(unsigned int uID)
std::array< int, 32 > guild_mambership_flags
AudioPlayer * pAudioPlayer
const char * GetClassName(unsigned int index) const
struct GUIMessageQueue * pMessageQueue_50CBD0
GUIWindow * pDialogueWindow
uint16_t Color16(uint32_t r, uint32_t g, uint32_t b)
std::array< std::array< ItemGen, 12 >, 32 > SpellBooksInGuilds
std::array< std::array< char, 37 >, 36 > byte_4ED970_skill_learn_ability_by_class_table
NZIArray< ItemDesc, 800 > pItems
std::shared_ptr< IRender > render