CheatMenuSA/src/Vehicle.h

89 lines
2.2 KiB
C
Raw Normal View History

#pragma once
#include "Neon.h"
2020-12-02 16:19:16 -05:00
#include "Paint.h"
class Vehicle : Paint, Neon
2020-12-02 16:19:16 -05:00
{
private:
static bool bike_fly;
2020-12-02 16:19:16 -05:00
static bool dont_fall_bike;
static bool veh_heavy;
static bool veh_watertight;
static bool veh_nodmg;
2020-12-02 16:19:16 -05:00
static int door_menu_button;
static std::string door_names[6];
static int veh_remove_radius;
2020-12-02 16:19:16 -05:00
static bool lock_speed;
static float lock_speed_val;
static std::map<int, std::string> vehicle_ide;
static std::vector<std::vector<float>> carcols_color_values;
static std::map<std::string, std::vector<int>> carcols_car_data;
struct color
{
static bool material_filter;
static int radio_btn;
static bool show_all;
static float color_picker[3];
};
struct neon
{
static float color_picker[3];
static bool rainbow;
static uint rainbow_timer;
static bool traffic;
static uint traffic_timer;
};
2021-02-24 16:54:45 -05:00
struct spawner
2020-12-02 16:19:16 -05:00
{
static ImGuiTextFilter filter;
static std::string selected_item;
static std::vector<std::string> search_categories;
static std::vector<std::unique_ptr<TextureStructure>> image_vec;
static bool spawn_inside;
static bool spawn_in_air;
static char license_text[9];
};
struct texture9
{
static ImGuiTextFilter filter;
static std::string selected_item;
static std::vector<std::string> search_categories;
static std::vector<std::unique_ptr<TextureStructure>> image_vec;
};
2021-02-24 16:54:45 -05:00
static bool images_loaded;
2020-12-02 16:19:16 -05:00
struct tune
{
static ImGuiTextFilter filter;
static std::string selected_item;
static std::vector<std::string> search_categories;
static std::vector<std::unique_ptr<TextureStructure>> image_vec;
};
struct unlimited_nitro
{
static bool enabled;
static bool comp_added;
};
public:
2020-12-02 16:19:16 -05:00
static void AddComponent(const std::string& component, const bool display_message = true);
static void RemoveComponent(const std::string& component, const bool display_message = true);
static std::string GetNameFromModel(int model);
static int GetModelFromName(const char* name);
2021-02-24 16:54:45 -05:00
static void SpawnVehicle(std::string& name);
2020-12-02 16:19:16 -05:00
static int GetRandomTrainIdForModel(int model);
static void ParseVehiclesIDE();
static void ParseCarcolsDAT();
static void GenerateHandlingDataFile(int phandling);
Vehicle();
~Vehicle();
2021-02-24 16:54:45 -05:00
static void Draw();
2020-12-02 16:19:16 -05:00
};