CheatMenuSA/src/menu.h

53 lines
1.1 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
2022-01-04 17:33:07 -05:00
enum class DisplayPos
2021-10-25 10:03:27 -04:00
{
CUSTOM,
TOP_LEFT,
TOP_RIGHT,
BOTTOM_LEFT,
BOTTOM_RIGHT
};
struct m_Overlay
{
2021-12-24 05:36:07 -05:00
static inline bool bCoord;
static inline bool bFPS;
static inline int mFPS;
static inline bool bLocName;
static inline bool bTransparent;
static inline bool bVehHealth;
static inline bool bVehSpeed;
static inline bool bCpuUsage;
static inline float fCpuUsage;
static inline bool bMemUsage;
static inline float fMemUsage;
static inline std::vector<std::string> posNames =
{
2021-10-25 10:03:27 -04:00
"Custom", "Top left", "Top right", "Bottom left", "Bottom right"
};
2022-01-04 17:33:07 -05:00
static inline DisplayPos mSelectedPos = DisplayPos::BOTTOM_RIGHT;
2021-12-24 05:36:07 -05:00
static inline float fPosX;
static inline float fPosY;
2021-10-25 10:03:27 -04:00
static inline int mTotalRam = 0;
static inline float textColor[4] = {1.0f, 1.0f, 1.0f, 1.0f};
2021-10-25 10:03:27 -04:00
};
2021-06-18 12:49:11 -04:00
2020-12-02 16:19:16 -05:00
public:
2021-10-25 10:03:27 -04:00
struct m_Commands
{
2021-12-24 05:36:07 -05:00
static inline bool m_bShowMenu;
2021-10-25 10:03:27 -04:00
static inline char m_nInputBuffer[INPUT_BUFFER_SIZE] = "";
};
2020-12-02 16:19:16 -05:00
2021-10-25 10:03:27 -04:00
Menu();
static void Draw();
static void DrawOverlay();
static void DrawShortcutsWindow();
static void ProcessCommands();
2020-12-02 16:19:16 -05:00
};