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-01-07 03:18:00 -05:00
|
|
|
struct m_Overlay
|
|
|
|
{
|
|
|
|
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-01-07 03:18:00 -05:00
|
|
|
struct m_Commands
|
|
|
|
{
|
|
|
|
static inline bool m_bShowMenu;
|
|
|
|
static inline char m_nInputBuffer[INPUT_BUFFER_SIZE] = "";
|
|
|
|
};
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2022-01-07 03:18:00 -05:00
|
|
|
Menu();
|
2022-01-20 02:04:45 -05:00
|
|
|
static void ShowPage();
|
2022-01-07 03:18:00 -05:00
|
|
|
static void DrawOverlay();
|
|
|
|
static void DrawShortcutsWindow();
|
|
|
|
static void ProcessCommands();
|
2020-12-02 16:19:16 -05:00
|
|
|
};
|