CheatMenuSA/src/cheatmenu.h

45 lines
1.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
Build Tools 2019 (v142)
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 "hook.h"
#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
2021-08-19 16:19:20 -04:00
class CheatMenu : Hook, Animation, Game, Menu, Ped, Player, Teleport, Vehicle, Visual, Weapon
2020-12-02 16:19:16 -05:00
{
private:
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-12-24 05:36:07 -05:00
static inline CallbackTable header
{
{"Teleport", &Teleport::Draw}, {"Player", &Player::Draw}, {"Ped", &Ped::Draw},
{"Animation", &Animation::Draw}, {"Vehicle", &Vehicle::Draw}, {"Weapon", &Weapon::Draw},
{"Game", &Game::Draw}, {"Visual", &Visual::Draw}, {"Menu", &Menu::Draw}
2021-10-25 10:03:27 -04:00
};
2021-02-25 17:45:41 -05:00
2021-10-24 18:08:00 -04:00
static void ApplyStyle();
static void DrawWindow();
2020-12-02 16:19:16 -05:00
public:
2021-10-24 18:08:00 -04:00
CheatMenu();
2021-12-16 15:17:49 -05:00
static void ResetMenuSize();
2020-12-02 16:19:16 -05:00
};