(feat) Add passive toggle switch button and hotkey (#2015)

* (fix) Disable looped "time to end passive" in weaponized vehicles
This commit is contained in:
Niuu
2023-08-24 22:56:35 +02:00
committed by GitHub
parent 5c4f16a474
commit cc9cfc2703
5 changed files with 33 additions and 2 deletions

View File

@ -41,6 +41,8 @@ namespace big
if (g.self.invisibility)
components::command_checkbox<"localvis">(); // TODO: does nothing in SP
components::command_checkbox<"passive">();
ImGui::EndGroup();
ImGui::SameLine();
ImGui::BeginGroup();

View File

@ -26,6 +26,8 @@ namespace big
g_hotkey_service->update_hotkey("bringpv", g.settings.hotkeys.bringvehicle);
if (ImGui::Hotkey("Toggle invisibility", &g.settings.hotkeys.invis))
g_hotkey_service->update_hotkey("invis", g.settings.hotkeys.invis);
if (ImGui::Hotkey("Toggle passive mode", &g.settings.hotkeys.passive))
g_hotkey_service->update_hotkey("passive", g.settings.hotkeys.passive);
if (ImGui::Hotkey("Heal", &g.settings.hotkeys.heal))
g_hotkey_service->update_hotkey("heal", g.settings.hotkeys.heal);
if (ImGui::Hotkey("Fill Snacks", &g.settings.hotkeys.fill_inventory))