World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
31 pBtnLoad = CreateButton(495, 227, ui_mainmenu_load->GetWidth(), ui_mainmenu_load->GetHeight(),
33 pBtnCredits = CreateButton(495, 282, ui_mainmenu_credits->GetWidth(), ui_mainmenu_credits->GetHeight(),
35 pBtnExit = CreateButton(495, 337, ui_mainmenu_exit->GetWidth(), ui_mainmenu_exit->GetHeight(),
53 Image *pTexture =
nullptr;
59 switch (pControlParam) {
77 render->DrawTextureAlphaNew(495 / 640.0
f, pY / 480.0
f, pTexture);
90 switch (pUIMessageType) {
127 render->ResetUIClipRect();
130 render->DrawTextureNew(0, 0, tex);
136 engine->SecondaryInitialization();
152 window->PeekMessageLoop();
GUIWindow_MainMenu * pWindow_MainMenu
unsigned int ui_mainmenu_copyright_color
const char * GetString(unsigned int index) const
void FinalInitialization()
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 * >())
void SetCurrentMenuID(MENU_STATE uMenu)
std::shared_ptr< Engine > engine
void MusicPlayTrack(enum MusicID eTrack)
Localization * localization
void DrawTitleText(GUIFont *font, int horizontal_margin, int vertical_margin, unsigned __int16 uDefaultColor, const char *pInString, int line_spacing)
Texture * GetImage_PCXFromIconsLOD(const String &name)
unsigned int GetHeight() const
void DrawMM7CopyrightWindow()
enum CURRENT_SCREEN current_screen_type
std::vector< GUIButton * > vButtons
MENU_STATE GetCurrentMenuID()
@ UIMSG_MainMenu_ShowLoadWindow
void DrawMessageBox(bool inside_game_viewport)
Texture * GetImage_ColorKey(const String &name, uint16_t colorkey)
unsigned int uFrameHeight
void StopChannels(int uStartChannel, int uEndChannel)
unsigned int CalcTextHeight(const String &str, unsigned int width, int x_offset, bool return_on_carriage=false)
EGLSurface EGLNativeWindowType * window
@ UIMSG_MainMenu_ShowPartyCreationWnd
void PopMessage(UIMessageType *pMsg, int *pParam, int *a4)
static bool first_initialization
virtual ~GUIWindow_MainMenu()
Image * ui_mainmenu_credits
int dword_6BE364_game_settings_1
AudioPlayer * pAudioPlayer
struct GUIMessageQueue * pMessageQueue_50CBD0
Image * main_menu_background
std::shared_ptr< IRender > render