CheatMenuSA/CheatMenu/Menu.h

57 lines
1.6 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
class Menu
{
private:
struct overlay
{
inline static bool bCoord = false;
inline static bool bFPS = false;
inline static int mFPS = 0;
inline static bool bLocName = false;
inline static bool bTransparent = false;
inline static bool bVehHealth = false;
inline static bool bVehSpeed = false;
inline static bool bCpuUsage = false;
inline static float fCpuUsage = 0.0f;
inline static bool bMemUsage = false;
inline static float fMemUsage = 0.0f;
inline static std::vector<std::string> posNames = { "Custom", "Top left", "Top right", "Bottom left", "Bottom right" };
inline static int mSelectedPos = 4; // TODO: Create Enum
inline static float fPosX = 0.0f;
inline static float fPosY = 0.0f;
inline static size_t mInterval = 1000;
inline static size_t mLastInterval = 0;
inline static int mTotalRam = 0;
2020-12-02 16:19:16 -05:00
};
public:
struct hotkeys
2020-12-02 16:19:16 -05:00
{
2021-03-02 14:18:37 -05:00
inline static HotKeyData aim_skin_changer;
inline static HotKeyData freecam;
inline static HotKeyData command_window;
inline static HotKeyData fix_veh;
inline static HotKeyData flip_veh;
inline static HotKeyData free_cam_tp_player{VK_RETURN,VK_RETURN};
inline static HotKeyData god_mode;
inline static HotKeyData menu_open;
inline static HotKeyData quick_ss;
inline static HotKeyData quick_tp;
inline static HotKeyData veh_engine;
inline static HotKeyData veh_instant_start;
inline static HotKeyData veh_instant_stop;
2020-12-02 16:19:16 -05:00
};
struct commands
{
2021-03-02 14:18:37 -05:00
inline static bool show_menu = false;
inline static char input_buffer[INPUT_BUFFER_SIZE] = "";
2020-12-02 16:19:16 -05:00
};
Menu();
2021-02-24 16:54:45 -05:00
static void Draw();
2021-02-25 17:45:41 -05:00
static void DrawOverlay();
2021-02-24 16:54:45 -05:00
static void DrawShortcutsWindow();
2020-12-02 16:19:16 -05:00
static void ProcessCommands();
};