Display gui button in menu

This commit is contained in:
BenCat07 2020-06-10 22:54:23 +02:00
parent 656a617e36
commit c40b7f0761
3 changed files with 5 additions and 3 deletions

View File

@ -3,9 +3,11 @@
*/
#pragma once
#include "settings/Registered.hpp"
union SDL_Event;
extern settings::Button open_gui_button;
namespace gui
{

View File

@ -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
}

View File

@ -10,7 +10,7 @@
#include <hack.hpp>
#include <common.hpp>
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 };