diff --git a/src/spice2x/overlay/windows/config.cpp b/src/spice2x/overlay/windows/config.cpp index f0656db..5db42b7 100644 --- a/src/spice2x/overlay/windows/config.cpp +++ b/src/spice2x/overlay/windows/config.cpp @@ -36,6 +36,8 @@ namespace overlay::windows { + // same width as dummy marker + const float INDENT = 22.f; const auto PROJECT_URL = "https://spice2x.github.io"; Config::Config(overlay::SpiceOverlay *overlay) : Window(overlay) { @@ -248,10 +250,8 @@ namespace overlay::windows { // help text for binding buttons, if the game has one const auto help_text = games::get_buttons_help(this->games_selected_name); if (!help_text.empty()) { - ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 8); ImGui::TextColored(ImVec4(1.f, 0.7f, 0, 1), "Button Layout"); ImGui::Spacing(); - ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 8); ImGui::TextWrapped("%s", help_text.c_str()); ImGui::TextUnformatted(""); } @@ -262,15 +262,15 @@ namespace overlay::windows { // keypad buttons ImGui::TextUnformatted(""); if (this->games_selected_name == "Beatmania IIDX") { - ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 8); + ImGui::Indent(INDENT); ImGui::TextColored( ImVec4(1, 0.5f, 0.5f, 1.f), "WARNING: Lightning Model (TDJ) I/O will ignore the keypad!"); - ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 8); ImGui::TextWrapped( "Use Toggle Sub Screen button to show the overlay and use your mouse, " "connect using SpiceCompanion app, or connect a touch screen to enter " "the PIN."); + ImGui::Unindent(INDENT); ImGui::TextUnformatted(""); } auto keypad_buttons = games::get_buttons_keypads(this->games_selected_name); @@ -563,213 +563,300 @@ namespace overlay::windows { } void Config::build_buttons(const std::string &name, std::vector