CheatMenuSA/src/menu.h

53 lines
1.2 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
{
2021-09-20 08:41:40 -04:00
static inline bool bCoord = false;
static inline bool bFPS = false;
static inline int mFPS = 0;
static inline bool bLocName = false;
static inline bool bTransparent = false;
static inline bool bVehHealth = false;
static inline bool bVehSpeed = false;
static inline bool bCpuUsage = false;
static inline float fCpuUsage = 0.0f;
static inline bool bMemUsage = false;
static inline float fMemUsage = 0.0f;
static inline std::vector<std::string> posNames = {
2021-06-18 12:49:11 -04:00
"Custom", "Top left", "Top right", "Bottom left", "Bottom right"
};
2021-09-20 08:41:40 -04:00
static inline DISPLAY_POS mSelectedPos = DISPLAY_POS::BOTTOM_RIGHT;
static inline float fPosX = 0.0f;
static inline float fPosY = 0.0f;
static inline size_t mInterval = 1000;
static inline size_t mLastInterval = 0;
static inline int mTotalRam = 0;
};
2021-06-18 12:49:11 -04:00
2020-12-02 16:19:16 -05:00
public:
struct m_Commands
2020-12-02 16:19:16 -05:00
{
2021-09-20 08:41:40 -04:00
static inline bool m_bShowMenu = false;
static inline 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();
};