2021-09-16 22:12:50 +02:00
|
|
|
#include "current_profile_tabs.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
2021-09-16 22:21:19 +02:00
|
|
|
void tab_current_profile::tab_transmission()
|
2021-09-16 22:12:50 +02:00
|
|
|
{
|
2023-02-01 19:46:33 +01:00
|
|
|
if (ImGui::BeginTabItem("HANDLING_TAB_TRANSMISSION"_T.data()))
|
2021-09-16 22:12:50 +02:00
|
|
|
{
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Text("HANDLING_DRIVE_BIAS_FRONT"_T.data());
|
2022-09-12 18:44:47 +00:00
|
|
|
float fDriveBiasFront = g_local_player->m_vehicle->m_handling_data->m_drive_bias_front / 2;
|
2021-09-16 22:12:50 +02:00
|
|
|
if (ImGui::SliderFloat("##drive_bias_front", &fDriveBiasFront, 0.f, 1.0f))
|
2022-09-12 18:44:47 +00:00
|
|
|
g_local_player->m_vehicle->m_handling_data->m_drive_bias_front = fDriveBiasFront * 2;
|
2021-09-16 22:12:50 +02:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Text("HANDLING_DRIVE_BIAS_REAR"_T.data());
|
2022-09-12 18:44:47 +00:00
|
|
|
float fDriveBiasRear = g_local_player->m_vehicle->m_handling_data->m_drive_bias_rear / 2;
|
2021-09-16 22:12:50 +02:00
|
|
|
if (ImGui::SliderFloat("##drive_bias_rear", &fDriveBiasRear, 0.f, 1.0f))
|
2022-09-12 18:44:47 +00:00
|
|
|
g_local_player->m_vehicle->m_handling_data->m_drive_bias_rear = fDriveBiasRear * 2;
|
2021-09-16 22:12:50 +02:00
|
|
|
|
2023-02-01 19:46:33 +01:00
|
|
|
ImGui::Text("HANDLING_TRANSMISSION_OUTPUT"_T.data());
|
2022-09-12 18:44:47 +00:00
|
|
|
ImGui::SliderFloat("##initial drive force", &g_local_player->m_vehicle->m_handling_data->m_initial_drive_force, 0.01f, 2.f);
|
2021-09-16 22:12:50 +02:00
|
|
|
|
|
|
|
ImGui::EndTabItem();
|
|
|
|
}
|
|
|
|
}
|
2021-07-25 22:24:48 +02:00
|
|
|
}
|