World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл UIStatusBar.cpp

См. исходные тексты.

Функции

void GameUI_StatusBar_Set (const String &str)
 
void GameUI_StatusBar_Clear ()
 
void GameUI_StatusBar_OnEvent_Internal (const String &str, unsigned int ms)
 
void GameUI_StatusBar_OnEvent (const String &str, unsigned int num_seconds)
 
void GameUI_StatusBar_OnEvent_128ms (const String &str)
 
void GameUI_StatusBar_ClearEventString ()
 
void GameUI_StatusBar_OnInput (const String &str)
 
String GameUI_StatusBar_GetInput ()
 
void GameUI_StatusBar_ClearInputString ()
 
void GameUI_StatusBar_NothingHere ()
 
void GameUI_StatusBar_DrawForced ()
 
void GameUI_StatusBar_Draw ()
 
void GameUI_StatusBar_DrawImmediate (const String &str, int color)
 

Функции

◆ GameUI_StatusBar_Set()

void GameUI_StatusBar_Set ( const String str)

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

15  {
16  if (str.length() > 0) {
19  }
20  }
21 }

Перекрестные ссылки game_ui_status_bar_event_string_time_left и game_ui_status_bar_string.

Используется в Chest::ChestUI_WritePointedObjectStatusString(), Application::Game::EventLoop() и GameUI_WritePointedObjectStatusString().

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

◆ GameUI_StatusBar_Clear()

void GameUI_StatusBar_Clear ( )

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

Перекрестные ссылки game_ui_status_bar_string и GameUI_StatusBar_ClearEventString().

Используется в EnterHouse() и Application::Game::EventLoop().

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

◆ GameUI_StatusBar_OnEvent_Internal()

void GameUI_StatusBar_OnEvent_Internal ( const String str,
unsigned int  ms 
)

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

Перекрестные ссылки game_ui_status_bar_event_string, game_ui_status_bar_event_string_time_left и OS_GetTime().

Используется в GameUI_StatusBar_OnEvent() и GameUI_StatusBar_OnEvent_128ms().

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

◆ GameUI_StatusBar_OnEvent()

void GameUI_StatusBar_OnEvent ( const String str,
unsigned int  num_seconds 
)

◆ GameUI_StatusBar_OnEvent_128ms()

void GameUI_StatusBar_OnEvent_128ms ( const String str)

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

37  {
39 }

Перекрестные ссылки GameUI_StatusBar_OnEvent_Internal().

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

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

◆ GameUI_StatusBar_ClearEventString()

void GameUI_StatusBar_ClearEventString ( )

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

Перекрестные ссылки game_ui_status_bar_event_string и game_ui_status_bar_event_string_time_left.

Используется в Application::Game::EventLoop() и GameUI_StatusBar_Clear().

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

◆ GameUI_StatusBar_OnInput()

void GameUI_StatusBar_OnInput ( const String str)

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

46  {
48 }

Перекрестные ссылки game_ui_status_bar_event_string.

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

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

◆ GameUI_StatusBar_GetInput()

String GameUI_StatusBar_GetInput ( )

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

Перекрестные ссылки game_ui_status_bar_event_string.

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

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

◆ GameUI_StatusBar_ClearInputString()

void GameUI_StatusBar_ClearInputString ( )

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

Перекрестные ссылки game_ui_status_bar_event_string и game_ui_status_bar_event_string_time_left.

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

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

◆ GameUI_StatusBar_NothingHere()

void GameUI_StatusBar_NothingHere ( )

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

57  {
59  GameUI_StatusBar_OnEvent(localization->GetString(521)); // Nothing here
60  }
61 }

Перекрестные ссылки game_ui_status_bar_event_string_time_left, GameUI_StatusBar_OnEvent(), Localization::GetString() и localization.

Используется в DoInteractionWithTopmostZObject() и Engine::OnGameViewportClick().

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

◆ GameUI_StatusBar_DrawForced()

void GameUI_StatusBar_DrawForced ( )

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

63  {
64  if (game_ui_status_bar_string.length() > 0 ||
66  bForceDrawFooter = false;
68  }
69 }

