• Hail Guest!
    We're looking for Community Content Contribuitors to Stratics. If you would like to write articles, fan fiction, do guild or shard event recaps, it's simple. Find out how in this thread: Community Contributions
  • Greetings Guest, Having Login Issues? Check this thread!
  • Hail Guest!,
    Please take a moment to read this post reminding you all of the importance of Account Security.
  • Hail Guest!
    Please read the new announcement concerning the upcoming addition to Stratics. You can find the announcement Here!

[EC]Filtering object handle problem

BearCorpse

Adventurer
@Bleak
These lines of Objecthandle.lua in default UI work wrong. line 102-108
for cf in wstring.gmatch(ObjectHandleWindow.CurrentFilter, L"[^|]+") do
if (wstring.find(wstring.lower(name), wstring.lower(cf))) then
found = true​
else
found = false​
end​
end
It allows to show only last filter.I think that "break" is needed for after "found = true".
like this.
for cf in wstring.gmatch(ObjectHandleWindow.CurrentFilter, L"[^|]+") do
if (wstring.find(wstring.lower(name), wstring.lower(cf))) then
found = true
break​
else
found = false​
end​
end
 
Top