refactor!: Replace premake5 with CMake. (#551)

Co-authored-by: tupoy-ya <tupoy-ya@users.noreply.github.com>
This commit is contained in:
tupoy-ya
2022-11-08 21:08:58 +00:00
committed by GitHub
parent 146c2b8ce8
commit 1087146e56
340 changed files with 19298 additions and 19449 deletions

View File

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