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

#include <UIInventory.h>

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

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

 GUIWindow_Inventory (unsigned int x, unsigned int y, unsigned int width, unsigned int height, int button, const String &hint=String())
 
virtual ~GUIWindow_Inventory ()
 
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 строка 5

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

◆ GUIWindow_Inventory()

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

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

7  :

◆ ~GUIWindow_Inventory()

virtual GUIWindow_Inventory::~GUIWindow_Inventory ( )
inlinevirtual

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

9 {}

Методы

◆ Update()

void GUIWindow_Inventory::Update ( )
virtual

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

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

17  {
18  DrawMessageBox(0);
19  DrawText(pFontLucida, 10, 20, 0, "Making item number", 0, 0, 0);
21  if (!pKeyActionMap->field_204) {
22  ItemGen ItemGen2;
23  ItemGen2.Reset();
24  Release();
28  int v39 = atoi(pKeyActionMap->pPressedKeysBuffer);
29  if (v39 > 0 && v39 < 800) {
30  SpawnActor(v39);
31  }
32  }
33 }

Перекрестные ссылки ViewingParams::bRedrawGameUI, current_screen_type, GUIWindow::DrawMessageBox(), GUIWindow::DrawText(), KeyboardActionMapping::field_204, pEventTimer, pFontLucida, pKeyActionMap, KeyboardActionMapping::pPressedKeysBuffer, GUIWindow::Release(), ItemGen::Reset(), Timer::Resume(), SCREEN_GAME, SpawnActor() и viewparams.

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

Объявления и описания членов классов находятся в файлах:
GUIWindow::DrawText
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)
Definition: GUIWindow.cpp:694
Timer::Resume
void Resume()
Definition: Time.cpp:27
SpawnActor
bool SpawnActor(unsigned int uMonsterID)
Definition: Actor.cpp:4922
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
GUIWindow::GUIWindow
GUIWindow()
Definition: GUIWindow.cpp:765
GUIWindow::Release
virtual void Release()
Definition: GUIWindow.cpp:292
ItemGen::Reset
void Reset()
Definition: Items.cpp:133
current_screen_type
enum CURRENT_SCREEN current_screen_type
Definition: GUIWindow.cpp:83
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
WINDOW_CharacterWindow_Inventory
@ WINDOW_CharacterWindow_Inventory
Definition: GUIWindow.h:330
viewparams
struct ViewingParams * viewparams
Definition: mm7_data.cpp:22
GUIWindow::DrawMessageBox
void DrawMessageBox(bool inside_game_viewport)
Definition: GUIWindow.cpp:319
KeyboardActionMapping::pPressedKeysBuffer
char pPressedKeysBuffer[257]
Definition: Keyboard.h:66
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
KeyboardActionMapping::field_204
int field_204
Definition: Keyboard.h:70
CURRENT_SCREEN::SCREEN_GAME
@ SCREEN_GAME
pKeyActionMap
struct KeyboardActionMapping * pKeyActionMap
Definition: Keyboard.cpp:35
ViewingParams::bRedrawGameUI
int bRedrawGameUI
Definition: Viewport.h:74
ItemGen
Definition: Items.h:263
pFontLucida
GUIFont * pFontLucida
Definition: GUIFont.cpp:19
pEventTimer
Timer * pEventTimer
Definition: Time.cpp:8