mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-23 06:02:08 -05:00
don't filter on right
This commit is contained in:
parent
f818380079
commit
815f5a9101
@ -3795,10 +3795,7 @@ void DrawRandoEditor(bool& open) {
|
|||||||
for (auto areaIt : RandomizerCheckObjects::GetAllRCObjects()) {
|
for (auto areaIt : RandomizerCheckObjects::GetAllRCObjects()) {
|
||||||
bool hasItems = false;
|
bool hasItems = false;
|
||||||
for (auto locationIt : areaIt.second) {
|
for (auto locationIt : areaIt.second) {
|
||||||
if (locationIt.visibleInImgui &&
|
if (locationIt.visibleInImgui && excludedLocations.count(locationIt.rc)) {
|
||||||
excludedLocations.count(locationIt.rc) &&
|
|
||||||
locationSearch.PassFilter(locationIt.rcSpoilerName.c_str())) {
|
|
||||||
|
|
||||||
hasItems = true;
|
hasItems = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -3809,10 +3806,7 @@ void DrawRandoEditor(bool& open) {
|
|||||||
if (ImGui::TreeNode(RandomizerCheckObjects::GetRCAreaName(areaIt.first).c_str())) {
|
if (ImGui::TreeNode(RandomizerCheckObjects::GetRCAreaName(areaIt.first).c_str())) {
|
||||||
for (auto locationIt : areaIt.second) {
|
for (auto locationIt : areaIt.second) {
|
||||||
auto elfound = excludedLocations.find(locationIt.rc);
|
auto elfound = excludedLocations.find(locationIt.rc);
|
||||||
if (locationIt.visibleInImgui &&
|
if (locationIt.visibleInImgui && elfound != excludedLocations.end()) {
|
||||||
elfound != excludedLocations.end() &&
|
|
||||||
locationSearch.PassFilter(locationIt.rcSpoilerName.c_str())) {
|
|
||||||
|
|
||||||
if (ImGui::ArrowButton(std::to_string(locationIt.rc).c_str(), ImGuiDir_Left)) {
|
if (ImGui::ArrowButton(std::to_string(locationIt.rc).c_str(), ImGuiDir_Left)) {
|
||||||
excludedLocations.erase(elfound);
|
excludedLocations.erase(elfound);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user