World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Класс GUIWindow_RestWindow

#include <UIRest.h>

+ Граф наследования:GUIWindow_RestWindow:
+ Граф связей класса GUIWindow_RestWindow:

Открытые члены

 GUIWindow_RestWindow (unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const char *hint)
 
virtual ~GUIWindow_RestWindow ()
 
virtual void Update ()
 
virtual void Release ()
 
- Открытые члены унаследованные от GUIWindow
 GUIWindow ()
 
 GUIWindow (WindowType windowType, unsigned int uX, unsigned int uY, unsigned int uWidth, unsigned int uHeight, int pButton, const String &hint=String())
 
virtual ~GUIWindow ()
 
GUIButtonCreateButton (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 * >())
 
bool Contains (unsigned int x, unsigned int y)
 
void DrawFlashingInputCursor (int uX, int uY, GUIFont *a2)
 
int DrawTextInRect (GUIFont *font, unsigned int x, unsigned int y, unsigned int color, const char *text, int rect_width, int reverse_text)
 
int DrawTextInRect (GUIFont *font, unsigned int x, unsigned int y, unsigned int color, String &str, int rect_width, int reverse_text)
 
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)
 
void DrawText (GUIFont *font, int x, int y, unsigned short uFontColor, const String &str, bool present_time_transparency=false, int max_text_height=0, int uFontShadowColor=0)
 
void DrawTitleText (GUIFont *font, int horizontal_margin, int vertical_margin, unsigned __int16 uDefaultColor, const char *pInString, int line_spacing)
 
void DrawTitleText (GUIFont *font, int horizontal_margin, int vertical_margin, unsigned __int16 uDefaultColor, const String &str, int line_spacing)
 
void DrawShops_next_generation_time_string (GameTime time)
 
void HouseDialogManager ()
 
void DrawMessageBox (bool inside_game_viewport)
 
GUIButtonGetControl (unsigned int uID)
 
void _41D08F_set_keyboard_control_group (int num_buttons, int a3, int a4, int a5)
 
void _41D73D_draw_buff_tooltip ()
 
void DeleteButtons ()
 

Дополнительные унаследованные члены

- Открытые статические члены унаследованные от GUIWindow
static void InitializeGUI ()
 
- Открытые атрибуты унаследованные от GUIWindow
unsigned int uFrameX
 
unsigned int uFrameY
 
unsigned int uFrameWidth
 
unsigned int uFrameHeight
 
unsigned int uFrameZ
 
unsigned int uFrameW
 
WindowType eWindowType
 
union {
   void *   ptr_1C
 
   unsigned int   par1C
 
}; 
 
int field_24
 
int pNumPresenceButton
 
int pCurrentPosActiveItem
 
int field_30
 
int field_34
 
int pStartingPosActiveItem
 
int receives_keyboard_input_2
 
bool receives_keyboard_input
 
String sHint
 
std::vector< GUIButton * > vButtons
 
Mousemouse = nullptr
 
Loglog = nullptr
 

Подробное описание

См. определение в файле UIRest.h строка 13

Конструктор(ы)

◆ GUIWindow_RestWindow()

GUIWindow_RestWindow::GUIWindow_RestWindow ( unsigned int  x,
unsigned int  y,
unsigned int  width,
unsigned int  height,
int  button,
const char *  hint 
)
inline

См. определение в файле UIRest.h строка 15

15  :
16  GUIWindow(WINDOW_Rest, x, y, width, height, button, hint)
17  {}

◆ ~GUIWindow_RestWindow()

virtual GUIWindow_RestWindow::~GUIWindow_RestWindow ( )
inlinevirtual

См. определение в файле UIRest.h строка 18

18 {}

Методы

◆ Update()

void GUIWindow_RestWindow::Update ( )
virtual

Переопределяет метод предка GUIWindow.

См. определение в файле UIRest.cpp строка 34

