2020-12-02 16:19:16 -05:00
|
|
|
/*
|
2021-08-06 11:53:18 -04:00
|
|
|
Author: Grinch_
|
2021-09-08 23:41:47 -04:00
|
|
|
Copyright Grinch_ 2019-2022. All rights reserved.
|
2020-12-02 16:19:16 -05:00
|
|
|
Required:
|
2021-01-07 16:07:45 -05:00
|
|
|
DirectX 9 SDK
|
2020-12-02 16:19:16 -05:00
|
|
|
Plugin SDK
|
2021-07-26 08:58:34 -04:00
|
|
|
Build Tools 2019 (v142)
|
2021-01-07 16:07:45 -05:00
|
|
|
Windows SDK
|
2020-12-02 16:19:16 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2021-10-21 18:23:02 -04:00
|
|
|
#ifndef GTA3
|
2021-09-21 04:00:26 -04:00
|
|
|
#include "visual.h"
|
2021-10-21 18:23:02 -04:00
|
|
|
#endif
|
2021-10-24 17:05:03 -04:00
|
|
|
#include "animation.h"
|
|
|
|
#include "game.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"
|
2021-10-21 18:23:02 -04:00
|
|
|
#include "menu.h"
|
|
|
|
#include "hook.h"
|
2021-10-24 04:15:06 -04:00
|
|
|
#include "weapon.h"
|
2021-10-23 09:59:48 -04:00
|
|
|
#include "vehicle.h"
|
2021-08-01 21:41:48 -04:00
|
|
|
|
2021-10-21 18:23:02 -04:00
|
|
|
#ifndef GTA3
|
2021-08-19 16:19:20 -04:00
|
|
|
class CheatMenu : Hook, Animation, Game, Menu, Ped, Player, Teleport, Vehicle, Visual, Weapon
|
2021-10-21 18:23:02 -04:00
|
|
|
#else
|
2021-10-24 17:05:03 -04:00
|
|
|
class CheatMenu : Hook, Animation, Game, Menu, Ped, Player, Teleport, Vehicle, Weapon
|
2021-10-21 18:23:02 -04:00
|
|
|
#endif
|
2020-12-02 16:19:16 -05:00
|
|
|
{
|
|
|
|
private:
|
2021-09-20 08:41:40 -04:00
|
|
|
static inline bool m_bShowMenu = false;
|
|
|
|
static inline ImVec2 m_fMenuSize = ImVec2(screen::GetScreenWidth() / 4, screen::GetScreenHeight() / 1.2);
|
2021-10-21 18:23:02 -04:00
|
|
|
|
|
|
|
#ifdef GTA3
|
|
|
|
static inline CallbackTable header
|
|
|
|
{
|
2021-10-23 04:15:16 -04:00
|
|
|
{"Teleport", &Teleport::Draw}, {"Player", &Player::Draw}, {"Ped", &Ped::Draw},
|
2021-10-24 04:15:06 -04:00
|
|
|
{"Dummy", nullptr}, {"Vehicle", &Vehicle::Draw}, {"Weapon", &Weapon::Draw},
|
2021-10-24 17:05:03 -04:00
|
|
|
{"Game", &Game::Draw}, {"Menu", &Menu::Draw},
|
2021-10-21 18:23:02 -04:00
|
|
|
};
|
|
|
|
#else
|
2021-09-20 08:41:40 -04:00
|
|
|
static inline CallbackTable header
|
2021-08-06 11:53:18 -04:00
|
|
|
{
|
|
|
|
{"Teleport", &Teleport::Draw}, {"Player", &Player::Draw}, {"Ped", &Ped::Draw},
|
2021-10-22 18:03:27 -04:00
|
|
|
#ifdef GTASA
|
2021-08-19 16:19:20 -04:00
|
|
|
{"Animation", &Animation::Draw},
|
2021-10-22 18:03:27 -04:00
|
|
|
#else
|
2021-08-19 16:19:20 -04:00
|
|
|
{"Dummy", nullptr},
|
2021-10-22 18:03:27 -04:00
|
|
|
#endif
|
2021-08-19 16:19:20 -04:00
|
|
|
{"Vehicle", &Vehicle::Draw}, {"Weapon", &Weapon::Draw},
|
|
|
|
{"Game", &Game::Draw}, {"Visual", &Visual::Draw}, {"Menu", &Menu::Draw}
|
|
|
|
};
|
2021-10-21 18:23:02 -04:00
|
|
|
#endif
|
2021-02-25 17:45:41 -05:00
|
|
|
|
2021-02-24 16:54:45 -05:00
|
|
|
static void ApplyStyle();
|
2021-02-25 17:45:41 -05:00
|
|
|
static void DrawWindow();
|
2020-12-02 16:19:16 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
CheatMenu();
|
|
|
|
};
|