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

#include <UIInventory.h>

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

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

 GUIWindow_Inventory_CastSpell (unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const String &hint=String())
 
virtual ~GUIWindow_Inventory_CastSpell ()
 
virtual void Update ()
 
- Открытые члены унаследованные от 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 ()
 
virtual void Release ()
 
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
 

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

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

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

◆ GUIWindow_Inventory_CastSpell()

GUIWindow_Inventory_CastSpell::GUIWindow_Inventory_CastSpell ( unsigned int  x,
unsigned int  y,
unsigned int  width,
unsigned int  height,
int  button,
const String hint = String() 
)

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

37  :
39  mouse->SetCursorImage("MICON2");
40  pBtn_ExitCancel = CreateButton(392, 318, 75, 33, 1, 0, UIMSG_Escape, 0, 0, localization->GetString(34), // Cancel
41  { { ui_buttdesc2 } });
42  GameUI_StatusBar_OnEvent(localization->GetString(39), 2); // Choose target
45 }

Перекрестные ссылки GUIWindow::CreateButton(), Localization::GetString(), localization, GUIWindow::mouse, pBtn_ExitCancel, Mouse::SetCursorImage() и UIMSG_Escape.

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

◆ ~GUIWindow_Inventory_CastSpell()

virtual GUIWindow_Inventory_CastSpell::~GUIWindow_Inventory_CastSpell ( )
inlinevirtual

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

17 {}

Методы

◆ Update()

void GUIWindow_Inventory_CastSpell::Update ( )
virtual

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

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

47  {
48  render->ClearZBuffer(0, 479);
49  draw_leather();
52  render->DrawTextureAlphaNew(pBtn_ExitCancel->uX / 640.0f, pBtn_ExitCancel->uY / 480.0f, dialogue_ui_x_x_u);
53 }

Перекрестные ссылки CharacterUI_DrawPaperdoll(), CharacterUI_InventoryTab_Draw(), dialogue_ui_x_x_u, draw_leather(), pBtn_ExitCancel, pPlayers, render, uActiveCharacter, GUIButton::uX и GUIButton::uY.

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

Объявления и описания членов классов находятся в файлах:
Localization::GetString
const char * GetString(unsigned int index) const
Definition: Localization.cpp:13
UIMSG_Escape
@ UIMSG_Escape
Definition: GUIWindow.h:96
GUIWindow::CreateButton
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 * >())
Definition: GUIWindow.cpp:717
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
CURRENT_SCREEN::SCREEN_CASTING
@ SCREEN_CASTING
WINDOW_CastSpell_InInventory
@ WINDOW_CastSpell_InInventory
Definition: GUIWindow.h:313
GUIWindow::GUIWindow
GUIWindow()
Definition: GUIWindow.cpp:765
localization
Localization * localization
Definition: Localization.cpp:11
dialogue_ui_x_x_u
Image * dialogue_ui_x_x_u
Definition: GUIWindow.cpp:92
CharacterUI_DrawPaperdoll
void CharacterUI_DrawPaperdoll(Player *player)
Definition: UICharacter.cpp:930
pPlayers
NZIArray< struct Player *, 5 > pPlayers
Definition: Player.cpp:46
current_screen_type
enum CURRENT_SCREEN current_screen_type
Definition: GUIWindow.cpp:83
CharacterUI_InventoryTab_Draw
void CharacterUI_InventoryTab_Draw(Player *player, bool a2)
Definition: UICharacter.cpp:1829
current_character_screen_window
enum WindowType current_character_screen_window
Definition: GUIWindow.cpp:78
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
pBtn_ExitCancel
GUIButton * pBtn_ExitCancel
Definition: GUIButton.cpp:28
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
WINDOW_CharacterWindow_Inventory
@ WINDOW_CharacterWindow_Inventory
Definition: GUIWindow.h:330
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
GUIButton::uX
unsigned int uX
Definition: GUIButton.h:21
draw_leather
void draw_leather()
Definition: UICharacter.cpp:925
GUIWindow::mouse
Mouse * mouse
Definition: GUIWindow.h:491
uActiveCharacter
unsigned int uActiveCharacter
Definition: mm7_data.cpp:555
GUIButton::uY
unsigned int uY
Definition: GUIButton.h:22
GameUI_StatusBar_OnEvent
void GameUI_StatusBar_OnEvent(const String &str, unsigned int num_seconds)
Definition: UIStatusBar.cpp:33
Mouse::SetCursorImage
void SetCursorImage(const String &name)
Definition: Mouse.cpp:38
render
std::shared_ptr< IRender > render
Definition: RenderOpenGL.cpp:52