Skip to content

Commit

Permalink
bigger shortcut buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 authored and Petr Ohlídal committed Feb 16, 2022
1 parent 53e6884 commit 3b4abda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/main/gui/panels/GUI_GameControls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3b4abda

Please # to comment.