World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
34 unsigned int page_count;
48 {{ui_book_button1_on}});
53 {{ui_book_button2_on}});
56 journal_window.uFrameX = 48;
57 journal_window.uFrameY = 70;
58 journal_window.uFrameWidth = 360;
59 journal_window.uFrameHeight = 264;
60 journal_window.uFrameZ = 407;
61 journal_window.uFrameHeight =
63 journal_window.uFrameW = journal_window.uFrameHeight + 69;
76 str, journal_window.uFrameWidth, 1);
79 (
signed int)journal_window.uFrameHeight) +
83 for (
uint j = 0; j <= page_count - 1; ++j)
103 render->DrawTextureAlphaNew(471 / 640.0
f, 445 / 480.0
f,
188 str.c_str(), &journal_window, 1,
void DrawText(GUIFont *font, int x, int y, unsigned short uFontColor, const char *str, bool present_time_transparency=false, int max_text_height=0, int uFontShadowColor=0)
const char * GetString(unsigned int index) const
unsigned int ui_book_journal_text_shadow
Image * ui_exit_cancel_button_background
GUIButton * CreateButton(int x, int y, int width, int height, int a6, int a7, UIMessageType msg, unsigned int msg_param, uint8_t hotkey, const String &label, const std::vector< Image * > &textures=std::vector< Image * >())
Image * ui_book_button1_on
void PlaySound(SoundID eSoundID, int pid, unsigned int uNumRepeats, int x, int y, int a7)
unsigned int game_viewport_width
Localization * localization
unsigned int ui_book_journal_text_color
std::array< GameTime, 29 > HistoryEventTimes
void DrawTitleText(GUIFont *font, int horizontal_margin, int vertical_margin, unsigned __int16 uDefaultColor, const char *pInString, int line_spacing)
unsigned int GetHeight() const
unsigned int game_viewport_height
PartyTimeStruct PartyTimes
Image * ui_book_button2_on
Image * ui_book_journal_background
Texture * GetImage_ColorKey(const String &name, uint16_t colorkey)
unsigned int uFrameHeight
StorylineRecord StoreLine[29]
void StopChannels(int uStartChannel, int uEndChannel)
unsigned int CalcTextHeight(const String &str, unsigned int width, int x_offset, bool return_on_carriage=false)
std::array< AwardType, 1000 > achieved_awards
String GetPageTop(const String &pInString, GUIWindow *pWindow, unsigned int uX, int a5)
std::array< char, 100 > Journal_limitation_factor
struct StorylineText * pStorylineText
Image * ui_book_button1_off
void memset32(void *ptr, uint32_t value, int count)
String BuildDialogueString(const char *lpsz, unsigned __int8 uPlayerID, ItemGen *a3, char *a4, int a5, GameTime *a6)
struct Viewport * pViewport
unsigned int ui_book_journal_title_color
GUIWindow * pBooksButtonOverlay
Image * ui_book_button2_off
void BasicBookInitialization()
int books_primary_item_per_page
unsigned int uActiveCharacter
Texture * GetImage_Alpha(const String &name)
std::array< char, 777 > books_num_items_per_page
AudioPlayer * pAudioPlayer
int full_num_items_in_book
std::shared_ptr< IRender > render