View Single Post
07/21/15, 03:54 PM   #16
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Actually forget that last post....I have a better idea.

How about we create a settings menu panel just for the menu bars. Register the panel with LibAddonMenu just like its an addon and only have 1 setting, which menu bars to display. Each addon could call something like:
Lua Code:
  1. lib:RegisterTradeHouseSellMenuBars(string displayText, function:nillable callback)
to register that it has menu bars to be shown for the trade house sell filters and the user chooses in the settings menu which one they want, but the setting would be in its own panel and then we don't all need to create our own ON/OFF settings. This would eliminate the problem of needing to know which addons are turned ON/OFF and would prevent multiple menu bars from getting shown.

The callback would be nillable and any addon wanting the default menu bars could just pass nill for the callback and then the library could just handle that code on its own.

FilterIt does not have filters for the browse category in the trade house. I know AGS does, do any other addons? While were at it we might as well add a register function for that as well. They should be separate registrations so that, for example, A user could choose to display the FilterIt menu bars for the sell tab, but still have the AGS filters on the browse tab.

Last edited by circonian : 07/21/15 at 03:56 PM.
  Reply With Quote