mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Get rid of global guienv variable
(It can already be accessed via the renderingengine.)
This commit is contained in:
parent
45e7a80057
commit
16da954bd7
8 changed files with 29 additions and 37 deletions
|
@ -49,9 +49,6 @@ class GameUI
|
|||
friend class TestGameUI;
|
||||
|
||||
public:
|
||||
GameUI();
|
||||
~GameUI() = default;
|
||||
|
||||
// Flags that can, or may, change during main game loop
|
||||
struct Flags
|
||||
{
|
||||
|
@ -63,7 +60,7 @@ public:
|
|||
bool show_profiler_graph = false;
|
||||
};
|
||||
|
||||
void init();
|
||||
void init(gui::IGUIEnvironment *m_guienv);
|
||||
void update(const RunStats &stats, Client *client, MapDrawControl *draw_control,
|
||||
const CameraOrientation &cam, const PointedThing &pointed_old,
|
||||
const GUIChatConsole *chat_console, float dtime);
|
||||
|
@ -121,7 +118,7 @@ private:
|
|||
gui::IGUIStaticText *m_guitext_status = nullptr;
|
||||
std::wstring m_statustext;
|
||||
float m_statustext_time = 0.0f;
|
||||
video::SColor m_statustext_initial_color;
|
||||
video::SColor m_statustext_initial_color = video::SColor(255, 0, 0, 0);
|
||||
|
||||
gui::IGUIStaticText *m_guitext_chat = nullptr; // Chat text
|
||||
u32 m_recent_chat_count = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue