CheatMenuSA/src/neon.h

36 lines
740 B
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
2021-06-18 12:49:11 -04:00
#include "extender/VehicleExtender.h"
2020-12-02 16:19:16 -05:00
class Neon
2020-12-02 16:19:16 -05:00
{
private:
2021-10-25 10:03:27 -04:00
class NeonData
{
public:
CRGBA m_Color;
bool m_bNeonInstalled;
float m_fVal;
bool m_bIncrement;
bool m_bPulsing;
2021-10-25 10:03:27 -04:00
NeonData(CVehicle* pVeh)
{
m_bNeonInstalled = false;
m_fVal = 0.0;
m_bIncrement = true;
}
};
2021-06-18 12:49:11 -04:00
2021-10-25 10:03:27 -04:00
static inline RwTexture* m_pNeonTexture = nullptr; // pointer to the neon mask texture
static inline VehicleExtendedData<NeonData> m_VehNeon;
2020-12-02 16:19:16 -05:00
public:
2021-10-25 10:03:27 -04:00
Neon();
~Neon();
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);
2020-12-02 16:19:16 -05:00
};