2020-12-02 16:19:16 -05:00
|
|
|
#pragma once
|
2021-08-19 16:19:20 -04:00
|
|
|
#include "pch.h"
|
2021-09-21 04:00:26 -04:00
|
|
|
|
2020-12-02 16:19:16 -05:00
|
|
|
class Visual
|
|
|
|
{
|
|
|
|
private:
|
2021-10-25 10:03:27 -04:00
|
|
|
static inline bool m_bLockWeather;
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-08-27 23:12:20 -04:00
|
|
|
#ifdef GTASA
|
2021-10-25 10:03:27 -04:00
|
|
|
static inline bool m_bInvisibleWater;
|
|
|
|
static inline bool m_bNoWater;
|
|
|
|
static inline bool m_bDisableHydrant;
|
2021-08-27 23:12:20 -04:00
|
|
|
#endif
|
2021-09-21 04:00:26 -04:00
|
|
|
|
2021-10-25 10:03:27 -04:00
|
|
|
// Timecyc stuff
|
|
|
|
static inline int m_nTimecycHour = 8;
|
|
|
|
static inline std::vector<std::string> m_WeatherNames
|
|
|
|
{
|
2021-10-26 03:51:19 -04:00
|
|
|
#ifdef GTASA
|
2021-10-25 10:03:27 -04:00
|
|
|
"EXTRASUNNY LA", "SUNNY LA", "EXTRASUNNY SMOG LA", "SUNNY SMOG LA", "CLOUDY LA", "SUNNY SF", "EXTRASUNNY SF",
|
|
|
|
"CLOUDY SF", "RAINY SF", "FOGGY SF",
|
|
|
|
"SUNNY VEGAS", "EXTRASUNNY VEGAS", "CLOUDY VEGAS", "EXTRASUNNY COUNTRYSIDE", "SUNNY COUNTRYSIDE",
|
|
|
|
"CLOUDY COUNTRYSIDE", "RAINY COUNTRYSIDE",
|
|
|
|
"EXTRASUNNY DESERT", "SUNNY DESERT", "SANDSTORM DESERT", "UNDERWATER", "EXTRACOLOURS 1", "EXTRACOLOURS 2"
|
2021-10-26 03:51:19 -04:00
|
|
|
#else
|
|
|
|
"SUNNY", "CLOUDY", "RAINY", "FOGGY"
|
|
|
|
#ifdef GTAVC
|
|
|
|
,"EXTRA_SUNNY", "HURRICANE", "EXTRACOLORS"
|
|
|
|
#endif
|
|
|
|
#endif
|
2021-10-25 10:03:27 -04:00
|
|
|
};
|
2020-12-02 16:19:16 -05:00
|
|
|
|
2021-10-25 10:03:27 -04:00
|
|
|
static void GenerateTimecycFile();
|
|
|
|
static int CalcArrayIndex();
|
2021-10-26 03:10:53 -04:00
|
|
|
template<typename T>
|
|
|
|
static bool TimeCycColorEdit3(const char* label, T* r, T* g, T* b, ImGuiColorEditFlags flags = 0);
|
|
|
|
template <typename T>
|
|
|
|
static bool TimeCycColorEdit4(const char* label, T* r, T* g, T* b, T* a, ImGuiColorEditFlags flags = 0);
|
2021-10-25 10:03:27 -04:00
|
|
|
template <typename T>
|
|
|
|
static void TimecycSlider(const char* label, T* data, int min, int max);
|
2020-12-02 16:19:16 -05:00
|
|
|
public:
|
2021-10-25 10:03:27 -04:00
|
|
|
Visual();
|
|
|
|
static void Draw();
|
2021-10-26 03:10:53 -04:00
|
|
|
};
|