CheatMenuSA/src/cheatmenu.h

51 lines
1.2 KiB
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
/*
2021-10-24 18:08:00 -04:00
Author: Grinch_
Copyright Grinch_ 2019-2022. All rights reserved.
Required:
DirectX 9 SDK
Plugin SDK
2022-01-04 17:33:07 -05:00
Build Tools 2022 (v143)
2021-10-24 18:08:00 -04:00
Windows SDK
2020-12-02 16:19:16 -05:00
*/
#pragma once
#include "pch.h"
2021-08-01 21:41:48 -04:00
class CheatMenu
2020-12-02 16:19:16 -05:00
{
private:
2022-01-20 02:04:45 -05:00
enum class eMenuPages
{
ANIMATION, ANNIVERSARY, GAME, MENU, NONE, PED, PLAYER, TELEPORT, UPDATE, VEHICLE, VISUAL, WEAPON, WELCOME
};
struct HeaderData
{
std::string name;
void *pFunc;
eMenuPages page;
bool skipHeader = false;
};
static inline eMenuPages m_nMenuPage = eMenuPages::WELCOME;
2021-10-24 18:08:00 -04:00
static inline bool m_bShowMenu = false;
static inline ImVec2 m_fMenuSize = ImVec2(screen::GetScreenWidth() / 4, screen::GetScreenHeight() / 1.2);
2021-12-16 15:17:49 -05:00
static inline bool m_bSizeChangedExternal = false;
static inline std::vector<HeaderData> m_headerList;
2021-10-21 18:23:02 -04:00
2021-10-24 18:08:00 -04:00
static void ApplyStyle();
static void DrawWindow();
2022-01-20 02:04:45 -05:00
static void ShowAnniversaryPage();
static void ShowUpdatePage();
static void ShowWelcomePage();
static void ProcessPages();
2022-01-20 02:04:45 -05:00
2020-12-02 16:19:16 -05:00
public:
CheatMenu() = delete;
CheatMenu(const CheatMenu&) = delete;
2021-12-16 15:17:49 -05:00
static void Init();
2022-03-09 17:23:08 -05:00
static bool IsMenuShown();
2021-12-16 15:17:49 -05:00
static void ResetMenuSize();
2022-02-22 02:44:33 -05:00
static void GenHeaderList();
2020-12-02 16:19:16 -05:00
};