From 3b4abdabe8097ef2db1ed148066b8e1286607e33 Mon Sep 17 00:00:00 2001 From: tritonas00 Date: Sat, 12 Feb 2022 18:46:14 +0200 Subject: [PATCH] bigger shortcut buttons --- source/main/gui/panels/GUI_GameControls.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/main/gui/panels/GUI_GameControls.cpp b/source/main/gui/panels/GUI_GameControls.cpp index af962acf7e..72cae3b1e2 100644 --- a/source/main/gui/panels/GUI_GameControls.cpp +++ b/source/main/gui/panels/GUI_GameControls.cpp @@ -183,7 +183,7 @@ void GameControls::DrawEvent(RoR::events ev_code) ImGui::PushID(&trig); - if (ImGui::Button(App::GetInputEngine()->getTriggerCommand(trig).c_str())) + if (ImGui::Button(App::GetInputEngine()->getTriggerCommand(trig).c_str(), ImVec2(ImGui::GetColumnWidth() - 2*ImGui::GetStyle().ItemSpacing.x, 0))) { // Begin interactive keybind m_active_event = ev_code; @@ -313,6 +313,7 @@ void GameControls::DrawControlsTabItem(const char* name, const char* prefix) ImGui::NextColumn(); ImGui::TextColored(GRAY_HINT_TEXT, "Description"); ImGui::NextColumn(); + ImGui::Separator(); ImGui::Columns(1); // Cannot cross with child window. // Scroll region