Custom Sky Color and unify some stuff (#1779)

This commit is contained in:
Bugisoft
2023-07-20 22:46:32 +02:00
committed by GitHub
parent 248fd36542
commit 3e5cad97e9
169 changed files with 612 additions and 649 deletions

View File

@ -58,6 +58,11 @@ namespace big
});
}
ImGui::SeparatorText("Rainbow");
ImGui::Checkbox("Spasm", &g.settings.rainbow.spasm);
ImGui::Checkbox("Fade", &g.settings.rainbow.fade);
ImGui::SliderInt("Speed", &g.settings.rainbow.speed, 0, 10); // TODO: THIS SPEED DOESNT MAKE SENSE
ImGui::SeparatorText("SETTINGS_MISC"_T.data());
ImGui::Checkbox("SETTINGS_MISC_DEV_DLC"_T.data(), &g.settings.dev_dlc);
@ -66,5 +71,7 @@ namespace big
g.write_default_config();
g.load();
}
}
}

View File

@ -71,6 +71,7 @@ namespace big
static void world();
static void gta_cache();
static void lua_scripts();
static void vfx();
static void player_info();
static void player_teleport();

View File

@ -56,7 +56,7 @@ namespace big
cm_col,
5.f);
for (std::uint32_t i = 0; i < cm->options.size(); i++)
for (uint32_t i = 0; i < cm->options.size(); i++)
{
const auto co = cm->options.at(i);
draw_list->AddText({cm_start_x + 7.f, cm_start_y + (20.f * static_cast<float>(i)) + 5.f},

View File

@ -0,0 +1,21 @@
#include "views/view.hpp"
#include <imgui_internal.h>
namespace big
{
void view::vfx()
{
ImGui::Checkbox("Enable Custom Sky Color", &g.vfx.enable_custom_sky_color);
ImGui::ColorEdit4("VFX_AZIMUTH_EAST"_T.data(), (float*)&g.vfx.azimuth_east);
ImGui::ColorEdit4("VFX_AZIMUTH_WEST"_T.data(), (float*)&g.vfx.azimuth_west);
ImGui::ColorEdit4("VFX_AZIMUTH_TRANSITION"_T.data(), (float*)&g.vfx.azimuth_transition);
ImGui::ColorEdit4("VFX_ZENITH"_T.data(), (float*)&g.vfx.zenith);
ImGui::Separator();
ImGui::SliderFloat("VFX_STARS_INTENSITY"_T.data(), &g.vfx.stars_intensity, 0, 20);
}
}