Added proofs to vehicle menu and improved waterproof feature. (#330)

- Added proofs section to vehicle menu that allows player to control damage bits. 
- Player can now drive or walk underwater with waterproof turned on.
- Added bring closest vehicle feature.
- Vehicle will not deform with collision proof on.
- Improved vehicle menu arrangement.
- Added plate changer in LSC.
- Updated LSC layout.
- Expanded wheel type feature.
- Fixed a bug where the mod section shows repetitive wheel mods.

Fixed issue #331
This commit is contained in:
aa15032261
2022-07-12 22:42:07 +08:00
committed by GitHub
parent cf52e9f77d
commit 44745c09d4
23 changed files with 1207 additions and 713 deletions

View File

@ -6,7 +6,8 @@
namespace big
{
void view::spawn() {
void view::spawn()
{
ImGui::SetWindowSize({ 0.f, (float)*g_pointers->m_resolution_y }, ImGuiCond_Always);
ImGui::Checkbox("Preview", &g->spawn.preview_vehicle);
@ -52,12 +53,12 @@ namespace big
display_name.find(lower_search) != std::string::npos ||
display_manufacturer.find(lower_search) != std::string::npos
) {
//ImGui::PushID(item.hash);
ImGui::PushID(item.hash);
components::selectable(item.display_name, false, [item] {
float y_offset = 0;
if (PED::IS_PED_IN_ANY_VEHICLE(self::ped, false))
if (self::veh != 0)
{
y_offset = 10.f;
}
@ -85,7 +86,7 @@ namespace big
g_vehicle_preview_service->stop_preview();
});
//ImGui::PopID();
ImGui::PopID();
if (g->spawn.preview_vehicle && ImGui::IsItemHovered())
{