circonian |
08/26/15 04:56 PM |
Quote:
Originally Posted by merlight
(Post 22960)
It appears that InvTabSwitch in FilterIt_MenuBars.lua gets called twice per click on AGS filter, always with ITEMFILTERTYPE_ALL.
|
Yeah I noticed that. That function is fired from the games menu bar button callbacks. Since AGS has its own custom menu bar I was actually confused as to why it was firing at all. AGS must be forcing button clicks on the hidden menu bar to do the sorting and clicking it more than once?
Quote:
Originally Posted by merlight
(Post 22960)
How about removing the :Clear from the else (filter==ALL) branch? I think clearing is only necessary when you're hiding the box.
|
That looks like it would work. It looks like the extra :Clear() call is something left over from earlier code when it functioned differently & I was checking to see if a subMenuBar (newMenuBar) existed. I must have just not noticed & moved it up into the else statement when I rewrote it.
|