CheatMenuSA/CheatMenu/Neon.h

40 lines
782 B
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
#include "extender\VehicleExtender.h"
2020-12-02 16:19:16 -05:00
class Neon
2020-12-02 16:19:16 -05:00
{
private:
class NeonData {
2021-02-24 16:54:45 -05:00
public:
CRGBA color;
2021-02-24 16:54:45 -05:00
bool neon_installed;
float val;
uint timer;
bool increment;
2021-02-24 16:54:45 -05:00
bool pulsing;
2021-02-24 16:54:45 -05:00
NeonData(CVehicle* pVeh)
{
neon_installed = false;
val = 0.0;
timer = 0;
increment = true;
}
2021-02-24 16:54:45 -05:00
};
2021-03-02 14:18:37 -05:00
inline static bool mask_loaded = false;
2021-03-02 14:18:37 -05:00
inline static RwTexture* neon_texture = nullptr;
inline static VehExtender<NeonData> VehNeon;
2020-12-02 16:19:16 -05:00
public:
Neon();
~Neon();
2021-02-24 16:54:45 -05:00
static void InstallNeon(CVehicle* veh, int red, int green, int blue);
static bool IsNeonInstalled(CVehicle* veh);
static bool IsPulsingEnabled(CVehicle* veh);
static void SetPulsing(CVehicle* veh, bool state);
static void RemoveNeon(CVehicle* veh);
2021-02-25 17:45:41 -05:00
static void RenderEvent(CVehicle* veh);
2020-12-02 16:19:16 -05:00
};