]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/gameui.h
Merge branch 'master' of https://github.com/minetest/minetest
[dragonfireclient.git] / src / client / gameui.h
index cb460b1c38adc116dd800a3477a2841346b5ad14..e22be068b2ced66d30cf27f85878390eef936ae7 100644 (file)
@@ -61,6 +61,7 @@ class GameUI
                bool show_minimal_debug = false;
                bool show_basic_debug = false;
                bool show_profiler_graph = false;
+               bool show_cheat_menu = true;
        };
 
        void init();
@@ -84,15 +85,17 @@ class GameUI
        void showTranslatedStatusText(const char *str);
        inline void clearStatusText() { m_statustext.clear(); }
 
-       const bool isChatVisible()
+       bool isChatVisible()
        {
                return m_flags.show_chat && m_recent_chat_count != 0 && m_profiler_current_page == 0;
        }
        void setChatText(const EnrichedString &chat_text, u32 recent_chat_count);
+       void updateChatSize();
 
        void updateProfiler();
 
        void toggleChat();
+       void toggleCheatMenu();
        void toggleHud();
        void toggleProfiler();
 
@@ -109,9 +112,12 @@ class GameUI
 private:
        Flags m_flags;
 
+       float m_drawtime_avg = 0;
+
        gui::IGUIStaticText *m_guitext = nullptr;  // First line of debug text
        gui::IGUIStaticText *m_guitext2 = nullptr; // Second line of debug text
-
+       gui::IGUIStaticText *m_guitext_coords = nullptr;
+       
        gui::IGUIStaticText *m_guitext_info = nullptr; // At the middle of the screen
        std::wstring m_infotext;
 
@@ -122,6 +128,7 @@ class GameUI
 
        gui::IGUIStaticText *m_guitext_chat = nullptr; // Chat text
        u32 m_recent_chat_count = 0;
+       core::rect<s32> m_current_chat_size{0, 0, 0, 0};
 
        gui::IGUIStaticText *m_guitext_profiler = nullptr; // Profiler text
        u8 m_profiler_current_page = 0;