#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 irr::gui::StaticText::add(), FM_Mono, FM_Unspecified, g_fontengine, g_settings, FontEngine::getDefaultFontSize(), FontEngine::getFont(), FontEngine::getTextHeight(), Settings::getU16(), guienv, guiroot, m_guitext, m_guitext2, m_guitext_chat, m_guitext_info, m_guitext_profiler, m_guitext_status, rangelim, and utf8_to_wide().
Referenced by Game::initGui().
 
 
◆ 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 | ) | 
           | 
        
      
 
References showStatusText(), and wstrgettext().
Referenced by Game::checkZoomEnabled(), Game::processKeyInput(), Game::toggleAutoforward(), Game::toggleBlockBounds(), toggleChat(), Game::toggleCinematic(), Game::toggleDebug(), Game::toggleFast(), Game::toggleFog(), Game::toggleFreeMove(), Game::toggleFullViewRange(), toggleHud(), Game::toggleMinimap(), Game::toggleNoClip(), Game::togglePitchMove(), toggleProfiler(), and Game::toggleUpdateCamera().
 
 
◆ 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(), TouchControls::getStatusText(), RenderingEngine::getWindowSize(), HUD_FLAG_CHAT_VISIBLE, Player::hud_flags, isChatVisible(), TouchControls::isStatusTextOverriden(), 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, MainMenuManager::menuCount(), ContentFeatures::name, PointedThing::node_undersurface, POINTEDTHING_NODE, MapDrawControl::range_all, setStaticText(), GameUI::Flags::show_basic_debug, GameUI::Flags::show_hud, GameUI::Flags::show_minimal_debug, PointedThing::type, utf8_to_wide(), MapDrawControl::wanted_range, wrapDegrees_0_360(), wrapDegrees_180(), and yawToDirectionString().
Referenced by Game::updateFrame().
 
 
◆ updateChatSize()
      
        
          | void GameUI::updateChatSize  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ updateProfiler()
      
        
          | void GameUI::updateProfiler  | 
          ( | 
           | ) | 
           | 
        
      
 
References EnrichedString::c_str(), g_profiler, Profiler::getElapsedMs(), m_guitext, m_guitext_profiler, m_profiler_current_page, m_profiler_max_page, Profiler::print(), EnrichedString::setBackground(), setStaticText(), and utf8_to_wide().
Referenced by toggleProfiler(), and Game::updateProfilers().
 
 
◆ 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
Referenced by Game::drawScene(), getFlags(), initFlags(), isChatVisible(), Game::processPlayerInteraction(), Game::run(), Game::startup(), toggleChat(), Game::toggleDebug(), toggleHud(), Game::toggleMinimap(), update(), updateChatSize(), Game::updateDebugState(), and Game::updateFrame().
 
 
◆ 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
  
  
      
        
          | const u8 GameUI::m_profiler_max_page = 3 | 
         
       
   | 
  
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: