Fixed an issue where the neon light section changing tire smoke color (#335)
Fixed an issue where the neon light section changing tire smoke color, also added an uncheck all button.
This commit is contained in:
parent
0cd4498f7d
commit
320cdbec34
@ -488,13 +488,25 @@ namespace big
|
|||||||
neon_front = true;
|
neon_front = true;
|
||||||
neon_back = true;
|
neon_back = true;
|
||||||
|
|
||||||
g_fiber_pool->queue_job([] {
|
VEHICLE::TOGGLE_VEHICLE_MOD(player_vehicle, MOD_XENON_LIGHTS, xenon);
|
||||||
VEHICLE::TOGGLE_VEHICLE_MOD(player_vehicle, MOD_XENON_LIGHTS, xenon);
|
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_LEFT, neon_left);
|
||||||
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_LEFT, neon_left);
|
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_RIGHT, neon_right);
|
||||||
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_RIGHT, neon_right);
|
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_FRONT, neon_front);
|
||||||
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_FRONT, neon_front);
|
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_BACK, neon_back);
|
||||||
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_BACK, neon_back);
|
});
|
||||||
});
|
ImGui::SameLine();
|
||||||
|
components::button("Uncheck All##neon_uncheck_all", [] {
|
||||||
|
xenon = false;
|
||||||
|
neon_left = false;
|
||||||
|
neon_right = false;
|
||||||
|
neon_front = false;
|
||||||
|
neon_back = false;
|
||||||
|
|
||||||
|
VEHICLE::TOGGLE_VEHICLE_MOD(player_vehicle, MOD_XENON_LIGHTS, xenon);
|
||||||
|
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_LEFT, neon_left);
|
||||||
|
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_RIGHT, neon_right);
|
||||||
|
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_FRONT, neon_front);
|
||||||
|
VEHICLE::SET_VEHICLE_NEON_LIGHT_ENABLED_(player_vehicle, NEON_BACK, neon_back);
|
||||||
});
|
});
|
||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
@ -703,7 +715,7 @@ namespace big
|
|||||||
if (ImGui::Selectable(name.c_str(), false))
|
if (ImGui::Selectable(name.c_str(), false))
|
||||||
{
|
{
|
||||||
g_fiber_pool->queue_job([&rgb] {
|
g_fiber_pool->queue_job([&rgb] {
|
||||||
VEHICLE::SET_VEHICLE_TYRE_SMOKE_COLOR(player_vehicle, rgb[0], rgb[1], rgb[2]);
|
VEHICLE::SET_VEHICLE_NEON_LIGHTS_COLOUR_(player_vehicle, rgb[0], rgb[1], rgb[2]);
|
||||||
});
|
});
|
||||||
color_rgb[0] = rgb[0];
|
color_rgb[0] = rgb[0];
|
||||||
color_rgb[1] = rgb[1];
|
color_rgb[1] = rgb[1];
|
||||||
|
Reference in New Issue
Block a user