Перекрестные ссылки bForceDrawFooter, game_ui_status_bar_event_string_time_left, game_ui_status_bar_string и GameUI_StatusBar_Draw().

Используется в Engine::DrawGUI().

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

◆ GameUI_StatusBar_Draw()

void GameUI_StatusBar_Draw ( )

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

71  {
72  render->DrawTextureNew(0, 352 / 480.0f, game_ui_statusbar);
73 
74  String status;
77  } else {
79  }
80 
81  if (status.length() > 0) {
83  pFontLucida, pFontLucida->AlignText_Center(450, status) + 11, 357,
84  uGameUIFontMain, status, 0, 0, uGameUIFontShadow);
85  }
86 }

Перекрестные ссылки GUIFont::AlignText_Center(), GUIWindow::DrawText(), game_ui_status_bar_event_string, game_ui_status_bar_event_string_time_left, game_ui_status_bar_string, game_ui_statusbar, pFontLucida, pPrimaryWindow, render, uGameUIFontMain и uGameUIFontShadow.

Используется в Engine::DrawGUI(), GameUI_StatusBar_DrawForced() и Application::Menu::MenuLoop().

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

◆ GameUI_StatusBar_DrawImmediate()

void GameUI_StatusBar_DrawImmediate ( const String str,
int  color 
)

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

88  {
89  render->DrawTextureNew(0, 352 / 480.0f, game_ui_statusbar);
91  pFontLucida->AlignText_Center(450, str) + 11, 357,
92  color, str);
93 }

Перекрестные ссылки GUIFont::AlignText_Center(), GUIWindow::DrawText(), game_ui_statusbar, pFontLucida, pPrimaryWindow и render.

Используется в AlchemyMagicShopWares(), ArmorShopWares(), GuildDialog(), ShopDialogIdentify(), ShopDialogRepair(), ShopDialogSellEquip() и WeaponShopWares().

+ Граф вызовов:
+ Граф вызова функции:
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
Localization::GetString
const char * GetString(unsigned int index) const
Definition: Localization.cpp:13
localization
Localization * localization
Definition: Localization.cpp:11
GameUI_StatusBar_OnEvent_Internal
void GameUI_StatusBar_OnEvent_Internal(const String &str, unsigned int ms)
Definition: UIStatusBar.cpp:28
uGameUIFontShadow
unsigned int uGameUIFontShadow
Definition: mm7_data.cpp:552
color
GLuint color
Definition: SDL_opengl_glext.h:1151
GUIFont::AlignText_Center
unsigned int AlignText_Center(unsigned int width, const String &str)
Definition: GUIFont.cpp:306
OS_GetTime
unsigned int OS_GetTime()
Definition: Lin.cpp:12
GameUI_StatusBar_Draw
void GameUI_StatusBar_Draw()
Definition: UIStatusBar.cpp:71
uGameUIFontMain
unsigned int uGameUIFontMain
Definition: mm7_data.cpp:553
f
GLfloat f
Definition: SDL_opengl_glext.h:1873
game_ui_status_bar_string
String game_ui_status_bar_string
Definition: mm7_data.cpp:638
game_ui_status_bar_event_string_time_left
unsigned int game_ui_status_bar_event_string_time_left
Definition: mm7_data.cpp:639
game_ui_statusbar
Image * game_ui_statusbar
Definition: UIGame.cpp:55
bForceDrawFooter
int bForceDrawFooter
Definition: mm7_data.cpp:640
GameUI_StatusBar_OnEvent
void GameUI_StatusBar_OnEvent(const String &str, unsigned int num_seconds)
Definition: UIStatusBar.cpp:33
GameUI_StatusBar_ClearEventString
void GameUI_StatusBar_ClearEventString()
Definition: UIStatusBar.cpp:41
pPrimaryWindow
GUIWindow * pPrimaryWindow
Definition: GUIWindow.cpp:48
pFontLucida
GUIFont * pFontLucida
Definition: GUIFont.cpp:19
game_ui_status_bar_event_string
String game_ui_status_bar_event_string
Definition: mm7_data.cpp:637
String
std::string String
Definition: Strings.h:10
render
std::shared_ptr< IRender > render
Definition: RenderOpenGL.cpp:52