Adressed review comments

This commit is contained in:
aMannus 2022-08-02 13:38:17 +02:00
parent e479cb424b
commit c404d95b67
3 changed files with 11 additions and 11 deletions

View File

@ -20,12 +20,12 @@ void InsertHelpHoverText(const std::string& text) {
}
}
void PaddedSeparator(bool topPadding, bool bottomPadding, float x, float y) {
if (topPadding) {
ImGui::Dummy(ImVec2(x, y));
void PaddedSeparator(bool padTop, bool padBottom, float extraVerticalPadding) {
if (padTop) {
ImGui::Dummy(ImVec2(0.0f, extraVerticalPadding));
}
ImGui::Separator();
if (bottomPadding) {
ImGui::Dummy(ImVec2(x, y));
if (padBottom) {
ImGui::Dummy(ImVec2(0.0f, extraVerticalPadding));
}
}

View File

@ -7,4 +7,4 @@ void SetLastItemHoverText(const std::string& text);
void InsertHelpHoverText(const std::string& text);
void PaddedSeparator(bool topPadding = true, bool bottomPadding = true, float x = 0, float y = 0);
void PaddedSeparator(bool padTop = true, bool padBottom = true, float extraVerticalPadding = 0);

View File

@ -4249,18 +4249,18 @@ void DrawRandoEditor(bool& open) {
ImGui::EndTabItem();
}
if (ImGui::BeginTabItem("Location Logic")) {
if (ImGui::BeginTabItem("Locations")) {
ImGui::PushStyleVar(ImGuiStyleVar_CellPadding, cellPadding);
if (ImGui::BeginTable("tableRandoLocationLogic", 2,
if (ImGui::BeginTable("tableRandoLocations", 2,
ImGuiTableFlags_BordersH | ImGuiTableFlags_BordersV)) {
ImGui::TableSetupColumn("Exclude Item Checks", ImGuiTableColumnFlags_WidthStretch, 200.0f);
ImGui::TableSetupColumn("Exclude Locations", ImGuiTableColumnFlags_WidthStretch, 200.0f);
ImGui::TableSetupColumn(" ", ImGuiTableColumnFlags_WidthStretch, 200.0f);
ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true);
ImGui::TableHeadersRow();
ImGui::PopItemFlag();
ImGui::TableNextRow();
// COLUMN 1 - EXCLUDE ITEM CHECKS
// COLUMN 1 - EXCLUDE LOCATIONS
ImGui::TableNextColumn();
window->DC.CurrLineTextBaseOffset = 0.0f;
SohImGui::EnhancementCheckbox("Deku Theater Mask of Truth", "gRandomizeExcludeDekuTheaterMaskOfTruth");
@ -4278,7 +4278,7 @@ void DrawRandoEditor(bool& open) {
// COLUMN 2 - EXCLUDE LOCATIONS
ImGui::TableNextColumn();
window->DC.CurrLineTextBaseOffset = 0.0f;
ImGui::Text("Coming soon");
ImGui::EndTable();
}