chore: Rename handling to current_profile

This commit is contained in:
Yimura 2021-09-16 22:12:50 +02:00
parent 1ba3e75cc3
commit e808b23c93
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
12 changed files with 281 additions and 281 deletions

View File

@ -1,23 +1,23 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_brakes() void tab_handling::tab_brakes()
{ {
if (ImGui::BeginTabItem("Brakes")) if (ImGui::BeginTabItem("Brakes"))
{ {
ImGui::Text("Brake Force"); ImGui::Text("Brake Force");
ImGui::DragFloat("##brake force", &g_local_player->m_vehicle->m_handling->m_brake_force, .01f, 0.f, 10.f); ImGui::DragFloat("##brake force", &g_local_player->m_vehicle->m_handling->m_brake_force, .01f, 0.f, 10.f);
ImGui::Text("Brake Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)"); ImGui::Text("Brake Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)");
float fBrakeBias = g_local_player->m_vehicle->m_handling->m_brake_bias_front / 2; float fBrakeBias = g_local_player->m_vehicle->m_handling->m_brake_bias_front / 2;
if (ImGui::SliderFloat("##brake bias front", &fBrakeBias, 0.f, 1.f)) if (ImGui::SliderFloat("##brake bias front", &fBrakeBias, 0.f, 1.f))
g_local_player->m_vehicle->m_handling->m_brake_bias_front = fBrakeBias * 2; g_local_player->m_vehicle->m_handling->m_brake_bias_front = fBrakeBias * 2;
ImGui::Text("Hand Brake Force"); ImGui::Text("Hand Brake Force");
ImGui::DragFloat("##hand brake force", &g_local_player->m_vehicle->m_handling->m_handbrake_force, .01f, 0.f, 10.f); ImGui::DragFloat("##hand brake force", &g_local_player->m_vehicle->m_handling->m_handbrake_force, .01f, 0.f, 10.f);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
} }

View File

@ -1,23 +1,23 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_gearing() void tab_handling::tab_gearing()
{ {
if (ImGui::BeginTabItem("Gearing")) if (ImGui::BeginTabItem("Gearing"))
{ {
ImGui::Text("Initial Drive Gears"); ImGui::Text("Initial Drive Gears");
int initial_drive_gears = g_local_player->m_vehicle->m_handling->m_initial_drive_gears; int initial_drive_gears = g_local_player->m_vehicle->m_handling->m_initial_drive_gears;
if (ImGui::DragInt("###handling_drive_gears", &initial_drive_gears, .1f, 1, 16)) if (ImGui::DragInt("###handling_drive_gears", &initial_drive_gears, .1f, 1, 16))
g_local_player->m_vehicle->m_handling->m_initial_drive_gears = initial_drive_gears; g_local_player->m_vehicle->m_handling->m_initial_drive_gears = initial_drive_gears;
ImGui::Text("Upshift Multiplier"); ImGui::Text("Upshift Multiplier");
ImGui::DragFloat("###handling_upshift", &g_local_player->m_vehicle->m_handling->m_upshift, .01f, 0.f, 10.f); ImGui::DragFloat("###handling_upshift", &g_local_player->m_vehicle->m_handling->m_upshift, .01f, 0.f, 10.f);
ImGui::Text("Downshift Multiplier"); ImGui::Text("Downshift Multiplier");
ImGui::DragFloat("###handling_downshift", &g_local_player->m_vehicle->m_handling->m_downshift, .01f, 0.f, 10.f); ImGui::DragFloat("###handling_downshift", &g_local_player->m_vehicle->m_handling->m_downshift, .01f, 0.f, 10.f);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
}; };

View File

@ -1,33 +1,33 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_general() void tab_handling::tab_general()
{ {
if (ImGui::BeginTabItem("General")) if (ImGui::BeginTabItem("General"))
{ {
ImGui::Text("Gravity"); ImGui::Text("Gravity");
ImGui::SliderFloat("##Gravity", &g_local_player->m_vehicle->m_gravity, -50.f, 50.f); ImGui::SliderFloat("##Gravity", &g_local_player->m_vehicle->m_gravity, -50.f, 50.f);
ImGui::Text("Mass"); ImGui::Text("Mass");
ImGui::SliderFloat("##Mass", &g_local_player->m_vehicle->m_handling->m_mass, 0.f, 50000.f); ImGui::SliderFloat("##Mass", &g_local_player->m_vehicle->m_handling->m_mass, 0.f, 50000.f);
ImGui::Text("Centre of mass"); ImGui::Text("Centre of mass");
float fCenterOfMass[3]; float fCenterOfMass[3];
fCenterOfMass[0] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.x; fCenterOfMass[0] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.x;
fCenterOfMass[1] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.y; fCenterOfMass[1] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.y;
fCenterOfMass[2] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.z; fCenterOfMass[2] = g_local_player->m_vehicle->m_handling->m_centre_of_mass.z;
if (ImGui::SliderFloat3("##centre_of_mass", fCenterOfMass, -10.f, 10.f)) if (ImGui::SliderFloat3("##centre_of_mass", fCenterOfMass, -10.f, 10.f))
{ {
g_local_player->m_vehicle->m_handling->m_centre_of_mass.x = fCenterOfMass[0]; g_local_player->m_vehicle->m_handling->m_centre_of_mass.x = fCenterOfMass[0];
g_local_player->m_vehicle->m_handling->m_centre_of_mass.y = fCenterOfMass[1]; g_local_player->m_vehicle->m_handling->m_centre_of_mass.y = fCenterOfMass[1];
g_local_player->m_vehicle->m_handling->m_centre_of_mass.z = fCenterOfMass[2]; g_local_player->m_vehicle->m_handling->m_centre_of_mass.z = fCenterOfMass[2];
} }
ImGui::Text("Buoyancy"); ImGui::Text("Buoyancy");
ImGui::SliderFloat("##buoyancy", &g_local_player->m_vehicle->m_handling->m_buoyancy, .01f, 99.f); ImGui::SliderFloat("##buoyancy", &g_local_player->m_vehicle->m_handling->m_buoyancy, .01f, 99.f);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
} }

View File

@ -1,30 +1,30 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_other() void tab_handling::tab_other()
{ {
if (ImGui::BeginTabItem("Other")) if (ImGui::BeginTabItem("Other"))
{ {
ImGui::Text("Acceleration Multiplier"); ImGui::Text("Acceleration Multiplier");
ImGui::DragFloat("###handling_acceleration", &g_local_player->m_vehicle->m_handling->m_acceleration, 1.f, .01f, 10.f); ImGui::DragFloat("###handling_acceleration", &g_local_player->m_vehicle->m_handling->m_acceleration, 1.f, .01f, 10.f);
ImGui::Text("Downforce Multiplier"); ImGui::Text("Downforce Multiplier");
ImGui::DragFloat("###handling_downforce", &g_local_player->m_vehicle->m_handling->m_downforce_multiplier, 1.f, 0.f, 10.f); ImGui::DragFloat("###handling_downforce", &g_local_player->m_vehicle->m_handling->m_downforce_multiplier, 1.f, 0.f, 10.f);
ImGui::Text("Inertia Multiplier"); ImGui::Text("Inertia Multiplier");
float fInertiaMult[3]; float fInertiaMult[3];
fInertiaMult[0] = g_local_player->m_vehicle->m_handling->m_inertia_mult.x; fInertiaMult[0] = g_local_player->m_vehicle->m_handling->m_inertia_mult.x;
fInertiaMult[1] = g_local_player->m_vehicle->m_handling->m_inertia_mult.y; fInertiaMult[1] = g_local_player->m_vehicle->m_handling->m_inertia_mult.y;
fInertiaMult[2] = g_local_player->m_vehicle->m_handling->m_inertia_mult.z; fInertiaMult[2] = g_local_player->m_vehicle->m_handling->m_inertia_mult.z;
if (ImGui::SliderFloat3("##inertia_multiplier", fInertiaMult, -10.f, 10.f)) if (ImGui::SliderFloat3("##inertia_multiplier", fInertiaMult, -10.f, 10.f))
{ {
g_local_player->m_vehicle->m_handling->m_inertia_mult.x = fInertiaMult[0]; g_local_player->m_vehicle->m_handling->m_inertia_mult.x = fInertiaMult[0];
g_local_player->m_vehicle->m_handling->m_inertia_mult.y = fInertiaMult[1]; g_local_player->m_vehicle->m_handling->m_inertia_mult.y = fInertiaMult[1];
g_local_player->m_vehicle->m_handling->m_inertia_mult.z = fInertiaMult[2]; g_local_player->m_vehicle->m_handling->m_inertia_mult.z = fInertiaMult[2];
} }
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
}; };

View File

@ -1,22 +1,22 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_roll_centre_height() void tab_handling::tab_roll_centre_height()
{ {
if (ImGui::BeginTabItem("Roll Centre Height")) if (ImGui::BeginTabItem("Roll Centre Height"))
{ {
ImGui::Text("The point in the transverse vertical plane through any pair of wheel centres\nat which lateral forces apply to the sprung mass without producing suspension roll."); ImGui::Text("The point in the transverse vertical plane through any pair of wheel centres\nat which lateral forces apply to the sprung mass without producing suspension roll.");
ImGui::Separator(); ImGui::Separator();
ImGui::Text("Roll Centre Height Front"); ImGui::Text("Roll Centre Height Front");
ImGui::SliderFloat("##roll centre height front", &g_local_player->m_vehicle->m_handling->m_roll_centre_height_front, -1.f, 1.f); ImGui::SliderFloat("##roll centre height front", &g_local_player->m_vehicle->m_handling->m_roll_centre_height_front, -1.f, 1.f);
ImGui::Text("Roll Centre Height Back"); ImGui::Text("Roll Centre Height Back");
ImGui::SliderFloat("##roll centre height back", &g_local_player->m_vehicle->m_handling->m_roll_centre_height_rear, -1.f, 1.f); ImGui::SliderFloat("##roll centre height back", &g_local_player->m_vehicle->m_handling->m_roll_centre_height_rear, -1.f, 1.f);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
}; };

View File

@ -1,20 +1,20 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_rollbars() void tab_handling::tab_rollbars()
{ {
if (ImGui::BeginTabItem("Rollbars")) if (ImGui::BeginTabItem("Rollbars"))
{ {
ImGui::Text("Anti-Roll Bar force"); ImGui::Text("Anti-Roll Bar force");
ImGui::SliderFloat("##anti rollbar force", &g_local_player->m_vehicle->m_handling->m_anti_rollbar_force, 0.f, 10.f); ImGui::SliderFloat("##anti rollbar force", &g_local_player->m_vehicle->m_handling->m_anti_rollbar_force, 0.f, 10.f);
ImGui::Text("Anti-Roll Bar Bias front (0 = front, 1 = rear)"); ImGui::Text("Anti-Roll Bar Bias front (0 = front, 1 = rear)");
float fAntiRollBarBiasFront = g_local_player->m_vehicle->m_handling->m_anti_rollbar_bias_front / 2; float fAntiRollBarBiasFront = g_local_player->m_vehicle->m_handling->m_anti_rollbar_bias_front / 2;
if (ImGui::SliderFloat("##anti rollbar bias", &fAntiRollBarBiasFront, 0.f, 1.f)) if (ImGui::SliderFloat("##anti rollbar bias", &fAntiRollBarBiasFront, 0.f, 1.f))
g_local_player->m_vehicle->m_handling->m_anti_rollbar_bias_front = fAntiRollBarBiasFront * 2; g_local_player->m_vehicle->m_handling->m_anti_rollbar_bias_front = fAntiRollBarBiasFront * 2;
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
}; };

View File

@ -1,15 +1,15 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_steering() void tab_handling::tab_steering()
{ {
if (ImGui::BeginTabItem("Steering")) if (ImGui::BeginTabItem("Steering"))
{ {
ImGui::Text("Steering Lock (degrees)"); ImGui::Text("Steering Lock (degrees)");
ImGui::SliderAngle("##steering lock", &g_local_player->m_vehicle->m_handling->m_steering_lock, -90.f, 90.f); ImGui::SliderAngle("##steering lock", &g_local_player->m_vehicle->m_handling->m_steering_lock, -90.f, 90.f);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
} }

View File

@ -1,35 +1,35 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_suspension() void tab_handling::tab_suspension()
{ {
if (ImGui::BeginTabItem("Suspension")) if (ImGui::BeginTabItem("Suspension"))
{ {
ImGui::Text("Suspension Force (General Suspension Strength)"); ImGui::Text("Suspension Force (General Suspension Strength)");
ImGui::SliderFloat("##suspension force", &g_local_player->m_vehicle->m_handling->m_suspension_force, 0.f, 5.f); ImGui::SliderFloat("##suspension force", &g_local_player->m_vehicle->m_handling->m_suspension_force, 0.f, 5.f);
ImGui::Text("Suspension Compression Damp (Higher = Less Compression)"); ImGui::Text("Suspension Compression Damp (Higher = Less Compression)");
ImGui::SliderFloat("##suspension comp", &g_local_player->m_vehicle->m_handling->m_suspension_comp_damp, 0.f, 5.f); ImGui::SliderFloat("##suspension comp", &g_local_player->m_vehicle->m_handling->m_suspension_comp_damp, 0.f, 5.f);
ImGui::Text("Suspension Rebound Damp (Higher = Less Decompression)"); ImGui::Text("Suspension Rebound Damp (Higher = Less Decompression)");
ImGui::SliderFloat("##suspension rebound", &g_local_player->m_vehicle->m_handling->m_suspension_rebound_damp, 0.f, 5.f); ImGui::SliderFloat("##suspension rebound", &g_local_player->m_vehicle->m_handling->m_suspension_rebound_damp, 0.f, 5.f);
ImGui::Text("Suspension Upper Limit (mostly visual)"); ImGui::Text("Suspension Upper Limit (mostly visual)");
ImGui::SliderFloat("##suspension upper", &g_local_player->m_vehicle->m_handling->m_suspension_upper_limit, -1.f, 1.f); ImGui::SliderFloat("##suspension upper", &g_local_player->m_vehicle->m_handling->m_suspension_upper_limit, -1.f, 1.f);
ImGui::Text("Suspension Lower Limit (mostly visual)"); ImGui::Text("Suspension Lower Limit (mostly visual)");
ImGui::SliderFloat("##suspension lower", &g_local_player->m_vehicle->m_handling->m_suspension_lower_limit, -1.f, 1.f); ImGui::SliderFloat("##suspension lower", &g_local_player->m_vehicle->m_handling->m_suspension_lower_limit, -1.f, 1.f);
ImGui::Text("Suspension Raise (Ride Height)"); ImGui::Text("Suspension Raise (Ride Height)");
ImGui::SliderFloat("##suspension raise", &g_local_player->m_vehicle->m_handling->m_suspension_raise, -1.f, 1.f); ImGui::SliderFloat("##suspension raise", &g_local_player->m_vehicle->m_handling->m_suspension_raise, -1.f, 1.f);
ImGui::Text("Suspension Bias Front (Strength Bias, 1 = front, 0 = rear)"); ImGui::Text("Suspension Bias Front (Strength Bias, 1 = front, 0 = rear)");
float fSuspensionBiasFront = g_local_player->m_vehicle->m_handling->m_suspension_bias_front / 2; float fSuspensionBiasFront = g_local_player->m_vehicle->m_handling->m_suspension_bias_front / 2;
if (ImGui::SliderFloat("##suspension bias", &fSuspensionBiasFront, 0.f, 1.f)) if (ImGui::SliderFloat("##suspension bias", &fSuspensionBiasFront, 0.f, 1.f))
g_local_player->m_vehicle->m_handling->m_suspension_bias_front = fSuspensionBiasFront * 2; g_local_player->m_vehicle->m_handling->m_suspension_bias_front = fSuspensionBiasFront * 2;
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
} }

View File

@ -1,27 +1,27 @@
#pragma once #pragma once
#include "common.hpp" #include "common.hpp"
#include "imgui.h" #include "imgui.h"
namespace big namespace big
{ {
class tab_handling class tab_handling
{ {
public: public:
static void tab_brakes(); static void tab_brakes();
static void tab_gearing(); static void tab_gearing();
static void tab_general(); static void tab_general();
static void tab_other(); static void tab_other();
static void tab_rollbars(); static void tab_rollbars();
static void tab_roll_centre_height(); static void tab_roll_centre_height();
static void tab_suspension(); static void tab_suspension();
static void tab_steering(); static void tab_steering();
static void tab_traction(); static void tab_traction();
static void tab_transmission(); static void tab_transmission();
}; };
class modal_handling class modal_handling
{ {
public: public:
static void modal_save_handling(); static void modal_save_handling();
}; };
} }

View File

@ -1,38 +1,38 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_traction() void tab_handling::tab_traction()
{ {
if (ImGui::BeginTabItem("Traction")) if (ImGui::BeginTabItem("Traction"))
{ {
ImGui::Text("Minimum Traction"); ImGui::Text("Minimum Traction");
ImGui::SliderFloat("##traction curve min", &g_local_player->m_vehicle->m_handling->m_traction_curve_min, 0.f, 7.f); ImGui::SliderFloat("##traction curve min", &g_local_player->m_vehicle->m_handling->m_traction_curve_min, 0.f, 7.f);
ImGui::Text("Peak Traction before grip is lost"); ImGui::Text("Peak Traction before grip is lost");
ImGui::SliderFloat("##traction curve max", &g_local_player->m_vehicle->m_handling->m_traction_curve_max, 0.f, 7.f); ImGui::SliderFloat("##traction curve max", &g_local_player->m_vehicle->m_handling->m_traction_curve_max, 0.f, 7.f);
ImGui::Text("Traction Curve (point of grip loss)"); ImGui::Text("Traction Curve (point of grip loss)");
ImGui::SliderAngle("##traction curve lateral", &g_local_player->m_vehicle->m_handling->m_traction_curve_lateral); ImGui::SliderAngle("##traction curve lateral", &g_local_player->m_vehicle->m_handling->m_traction_curve_lateral);
ImGui::Text("Traction Height Loss (distance ground and tires)"); ImGui::Text("Traction Height Loss (distance ground and tires)");
ImGui::SliderFloat("##traction spring delta max", &g_local_player->m_vehicle->m_handling->m_traction_spring_delta_max, 0.f, 2.f); ImGui::SliderFloat("##traction spring delta max", &g_local_player->m_vehicle->m_handling->m_traction_spring_delta_max, 0.f, 2.f);
ImGui::Text("Burnout Multiplier"); ImGui::Text("Burnout Multiplier");
ImGui::SliderFloat("##low speed traction loss mult", &g_local_player->m_vehicle->m_handling->m_low_speed_traction_loss_mult, 0.f, 10.f); ImGui::SliderFloat("##low speed traction loss mult", &g_local_player->m_vehicle->m_handling->m_low_speed_traction_loss_mult, 0.f, 10.f);
//ImGui::Text("Camber Stiffness (grip when drifting)"); //ImGui::Text("Camber Stiffness (grip when drifting)");
//ImGui::SliderFloat("##camber stiffness", &g_local_player->m_vehicle->m_handling->m_camber_stiffness, -1.f, 1.f); //ImGui::SliderFloat("##camber stiffness", &g_local_player->m_vehicle->m_handling->m_camber_stiffness, -1.f, 1.f);
ImGui::Text("Traction Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)"); ImGui::Text("Traction Bias (1.0 = front, 0.0 = rear, 0.5 = balanced)");
float fTractionBiasFront = g_local_player->m_vehicle->m_handling->m_traction_bias_front / 2; float fTractionBiasFront = g_local_player->m_vehicle->m_handling->m_traction_bias_front / 2;
if (ImGui::SliderFloat("##traction bias front", &fTractionBiasFront, 0.01f, .99f)) if (ImGui::SliderFloat("##traction bias front", &fTractionBiasFront, 0.01f, .99f))
g_local_player->m_vehicle->m_handling->m_traction_bias_front = fTractionBiasFront * 2; g_local_player->m_vehicle->m_handling->m_traction_bias_front = fTractionBiasFront * 2;
ImGui::Text("Off-Road Traction Loss (1.0 = normal, lower = better)"); ImGui::Text("Off-Road Traction Loss (1.0 = normal, lower = better)");
ImGui::SliderFloat("##traction loss mult", &g_local_player->m_vehicle->m_handling->m_traction_loss_mult, 0.f, 5.f); ImGui::SliderFloat("##traction loss mult", &g_local_player->m_vehicle->m_handling->m_traction_loss_mult, 0.f, 5.f);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
} }

View File

@ -1,25 +1,25 @@
#include "handling_tabs.hpp" #include "current_profile_tabs.hpp"
namespace big namespace big
{ {
void tab_handling::tab_transmission() void tab_handling::tab_transmission()
{ {
if (ImGui::BeginTabItem("Transmission")) if (ImGui::BeginTabItem("Transmission"))
{ {
ImGui::Text("Drive Bias (1.0 = front, 0.0 = rear, 0.5 = balanced 4WD)"); ImGui::Text("Drive Bias (1.0 = front, 0.0 = rear, 0.5 = balanced 4WD)");
float fDriveBiasFront = g_local_player->m_vehicle->m_handling->m_drive_bias_front / 2; float fDriveBiasFront = g_local_player->m_vehicle->m_handling->m_drive_bias_front / 2;
if (ImGui::SliderFloat("##drive_bias_front", &fDriveBiasFront, 0.f, 1.0f)) if (ImGui::SliderFloat("##drive_bias_front", &fDriveBiasFront, 0.f, 1.0f))
g_local_player->m_vehicle->m_handling->m_drive_bias_front = fDriveBiasFront * 2; g_local_player->m_vehicle->m_handling->m_drive_bias_front = fDriveBiasFront * 2;
ImGui::Text("Drive Bias (1.0 = rear, 0.0 = front, 0.5 = balanced 4WD)"); ImGui::Text("Drive Bias (1.0 = rear, 0.0 = front, 0.5 = balanced 4WD)");
float fDriveBiasRear = g_local_player->m_vehicle->m_handling->m_drive_bias_rear / 2; float fDriveBiasRear = g_local_player->m_vehicle->m_handling->m_drive_bias_rear / 2;
if (ImGui::SliderFloat("##drive_bias_rear", &fDriveBiasRear, 0.f, 1.0f)) if (ImGui::SliderFloat("##drive_bias_rear", &fDriveBiasRear, 0.f, 1.0f))
g_local_player->m_vehicle->m_handling->m_drive_bias_rear = fDriveBiasRear * 2; g_local_player->m_vehicle->m_handling->m_drive_bias_rear = fDriveBiasRear * 2;
ImGui::Text("Transmission Output (force)"); ImGui::Text("Transmission Output (force)");
ImGui::SliderFloat("##initial drive force", &g_local_player->m_vehicle->m_handling->m_initial_drive_force, 0.01f, 2.f); ImGui::SliderFloat("##initial drive force", &g_local_player->m_vehicle->m_handling->m_initial_drive_force, 0.01f, 2.f);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }
} }
} }

View File

@ -1,4 +1,4 @@
#include "../handling_tabs.hpp" #include "../current_profile/current_profile_tabs.hpp"
#include "fiber_pool.hpp" #include "fiber_pool.hpp"
#include "natives.hpp" #include "natives.hpp"
#include "script.hpp" #include "script.hpp"