feat(Vehicle): Added rainbow options (#141)

This commit is contained in:
Maddy
2022-05-02 15:32:23 -04:00
committed by GitHub
parent d1749da34a
commit c56d9194f3
8 changed files with 184 additions and 3 deletions

View File

@ -23,7 +23,7 @@ namespace big
Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
vehicle::repair(veh);
});
});
if (components::button("Handling")) {
ImGui::OpenPopup("Handling Popup");
@ -52,7 +52,17 @@ namespace big
ImGui::EndPopup();
}
ImGui::EndGroup();
ImGui::TreePop();
}
if (ImGui::TreeNode("Paint"))
{
ImGui::ListBox("RGB Type", &g->vehicle.rainbow_paint, vehicle::rgb_types, 3);
if (g->vehicle.rainbow_paint != 0)
{
ImGui::SliderInt("RGB Speed", &g->rgb.speed, 1, 10);
}
ImGui::TreePop();
}