From dc2394d083460fc6bc12eb94059e0149720e3f1c Mon Sep 17 00:00:00 2001 From: Karaulov Date: Wed, 23 Nov 2022 10:54:12 +0300 Subject: [PATCH] Update Gui.cpp --- src/editor/Gui.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/editor/Gui.cpp b/src/editor/Gui.cpp index aa5dfbf4..8d2058a0 100644 --- a/src/editor/Gui.cpp +++ b/src/editor/Gui.cpp @@ -3427,8 +3427,7 @@ void Gui::drawSettings() } else if (settingsTab == 4) { - ImGui::DragFloat("Movement speed", &app->moveSpeed, 0.1f, 0.1f, 1000, "%.1f"); - ImGui::DragFloat("Rotation speed", &app->rotationSpeed, 0.01f, 0.1f, 100, "%.1f"); + } else if (settingsTab == 5) { @@ -4043,9 +4042,9 @@ void Gui::drawLimitTab(Bsp* map, int sortMode) ImGui::Dummy(ImVec2(0, 10)); ImGui::PushFont(consoleFontLarge); - float valWidth = consoleFontLarge->CalcTextSizeA(fontSize * 1.1f, FLT_MAX, FLT_MAX, " Clipnodes ").x; - float usageWidth = consoleFontLarge->CalcTextSizeA(fontSize * 1.1f, FLT_MAX, FLT_MAX, " Usage ").x; - float modelWidth = consoleFontLarge->CalcTextSizeA(fontSize * 1.1f, FLT_MAX, FLT_MAX, " Model ").x; + float valWidth = consoleFontLarge->CalcTextSizeA(fontSize * 1.2f, FLT_MAX, FLT_MAX, " Clipnodes ").x; + float usageWidth = consoleFontLarge->CalcTextSizeA(fontSize * 1.2f, FLT_MAX, FLT_MAX, " Usage ").x; + float modelWidth = consoleFontLarge->CalcTextSizeA(fontSize * 1.2f, FLT_MAX, FLT_MAX, " Model ").x; float bigWidth = ImGui::GetWindowWidth() - (valWidth + usageWidth + modelWidth); ImGui::Columns(4); ImGui::SetColumnWidth(0, bigWidth);