CheatMenuSA/src/menu.h

59 lines
1.4 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
2022-01-20 02:04:45 -05:00
#include "pch.h"
2020-12-02 16:19:16 -05:00
class Menu
{
private:
2021-06-18 12:49:11 -04:00
2022-01-07 03:18:00 -05:00
enum DisplayPos
{
CUSTOM,
TOP_LEFT,
TOP_RIGHT,
BOTTOM_LEFT,
BOTTOM_RIGHT
};
2021-10-25 10:03:27 -04:00
2022-06-26 08:08:55 -04:00
struct Overlay
2022-01-07 03:18:00 -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 =
{
"Custom", "Top left", "Top right", "Bottom left", "Bottom right"
};
static inline DisplayPos mSelectedPos = DisplayPos::BOTTOM_RIGHT;
static inline float fPosX;
static inline float fPosY;
static inline int mTotalRam = 0;
static inline float textColor[4] = {1.0f, 1.0f, 1.0f, 1.0f};
2022-02-11 16:35:08 -05:00
};
2021-06-18 12:49:11 -04:00
2020-12-02 16:19:16 -05:00
public:
2022-06-26 08:08:55 -04:00
struct Commands
2022-01-07 03:18:00 -05:00
{
static inline bool m_bShowMenu;
static inline char m_nInputBuffer[INPUT_BUFFER_SIZE] = "";
};
2022-03-09 17:23:08 -05:00
static inline bool m_bDiscordRPC;
2022-06-18 04:01:31 -04:00
static inline bool m_bTextOnlyMode;
Menu() = delete;
Menu(const Menu&) = delete;
static void Init();
2022-01-20 02:04:45 -05:00
static void ShowPage();
2022-01-07 03:18:00 -05:00
static void DrawOverlay();
2022-06-28 16:23:03 -04:00
static void DrawCommandWindow();
2022-01-07 03:18:00 -05:00
static void ProcessCommands();
2020-12-02 16:19:16 -05:00
};