Encapsulate BeginTable for item and check tracker settings windows. (#5778)
This commit is contained in:
@@ -2199,8 +2199,8 @@ void CheckTrackerSettingsWindow::DrawElement() {
|
|||||||
"Checks that you saved the game while having collected.", THEME_COLOR);
|
"Checks that you saved the game while having collected.", THEME_COLOR);
|
||||||
|
|
||||||
ImGui::PopStyleVar(1);
|
ImGui::PopStyleVar(1);
|
||||||
}
|
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckTrackerWindow::InitElement() {
|
void CheckTrackerWindow::InitElement() {
|
||||||
|
|||||||
@@ -1713,7 +1713,7 @@ static std::unordered_map<int32_t, const char*> minimalDisplayTypes = {
|
|||||||
|
|
||||||
void ItemTrackerSettingsWindow::DrawElement() {
|
void ItemTrackerSettingsWindow::DrawElement() {
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, { 8.0f, 8.0f });
|
ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, { 8.0f, 8.0f });
|
||||||
ImGui::BeginTable("itemTrackerSettingsTable", 2, ImGuiTableFlags_BordersH | ImGuiTableFlags_BordersV);
|
if (ImGui::BeginTable("itemTrackerSettingsTable", 2, ImGuiTableFlags_BordersH | ImGuiTableFlags_BordersV)) {
|
||||||
ImGui::TableSetupColumn("General settings", ImGuiTableColumnFlags_WidthStretch, 200.0f);
|
ImGui::TableSetupColumn("General settings", ImGuiTableColumnFlags_WidthStretch, 200.0f);
|
||||||
ImGui::TableSetupColumn("Section settings", ImGuiTableColumnFlags_WidthStretch, 200.0f);
|
ImGui::TableSetupColumn("Section settings", ImGuiTableColumnFlags_WidthStretch, 200.0f);
|
||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
@@ -1967,6 +1967,7 @@ void ItemTrackerSettingsWindow::DrawElement() {
|
|||||||
|
|
||||||
ImGui::PopStyleVar(1);
|
ImGui::PopStyleVar(1);
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ItemTrackerWindow::InitElement() {
|
void ItemTrackerWindow::InitElement() {
|
||||||
|
|||||||
Reference in New Issue
Block a user