CheatMenuSA/CheatMenu/Menu.h

70 lines
1.8 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
class Menu
{
private:
2021-06-18 12:49:11 -04:00
enum DISPLAY_POS
{
CUSTOM,
TOP_LEFT,
TOP_RIGHT,
BOTTOM_LEFT,
BOTTOM_RIGHT
};
struct m_Overlay
2020-12-02 16:19:16 -05:00
{
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;
2021-06-18 12:49:11 -04:00
inline static std::vector<std::string> posNames = {
"Custom", "Top left", "Top right", "Bottom left", "Bottom right"
};
inline static DISPLAY_POS mSelectedPos = DISPLAY_POS::BOTTOM_RIGHT;
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;
};
2021-06-18 12:49:11 -04:00
2020-12-02 16:19:16 -05:00
public:
struct m_HotKeys
2020-12-02 16:19:16 -05:00
{
2021-06-18 12:49:11 -04:00
inline static HotKeyData aimSkinChanger;
inline static HotKeyData freeCam;
inline static HotKeyData commandWindow;
inline static HotKeyData fixVeh;
inline static HotKeyData flipVeh;
inline static HotKeyData freeCamTeleportPlayer{VK_RETURN,VK_RETURN};
inline static HotKeyData godMode;
inline static HotKeyData menuOpen;
inline static HotKeyData quickSceenShot;
inline static HotKeyData quickTeleport;
inline static HotKeyData vehEngine;
inline static HotKeyData vehInstantStart;
inline static HotKeyData vehInstantStop;
};
2021-06-18 12:49:11 -04:00
struct m_Commands
2020-12-02 16:19:16 -05:00
{
2021-06-18 12:49:11 -04:00
inline static bool m_bShowMenu = false;
inline static char m_nInputBuffer[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();
};