2023-03-30 00:37:10 +02:00
|
|
|
#include "views/view.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void view::orbital_drone()
|
|
|
|
{
|
|
|
|
components::command_checkbox<"orbitaldrone">();
|
|
|
|
|
|
|
|
if (g.world.orbital_drone.enabled)
|
|
|
|
{
|
|
|
|
ImGui::Separator();
|
|
|
|
ImGui::BeginGroup();
|
2023-04-07 23:08:34 +02:00
|
|
|
ImGui::Text("ORBITAL_DRONE_USAGE_DESCR"_T.data());
|
2023-03-30 00:37:10 +02:00
|
|
|
ImGui::EndGroup();
|
|
|
|
ImGui::Separator();
|
|
|
|
|
|
|
|
ImGui::BeginGroup();
|
2023-04-07 23:08:34 +02:00
|
|
|
ImGui::Checkbox("ORBITAL_DRONE_AUTO_LOCK_ON_PLAYER"_T.data(), &g.world.orbital_drone.detect_player);
|
2023-03-30 00:37:10 +02:00
|
|
|
if (ImGui::IsItemHovered())
|
|
|
|
{
|
|
|
|
ImGui::BeginTooltip();
|
2023-04-25 23:59:51 +02:00
|
|
|
ImGui::Text("ORBITAL_DRONE_AUTO_LOCK_ON_PLAYER_TOOLTIP"_T.data());
|
2023-03-30 00:37:10 +02:00
|
|
|
ImGui::EndTooltip();
|
|
|
|
}
|
2023-04-07 23:08:34 +02:00
|
|
|
ImGui::Text("ORBITAL_DRONE_HIGH_SPEED_MULTIPLIER"_T.data());
|
2023-03-30 00:37:10 +02:00
|
|
|
ImGui::SliderFloat("##fastspeed", &g.world.orbital_drone.nav_ovverride_fast, 1.f, 10.f);
|
2023-04-07 23:08:34 +02:00
|
|
|
ImGui::Text("ORBITAL_DRONE_LOW_SPEED_MULTIPLIER"_T.data());
|
2023-03-30 00:37:10 +02:00
|
|
|
ImGui::SliderFloat("##slowspeed", &g.world.orbital_drone.nav_ovverride_slow, 0.f, 1.f);
|
|
|
|
ImGui::EndGroup();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|