#include <gameui.h>
◆ GameUI()
◆ ~GameUI()
◆ clearInfoText()
| void GameUI::clearInfoText |
( |
| ) |
|
|
inline |
◆ clearStatusText()
| void GameUI::clearStatusText |
( |
| ) |
|
|
inline |
◆ clearText()
| void GameUI::clearText |
( |
| ) |
|
◆ getFlags()
| const Flags & GameUI::getFlags |
( |
| ) |
const |
|
inline |
◆ init()
References gui::StaticText::add(), FM_Mono, FM_Unspecified, g_fontengine, g_settings, guienv, guiroot, m_guitext, m_guitext2, m_guitext_chat, m_guitext_info, m_guitext_profiler, m_guitext_status, rangelim(), and utf8_to_wide().
◆ initFlags()
| void GameUI::initFlags |
( |
| ) |
|
◆ isChatVisible()
| bool GameUI::isChatVisible |
( |
| ) |
|
|
inline |
◆ setChatText()
| void GameUI::setChatText |
( |
const EnrichedString & | chat_text, |
|
|
u32 | recent_chat_count ) |
◆ setInfoText()
| void GameUI::setInfoText |
( |
const std::wstring & | str | ) |
|
|
inline |
◆ showStatusText()
| void GameUI::showStatusText |
( |
const std::wstring & | str | ) |
|
|
inline |
◆ showTranslatedStatusText()
| void GameUI::showTranslatedStatusText |
( |
const char * | str | ) |
|
◆ toggleChat()
| void GameUI::toggleChat |
( |
Client * | client | ) |
|
◆ toggleHud()
| void GameUI::toggleHud |
( |
| ) |
|
◆ toggleProfiler()
| void GameUI::toggleProfiler |
( |
| ) |
|
◆ update()
References Jitter::avg, BS, CameraOrientation::camera_pitch, CameraOrientation::camera_yaw, clearStatusText(), CONTENT_IGNORE, RunStats::drawtime, RunStats::dtime_jitter, g_menumgr, g_touchcontrols, g_version_hash, NodeDefManager::get(), MapNode::getContent(), Map::getNode(), MapNode::getParam2(), LocalPlayer::getPosition(), RenderingEngine::getWindowSize(), HUD_FLAG_CHAT_VISIBLE, Player::hud_flags, isChatVisible(), itos(), m_drawtime_avg, m_flags, m_guitext, m_guitext2, m_guitext_chat, m_guitext_info, m_guitext_status, m_infotext, m_statustext, m_statustext_initial_color, m_statustext_time, Jitter::max_fraction, ContentFeatures::name, PointedThing::node_undersurface, POINTEDTHING_NODE, MapDrawControl::range_all, setStaticText(), PointedThing::type, utf8_to_wide(), MapDrawControl::wanted_range, wrapDegrees_0_360(), wrapDegrees_180(), and yawToDirectionString().
◆ updateChatSize()
| void GameUI::updateChatSize |
( |
| ) |
|
◆ updateProfiler()
| void GameUI::updateProfiler |
( |
| ) |
|
References g_profiler, RenderingEngine::getWindowSize(), m_flags, m_guitext, m_guitext2, m_guitext_profiler, m_profiler_current_page, m_profiler_max_page, EnrichedString::setBackground(), setStaticText(), updateProfiler(), and utf8_to_wide().
Referenced by toggleProfiler(), and updateProfiler().
◆ Game
◆ TestGameUI
◆ m_current_chat_size
| core::rect<s32> GameUI::m_current_chat_size {0, 0, 0, 0} |
|
private |
◆ m_drawtime_avg
| float GameUI::m_drawtime_avg = 0 |
|
private |
◆ m_flags
◆ m_guitext
| gui::IGUIStaticText* GameUI::m_guitext = nullptr |
|
private |
◆ m_guitext2
| gui::IGUIStaticText* GameUI::m_guitext2 = nullptr |
|
private |
◆ m_guitext_chat
| gui::IGUIStaticText* GameUI::m_guitext_chat = nullptr |
|
private |
◆ m_guitext_info
| gui::IGUIStaticText* GameUI::m_guitext_info = nullptr |
|
private |
◆ m_guitext_profiler
| gui::IGUIStaticText* GameUI::m_guitext_profiler = nullptr |
|
private |
◆ m_guitext_status
| gui::IGUIStaticText* GameUI::m_guitext_status = nullptr |
|
private |
◆ m_infotext
| std::wstring GameUI::m_infotext |
|
private |
◆ m_profiler_current_page
| u8 GameUI::m_profiler_current_page = 0 |
|
private |
◆ m_profiler_max_page
| u8 GameUI::m_profiler_max_page = 1 |
|
private |
◆ m_recent_chat_count
| u32 GameUI::m_recent_chat_count = 0 |
|
private |
◆ m_statustext
| std::wstring GameUI::m_statustext |
|
private |
◆ m_statustext_initial_color
| video::SColor GameUI::m_statustext_initial_color |
|
private |
◆ m_statustext_time
| float GameUI::m_statustext_time = 0.0f |
|
private |
The documentation for this class was generated from the following files: