diff --git a/include/visual/menu/GuiInterface.hpp b/include/visual/menu/GuiInterface.hpp index 01dfc60b..deeb88e6 100644 --- a/include/visual/menu/GuiInterface.hpp +++ b/include/visual/menu/GuiInterface.hpp @@ -3,9 +3,11 @@ */ #pragma once - +#include "settings/Registered.hpp" union SDL_Event; +extern settings::Button open_gui_button; + namespace gui { diff --git a/src/visual/drawmgr.cpp b/src/visual/drawmgr.cpp index ee620dbb..01f619b6 100644 --- a/src/visual/drawmgr.cpp +++ b/src/visual/drawmgr.cpp @@ -88,7 +88,7 @@ void DrawCheatVisuals() GUIColor()); // github commit and date AddSideString(hack::GetType(), GUIColor()); // Compile type #if ENABLE_GUI - AddSideString("Press 'INSERT' key to open/close cheat menu.", GUIColor()); + AddSideString("Press '" + open_gui_button.toString() + "' key to open/close cheat menu.", GUIColor()); AddSideString("Use mouse to navigate in menu.", GUIColor()); #endif } diff --git a/src/visual/menu/GuiInterface.cpp b/src/visual/menu/GuiInterface.cpp index 35606977..d79a160c 100644 --- a/src/visual/menu/GuiInterface.cpp +++ b/src/visual/menu/GuiInterface.cpp @@ -10,7 +10,7 @@ #include #include -static settings::Button open_gui_button{ "visual.open-gui-button", "Insert" }; +settings::Button open_gui_button{ "visual.open-gui-button", "Insert" }; static bool init_done{ false };