View Single Post
07/22/15, 03:31 PM   #23
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by circonian View Post
This may be trivial, but by leaving those out it prevents code from knowing which btn was previously selected & returning to it. By saving the current filter, then reloading it, & then calling ZO_MenuBar_SelectDescriptor(inventory.filterBar, inventory.currentFilter) It returns the menu bar to its previously selected descriptor.
Well nevermind on that one, I guess that really doesn't matter because it gets reset in the apply layout
Lua Code:
  1. function ZO_InventoryManager:ApplyBackpackLayout(layoutData)
  2.    ...
  3.     ZO_MenuBar_SelectDescriptor(self.inventories[INVENTORY_BACKPACK].filterBar, ITEMFILTERTYPE_ALL)
  Reply With Quote