mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
overlay: fix cosmetic issue in options tab when there are no options for the game (#610)
Number of columns was modified in #598 but it didn't correctly account for the case where a game doesn't have any game-specific options.
This commit is contained in:
@@ -4872,12 +4872,24 @@ namespace overlay::windows {
|
|||||||
// check if empty
|
// check if empty
|
||||||
if (options_count == 0) {
|
if (options_count == 0) {
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
|
|
||||||
|
// option category
|
||||||
|
if (filter != nullptr) {
|
||||||
|
ImGui::TableNextColumn();
|
||||||
|
ImGui::TextDisabled("-");
|
||||||
|
}
|
||||||
|
|
||||||
|
// name of option
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::Indent(INDENT);
|
if (filter == nullptr) {
|
||||||
ImGui::TextDisabled("-");
|
ImGui::Indent(INDENT);
|
||||||
ImGui::Unindent(INDENT);
|
}
|
||||||
ImGui::TableNextColumn();
|
|
||||||
ImGui::TextDisabled("-");
|
ImGui::TextDisabled("-");
|
||||||
|
if (filter == nullptr) {
|
||||||
|
ImGui::Unindent(INDENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
// widget
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TextDisabled("-");
|
ImGui::TextDisabled("-");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user