Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tools/euryopa/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static char gAutomaticBackupLastSnapshot[1024];
static ImGuiTextFilter gEditorModelFilter;
static ImGuiTextFilter gEditorTxdFilter;
static bool gEditorHighlightMatches;
static bool gEditorFilterByIpl;

static ImGuiTextFilter gBrowserCategoryFilter;
static ImGuiTextFilter gBrowserIdeFilter;
Expand Down Expand Up @@ -5620,10 +5621,14 @@ uiEditorWindow(void)
if(ImGui::Button("Clear##Txd"))
gEditorTxdFilter.Clear();
ImGui::Checkbox("Highlight matches", &gEditorHighlightMatches);
ImGui::SameLine();
ImGui::Checkbox("Filter by IPL visibility", &gEditorFilterByIpl);
for(p = instances.first; p; p = p->next){
inst = (ObjectInst*)p->item;
obj = GetObjectDef(inst->m_objectId);
txd = GetTxdDef(obj->m_txdSlot);
if(gEditorFilterByIpl && !IsInstVisibleByIplFilter(inst))
continue;
if(gEditorModelFilter.PassFilter(obj->m_name) &&
gEditorTxdFilter.PassFilter(txd->name)){
int numPops = 0;
Expand Down
Loading