Merge branch 'guikey_fix' into 'master'

Display gui button in menu

See merge request nullworks/cathook/cathook!1032
This commit is contained in:
TotallyNotElite 2020-07-21 09:45:45 +00:00
commit d53eb67187
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 };