ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   Change AddOn Settings Order? (https://www.esoui.com/forums/showthread.php?t=1197)

Selrach 04/27/14 02:40 AM

Change AddOn Settings Order?
 
As in the title, I'm wondering if there's a way to change the order for the AddOn's settings. To give an example:

You see how the addons show up in no particular order? I thought it might be order of install/registering in the game client, but that doesn't seem right to me.. it may be something really simple, but I can't figure out what order they're in, or if there's a way to change it. Considering the growth of my addon list, I'd like to be able to arrange them alphabetically or.. well something other than no apparent rhyme or reason anyways.
Thanks in advance for any help with this!

Garkin 04/27/14 07:03 AM

Quote:

Originally Posted by Selrach (Post 6069)
As in the title, I'm wondering if there's a way to change the order for the AddOn's settings. To give an example:
[IMG]
You see how the addons show up in no particular order? I thought it might be order of install/registering in the game client, but that doesn't seem right to me.. it may be something really simple, but I can't figure out what order they're in, or if there's a way to change it. Considering the growth of my addon list, I'd like to be able to arrange them alphabetically or.. well something other than no apparent rhyme or reason anyways.
Thanks in advance for any help with this!

Its in order of loading addons, I think there is no easy way to sort items in settings menu.

Selrach 04/27/14 07:31 AM

Quote:

Originally Posted by Garkin (Post 6084)
Its in order of loading addons, I think there is no easy way to sort items in settings menu.

Well, that bytes. :(

ins 04/27/14 08:35 AM

I would guess LAM could sort it, since it is responsible for adding most of them to that menu.

Seerah 04/27/14 10:38 AM

LAM could, but that would require waiting for all addons to register with it first and create their panels, then sort their order, then actually create the panels and let the addons set up their options.

Not impossible, but it would break a whole lot of addons if they weren't updated for the change.

Selrach 04/27/14 08:09 PM

LAM being LibAddonMenu?
Sounds like it'd cause more problems than it'd solve to even try. Ah well.
Maybe someone will come out with a genius revelation in the future, guess I'll just wait and see. =3

Edit: Also, thanks for responding and informing me about it all! :)

Seerah 04/27/14 08:35 PM

NP :) LAM will be getting a rewrite sometime over the summer, as I'll have more free time then.

ins 04/27/14 11:24 PM

Speaking of LAM; Do you know a way to remove the Panels after they are added to the menu? I haven't found a table that list them, only their "XML Equivalent". I added my own panel (to use Optionswindow) through a sort of hack (bypassing the use of LAM) but would like to remove it when not displaying the menu.

Seerah 04/28/14 03:25 PM

Adding something to the settings menu automatically creates a panel to go with it. Each panel has an ID. Clicking an entry in the menu tells the client which panel to display, based on its ID. This ID is what is returned in the panelID variable from LAM:CreatePanel(), for example.

Now... As for "remove it", I don't know what you're saying.

Vicster0 04/29/14 05:23 AM

I will be releasing the beta for an addon (probably tonight) that will do exactly what the OP has requested and more. The beta will only handle alphabetical order for now but I have plans to add support for manually sorting the menu options however you'd like, hiding options you don't want, and having all of this persist from session to session.

Also, in this version I'm including the option to remove color from the settings titles as I personally find this quite annoying.

Be on the lookout for OptionsRestacker - probably in the utilities section. :)

ins 04/29/14 05:35 AM

Intriguing :) cant wait to try it out.

Selrach 04/29/14 05:36 AM

I'll be looking forward to checking that out. =)

Vicster0 04/29/14 09:45 PM

http://www.esoui.com/downloads/info3...Restacker.html

Well, there it is. :)

So, I decided to finish up a VERY ROUGH draft of the extra features I mentioned previously instead of just posting a super super beta. So, the edges are very rough.. It probably looks quite thrown together... And there may be a few really messy areas and some weird bugs... but it needs to be worked on more.

The code is in much need of some comments (unusual for me, but this was thrown together..) but if anyone would like to help advance this just PM me or msg me on IRC and we can talk.

Anyway, read through the details page for everything (my tired mind remembered to add to it) but the summary is: Alphabetical sorting and customized sorting both with option color removal.

Let me know what you think! Good night!


All times are GMT -6. The time now is 12:09 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI