2021-05-19 18:11:19 +02:00
|
|
|
#include "core/data/speedo_meters.hpp"
|
|
|
|
#include "gui/window/main/tabs.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
static char model[12];
|
|
|
|
|
|
|
|
void tab_main::tab_vehicle()
|
|
|
|
{
|
|
|
|
if (ImGui::BeginTabItem("Vehicle"))
|
|
|
|
{
|
|
|
|
if (ImGui::TreeNode("Speedo Meter"))
|
|
|
|
{
|
|
|
|
SpeedoMeter selected = g.vehicle.speedo_meter;
|
|
|
|
|
|
|
|
if (ImGui::BeginCombo("Weapon", speedo_meters[(int)selected].name))
|
|
|
|
{
|
|
|
|
for (speedo_meter speedo : speedo_meters)
|
|
|
|
{
|
|
|
|
if (ImGui::Selectable(speedo.name, speedo.id == selected))
|
|
|
|
{
|
|
|
|
g.vehicle.speedo_meter = speedo.id;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (speedo.id == selected)
|
|
|
|
ImGui::SetItemDefaultFocus();
|
|
|
|
}
|
|
|
|
|
|
|
|
ImGui::EndCombo();
|
|
|
|
}
|
|
|
|
|
|
|
|
ImGui::TreePop();
|
|
|
|
}
|
|
|
|
|
2021-05-20 23:18:44 +02:00
|
|
|
ImGui::Checkbox("Horn Boost", &g.vehicle.horn_boost);
|
|
|
|
|
2021-05-19 18:11:19 +02:00
|
|
|
ImGui::EndTabItem();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|