47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
/*
|
|
Author: Grinch_
|
|
Copyright Grinch_ 2019-2022. All rights reserved.
|
|
Required:
|
|
DirectX 9 SDK
|
|
Plugin SDK
|
|
Build Tools 2022 (v143)
|
|
Windows SDK
|
|
*/
|
|
|
|
#pragma once
|
|
#include "animation.h"
|
|
#include "game.h"
|
|
#include "hook.h"
|
|
#include "menu.h"
|
|
#include "ped.h"
|
|
#include "player.h"
|
|
#include "teleport.h"
|
|
#include "vehicle.h"
|
|
#include "visual.h"
|
|
#include "weapon.h"
|
|
|
|
class CheatMenu : Hook, Animation, Game, Menu, Ped, Player, Teleport, Vehicle, Visual, Weapon
|
|
{
|
|
private:
|
|
static inline bool m_bShowMenu = false;
|
|
static inline ImVec2 m_fMenuSize = ImVec2(screen::GetScreenWidth() / 4, screen::GetScreenHeight() / 1.2);
|
|
static inline bool m_bSizeChangedExternal = false;
|
|
|
|
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}
|
|
};
|
|
|
|
static void ApplyStyle();
|
|
static void DrawWindow();
|
|
static void ShowUpdateScreen();
|
|
static void ShowWelcomeScreen();
|
|
|
|
public:
|
|
CheatMenu();
|
|
|
|
static void ResetMenuSize();
|
|
};
|