mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
feat(Vehicle Controller): Added vehicle window controls (#1607)
* feat(Overlay): Added Invisibility indicator and its able to save on unload * feat(Vehicle Controller): Added vehicle window controls
This commit is contained in:
@ -58,6 +58,9 @@ namespace big
|
||||
|
||||
if (g.window.ingame_overlay_indicators.show_triggerbot)
|
||||
components::overlay_indicator("Triggerbot", g.weapons.triggerbot);
|
||||
|
||||
if (g.window.ingame_overlay_indicators.show_invisibility)
|
||||
components::overlay_indicator("Invisibility", g.self.invisibility);
|
||||
}
|
||||
|
||||
if (g.window.ingame_overlay.show_position && g_local_player)
|
||||
|
@ -69,13 +69,16 @@ namespace big
|
||||
ImGui::Checkbox("Show Vehicle Godmode", &g.window.ingame_overlay_indicators.show_vehicle_godmode);
|
||||
ImGui::Checkbox("Show Never Wanted", &g.window.ingame_overlay_indicators.show_never_wanted);
|
||||
ImGui::EndGroup();
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
ImGui::BeginGroup();
|
||||
ImGui::Checkbox("Show Infinite Ammo", &g.window.ingame_overlay_indicators.show_infinite_ammo);
|
||||
ImGui::Checkbox("Show Always Full Ammo", &g.window.ingame_overlay_indicators.show_always_full_ammo);
|
||||
ImGui::Checkbox("Show Infinite Magazine", &g.window.ingame_overlay_indicators.show_infinite_mag);
|
||||
ImGui::Checkbox("Show Aimbot", &g.window.ingame_overlay_indicators.show_aimbot);
|
||||
ImGui::Checkbox("Show Triggerbot", &g.window.ingame_overlay_indicators.show_triggerbot);
|
||||
ImGui::Checkbox("Show Invisibility", &g.window.ingame_overlay_indicators.show_invisibility);
|
||||
ImGui::EndGroup();
|
||||
|
||||
ImGui::TreePop();
|
||||
|
@ -93,7 +93,7 @@ namespace big
|
||||
}
|
||||
|
||||
ImGui::SameLine(300);
|
||||
|
||||
|
||||
const auto button_label = g_vehicle_control_service.m_controlled_vehicle.doors[i].open ? "CLOSE"_T : "OPEN"_T;
|
||||
if (components::button(button_label))
|
||||
{
|
||||
@ -109,6 +109,48 @@ namespace big
|
||||
ImGui::EndGroup();
|
||||
}
|
||||
|
||||
void render_windows_tab()
|
||||
{
|
||||
const char* const windownames[4]{
|
||||
"Front left",
|
||||
"Front right",
|
||||
"Back left",
|
||||
"Back right",
|
||||
};
|
||||
|
||||
ImGui::BeginGroup();
|
||||
ImGui::Spacing();
|
||||
ImGui::SetNextItemWidth(200);
|
||||
components::button("Roll Down All", [] {
|
||||
g_vehicle_control_service.operate_window(eWindowId::WINDOW_INVALID_ID, true);
|
||||
});
|
||||
ImGui::SameLine();
|
||||
components::button("Roll Up All", [] {
|
||||
g_vehicle_control_service.operate_window(eWindowId::WINDOW_INVALID_ID, false);
|
||||
});
|
||||
ImGui::EndGroup();
|
||||
|
||||
ImGui::Spacing();
|
||||
ImGui::Separator();
|
||||
|
||||
ImGui::BeginGroup();
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
ImGui::SetNextItemWidth(200);
|
||||
ImGui::PushID(i);
|
||||
ImGui::Text(windownames[i]);
|
||||
ImGui::SameLine(300);
|
||||
components::button("Roll Down", [i] {
|
||||
g_vehicle_control_service.operate_window((eWindowId)i, true);
|
||||
});
|
||||
ImGui::SameLine();
|
||||
components::button("Roll Up", [i] {
|
||||
g_vehicle_control_service.operate_window((eWindowId)i, false);
|
||||
});
|
||||
ImGui::PopID();
|
||||
}
|
||||
}
|
||||
|
||||
void render_lights_tab()
|
||||
{
|
||||
const char* const neonnames[4]{
|
||||
@ -321,6 +363,13 @@ namespace big
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
|
||||
if (ImGui::BeginTabItem("Windows"))
|
||||
{
|
||||
render_windows_tab();
|
||||
|
||||
ImGui::EndTabItem();
|
||||
}
|
||||
|
||||
if (ImGui::BeginTabItem("Lights"))
|
||||
{
|
||||
render_lights_tab();
|
||||
|
Reference in New Issue
Block a user