Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bigger shortcut buttons in controls panel #2852

Merged
merged 1 commit into from
Feb 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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