CheatMenuSA/src/cheatmenu.h

71 lines
2.1 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
2021-10-24 17:05:03 -04:00
#include "animation.h"
#include "game.h"
2021-10-24 18:08:00 -04:00
#include "menu.h"
2021-10-23 04:15:16 -04:00
#include "ped.h"
2021-10-22 18:03:27 -04:00
#include "player.h"
2021-10-21 19:07:30 -04:00
#include "teleport.h"
#include "vehicle.h"
2021-10-25 10:03:27 -04:00
#include "visual.h"
2021-10-24 18:08:00 -04:00
#include "weapon.h"
2021-08-01 21:41:48 -04:00
class CheatMenu : Animation, Game, Menu, Ped, Player, Teleport, Vehicle, Visual, Weapon
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;
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
static inline std::vector<HeaderData> m_headerList
{
{"Teleport", &Teleport::ShowPage, eMenuPages::TELEPORT},
{"Player", &Player::ShowPage, eMenuPages::PLAYER},
{"Ped", &Ped::ShowPage, eMenuPages::PED},
{"Animation", &Animation::ShowPage, eMenuPages::ANIMATION},
{"Vehicle", &Vehicle::ShowPage, eMenuPages::VEHICLE},
{"Weapon", &Weapon::ShowPage, eMenuPages::WEAPON},
{"Game", &Game::ShowPage, eMenuPages::GAME},
{"Visual", &Visual::ShowPage, eMenuPages::VISUAL},
{"Menu", &Menu::ShowPage, eMenuPages::MENU},
{"Welcome", &ShowWelcomePage, eMenuPages::WELCOME, true},
{"Update", &ShowUpdatePage, eMenuPages::UPDATE, true},
{"Anniversary", &ShowAnniversaryPage, eMenuPages::ANNIVERSARY, true}
};
2020-12-02 16:19:16 -05:00
public:
2021-10-24 18:08:00 -04:00
CheatMenu();
~CheatMenu();
2021-12-16 15:17:49 -05:00
static void ResetMenuSize();
2020-12-02 16:19:16 -05:00
};