Merge branch 'guikey_fix' into 'master'
Display gui button in menu See merge request nullworks/cathook/cathook!1032
This commit is contained in:
commit
d53eb67187
@ -3,9 +3,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
#include "settings/Registered.hpp"
|
||||||
union SDL_Event;
|
union SDL_Event;
|
||||||
|
|
||||||
|
extern settings::Button open_gui_button;
|
||||||
|
|
||||||
namespace gui
|
namespace gui
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ void DrawCheatVisuals()
|
|||||||
GUIColor()); // github commit and date
|
GUIColor()); // github commit and date
|
||||||
AddSideString(hack::GetType(), GUIColor()); // Compile type
|
AddSideString(hack::GetType(), GUIColor()); // Compile type
|
||||||
#if ENABLE_GUI
|
#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());
|
AddSideString("Use mouse to navigate in menu.", GUIColor());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include <hack.hpp>
|
#include <hack.hpp>
|
||||||
#include <common.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 };
|
static bool init_done{ false };
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user