34  {
35  __debugbreak(); // doesnt seems to get here, check stack trace & conditions
36  GUIButton GUIButton2; // [sp+28h] [bp-E0h]@133
37  GUIButton2.uZ = 197;
38  GUIButton2.uW = 197;
39  GUIButton2.uX = 27;
40  GUIButton2.uY = 161;
41  GUIButton2.uWidth = 171;
42  GUIButton2.uHeight = 37;
45  render->DrawTextureAlphaNew(uFrameX / 640.0f, uFrameY / 480.0f,
46  *((Image **)ptr_1C + 15));
48  GUIButton2.DrawLabel(localization->GetString(183), pFontCreate, 0,
49  0); // Rest & Heal 8 hrs / Отдых и лечение 8 часов
50  GUIButton2.pParent = 0;
51  Release();
52 }

Перекрестные ссылки __debugbreak(), ViewingParams::bRedrawGameUI, GUIButton::DrawLabel(), Localization::GetString(), localization, pAudioPlayer, pButton_RestUI_WaitUntilDawn, pFontCreate, AudioPlayer::PlaySound(), GUIButton::pParent, GUIWindow::ptr_1C, Release(), render, SOUND_StartMainChoice02, GUIWindow::uFrameX, GUIWindow::uFrameY, GUIButton::uHeight, GUIButton::uW, GUIButton::uWidth, GUIButton::uX, GUIButton::uY, GUIButton::uZ и viewparams.

+ Граф вызовов:

◆ Release()

virtual void GUIWindow_RestWindow::Release ( )
virtual

Переопределяет метод предка GUIWindow.

Используется в Update().

+ Граф вызова функции:

Объявления и описания членов классов находятся в файлах:
Localization::GetString
const char * GetString(unsigned int index) const
Definition: Localization.cpp:13
WINDOW_Rest
@ WINDOW_Rest
Definition: GUIWindow.h:301
GUIButton::pParent
GUIWindow * pParent
Definition: GUIButton.h:33
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
GUIButton::uZ
unsigned int uZ
Definition: GUIButton.h:25
AudioPlayer::PlaySound
void PlaySound(SoundID eSoundID, int pid, unsigned int uNumRepeats, int x, int y, int a7)
Definition: AudioPlayer.cpp:195
GUIWindow::GUIWindow
GUIWindow()
Definition: GUIWindow.cpp:765
localization
Localization * localization
Definition: Localization.cpp:11
GUIWindow_RestWindow::Release
virtual void Release()
pFontCreate
GUIFont * pFontCreate
Definition: GUIFont.cpp:22
GUIButton
Definition: GUIButton.h:11
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
Image
Definition: Image.h:19
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
viewparams
struct ViewingParams * viewparams
Definition: mm7_data.cpp:22
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
f
GLfloat f
Definition: SDL_opengl_glext.h:1873
pButton_RestUI_WaitUntilDawn
GUIButton * pButton_RestUI_WaitUntilDawn
Definition: GUIButton.cpp:37
GUIButton::uWidth
unsigned int uWidth
Definition: GUIButton.h:23
GUIWindow::uFrameY
unsigned int uFrameY
Definition: GUIWindow.h:469
GUIButton::uX
unsigned int uX
Definition: GUIButton.h:21
GUIButton::uW
unsigned int uW
Definition: GUIButton.h:26
GUIButton::DrawLabel
void DrawLabel(const String &label_text, GUIFont *pFont, int a5, int uFontShadowColor)
Definition: GUIButton.cpp:104
GUIButton::uY
unsigned int uY
Definition: GUIButton.h:22
__debugbreak
void __cdecl __debugbreak(void)
GUIButton::uHeight
unsigned int uHeight
Definition: GUIButton.h:24
GUIWindow::ptr_1C
void * ptr_1C
Definition: GUIWindow.h:476
ViewingParams::bRedrawGameUI
int bRedrawGameUI
Definition: Viewport.h:74
GUIWindow::uFrameX
unsigned int uFrameX
Definition: GUIWindow.h:468
pAudioPlayer
AudioPlayer * pAudioPlayer
Definition: AudioPlayer.cpp:20
SOUND_StartMainChoice02
@ SOUND_StartMainChoice02
Definition: AudioPlayer.h:37
render
std::shared_ptr< IRender > render
Definition: RenderOpenGL.cpp:52