summaryrefslogtreecommitdiff
path: root/src/client/gameui.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-01-04 23:32:32 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-05 20:59:30 +0100
commit02f82eca0b20a4e998e1541413e64766db5d12b0 (patch)
treed08793f430fefa69faa5ec6b665d11386d5d7980 /src/client/gameui.h
parent326b0faa5e0bee62ee3100f345c021cee020f2dd (diff)
downloadminetest-02f82eca0b20a4e998e1541413e64766db5d12b0.tar.gz
minetest-02f82eca0b20a4e998e1541413e64766db5d12b0.tar.bz2
minetest-02f82eca0b20a4e998e1541413e64766db5d12b0.zip
GameUI refactor (part 6/X): Move Game::guitext_profiler & showStatusTextSimple to GameUI class
Other enhancements: * Move showStatusTextSimple to GameUI class & rename to showTranslatedStatusText
Diffstat (limited to 'src/client/gameui.h')
-rw-r--r--src/client/gameui.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/gameui.h b/src/client/gameui.h
index d1838f628..b090f5cb0 100644
--- a/src/client/gameui.h
+++ b/src/client/gameui.h
@@ -71,15 +71,18 @@ public:
m_statustext = str;
m_statustext_time = 0.0f;
}
+ void showTranslatedStatusText(const char *str);
inline void clearStatusText() { m_statustext.clear(); }
void setChatText(const EnrichedString &chat_text, u32 recent_chat_count,
u32 profiler_current_page);
+ void updateProfiler(u32 profiler_current_page, u32 profiler_max_page);
+
private:
Flags m_flags;
- gui::IGUIStaticText *m_guitext = nullptr; // First line of debug text
+ gui::IGUIStaticText *m_guitext = nullptr; // First line of debug text
gui::IGUIStaticText *m_guitext2 = nullptr; // Second line of debug text
gui::IGUIStaticText *m_guitext_info = nullptr; // At the middle of the screen
@@ -90,7 +93,5 @@ private:
float m_statustext_time = 0.0f;
gui::IGUIStaticText *m_guitext_chat; // Chat text
-
- // @TODO future move
- // gui::IGUIStaticText *m_guitext_profiler; // Profiler text
+ gui::IGUIStaticText *m_guitext_profiler; // Profiler text
};