mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
Custom Sky Color and unify some stuff (#1779)
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -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();
|
||||
|
@ -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},
|
||||
|
21
src/views/world/view_vfx.cpp
Normal file
21
src/views/world/view_vfx.cpp
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user