From 7560829d1659883825421f4a105db4add0996a72 Mon Sep 17 00:00:00 2001 From: jakubg1 <24206305+jakubg1@users.noreply.github.com> Date: Mon, 1 Apr 2024 19:40:32 +0200 Subject: [PATCH 1/3] Launcher: Display vehicles by groups by default This matches the Starter. --- launcher/vehicle_picker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/vehicle_picker.h b/launcher/vehicle_picker.h index 8ff2c80d..ed850d11 100644 --- a/launcher/vehicle_picker.h +++ b/launcher/vehicle_picker.h @@ -19,7 +19,7 @@ private: std::shared_ptr selected_vehicle; const std::string *selected_group = nullptr; const skin_set *selected_skinset = nullptr; - bool display_by_groups = false; + bool display_by_groups = true; deferred_image placeholder_mini; std::array search_query = { 0 }; From fb3c0c2d6d9c5ff0f84d7716423b67ddee360276 Mon Sep 17 00:00:00 2001 From: jakubg1 <24206305+jakubg1@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:24:41 +0200 Subject: [PATCH 2/3] Remove debug output --- keyboardinput.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboardinput.cpp b/keyboardinput.cpp index 70445d18..6fcdede8 100644 --- a/keyboardinput.cpp +++ b/keyboardinput.cpp @@ -173,7 +173,6 @@ keyboard_input::recall_bindings() { // This can't be done now as by default this would destroy all command descriptions, // which are used by Starter. // Do this when szczawik's Starter becomes deprecated or implements command descriptions in some other way. - WriteLog("got: \"" + bindingkeyname + "\""); if (descriptionStarted) { if (description.size() > 0) { description += " "; From 27efcdccfa4535d0627203b8a0d047eb0c42b244 Mon Sep 17 00:00:00 2001 From: jakubg1 <24206305+jakubg1@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:55:43 +0200 Subject: [PATCH 3/3] Fix timetable window being cut off on large font sizes --- driveruipanels.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/driveruipanels.cpp b/driveruipanels.cpp index eeddbed4..cf1d893a 100644 --- a/driveruipanels.cpp +++ b/driveruipanels.cpp @@ -485,11 +485,13 @@ timetable_panel::render() { | ImGuiWindowFlags_NoCollapse | ( size.x > 0 ? ImGuiWindowFlags_NoResize : 0 ); + // HACK: Make sure the timetable window is of correct width when using a larger font size. + float horizontalScale = Global.ui_fontsize / 13; if( size.x > 0 ) { - ImGui::SetNextWindowSize( ImVec2S( size.x, size.y ) ); + ImGui::SetNextWindowSize( ImVec2S( size.x * horizontalScale, size.y ) ); } if( size_min.x > 0 ) { - ImGui::SetNextWindowSizeConstraints( ImVec2S( size_min.x, size_min.y ), ImVec2S( size_max.x, size_max.y ) ); + ImGui::SetNextWindowSizeConstraints( ImVec2S( size_min.x * horizontalScale, size_min.y ), ImVec2S( size_max.x * horizontalScale, size_max.y ) ); } auto const panelname { ( title.empty() ?