aboutsummaryrefslogtreecommitdiff
path: root/src/client/gameui.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-01-04 19:52:40 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-01-05 20:59:30 +0100
commitaab3b18e4b9f847ba1e521d5a73624b0bb6a467a (patch)
tree913de68fcd9211c2433bc2fa78315b0002b1640f /src/client/gameui.h
parent3a772e7ed6c02f91de57320b1694c7d11e1c7618 (diff)
downloadhax-minetest-server-aab3b18e4b9f847ba1e521d5a73624b0bb6a467a.tar.gz
hax-minetest-server-aab3b18e4b9f847ba1e521d5a73624b0bb6a467a.zip
GameUI refactor (part 3/X): Move Game::guitext2, Game::guitext_info, Game::infotext to GameUI class
Other enhancements: * Drop unused GameRunData::time_of_day * Little GameUI::update code path optimizations
Diffstat (limited to 'src/client/gameui.h')
-rw-r--r--src/client/gameui.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/client/gameui.h b/src/client/gameui.h
index 593fd4ff3..0e1085b01 100644
--- a/src/client/gameui.h
+++ b/src/client/gameui.h
@@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include <IGUIEnvironment.h>
+#include <util/pointedthing.h>
#include "game.h"
using namespace irr;
@@ -49,20 +50,25 @@ public:
};
void init();
- void update(const RunStats &stats, Client *client, const MapDrawControl *draw_control);
+ void update(const RunStats &stats, Client *client, MapDrawControl *draw_control,
+ const CameraOrientation &cam, const PointedThing &pointed_old);
void initFlags();
const Flags &getFlags() const { return m_flags; }
void showMinimap(bool show);
+ void setInfoText(const std::wstring &str) { m_infotext = str; }
+ void clearInfoText() { m_infotext.clear(); }
+
private:
Flags m_flags;
gui::IGUIStaticText *m_guitext; // First line of debug text
+ gui::IGUIStaticText *m_guitext2; // Second line of debug text
+ gui::IGUIStaticText *m_guitext_info; // At the middle of the screen
+ std::wstring m_infotext;
// @TODO future move
- // gui::IGUIStaticText *m_guitext2; // Second line of debug text
- // gui::IGUIStaticText *m_guitext_info; // At the middle of the screen
// gui::IGUIStaticText *m_guitext_status;
// gui::IGUIStaticText *m_guitext_chat; // Chat text
// gui::IGUIStaticText *m_guitext_profiler; // Profiler text