This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/BigBaseV2/src/gui/window/window_handling.cpp

33 lines
747 B
C++
Raw Normal View History

2021-07-25 22:24:48 +02:00
#include "gui/window.hpp"
#include "handling/handling_tabs.hpp"
#include "imgui.h"
namespace big
{
void window::handling()
{
ImGui::SetNextWindowSize({ 500, 250 }, ImGuiCond_FirstUseEver);
ImGui::SetNextWindowPos({ 50, 50 }, ImGuiCond_FirstUseEver);
if (g.window.handling && ImGui::Begin("Handling", &g.window.handling))
{
if (g_local_player->m_vehicle == nullptr)
{
ImGui::Text("Please enter a vehicle to modify handling.");
return;
}
ImGui::BeginTabBar("handling_tabbar");
tab_handling::tab_phyics();
tab_handling::tab_braking();
tab_handling::tab_steering();
tab_handling::tab_traction();
tab_handling::tab_suspension();
// rollbars
// misc
ImGui::EndTabBar();
ImGui::End();
}
}
}