Author Topic: A "gui selection" ui.  (Read 974 times)

Sounds confusing doesn't it?

So herez problem:
I have at least 6 keys bound to the gui's for some of the different add-on's I have installed.
Every time I install a new one, I have to find a new free button for a gui that I'm probably only going to use once.

Solution:
A single gui that has a list of all of the other addon-related guis installed.  Double-click a name to close the gui selector and open the addon gui.

I suggest adding a way to select which guis show up on the list.  And a way to name them.

This is a neat idea, I don't think I'm capable enough to do it, though.

The difficult part is getting the list of GUI's on the GUI. So if anyone knows a way, please post here.
« Last Edit: April 07, 2013, 05:50:12 AM by Honorabl3 »

The difficult part is getting the list of GUI's on the GUI. So if anyone knows a way, please post here.
Look through the GuiGroup and check for stuff that isn't default?
However that would not work well, because what if the add-on has multiple guis and you aren't supposed to see gui x before you did stuff in gui y?

THis would only work if the gui add-ons add a line of code to register their guis for this

I didn't know about GUIGroup, thank you. And good point with the multiple GUI thing. I'll try to prevent that, but I don't know if I will succeed.

I didn't know about GUIGroup, thank you. And good point with the multiple GUI thing. I'll try to prevent that, but I don't know if I will succeed.
There is no way you can do that
You should provide a function for gui add-ons to use to add it to the list

You should provide a function for gui add-ons to use to add it to the list
I figured another way. I can just use the $remapCount stuff.

I figured another way. I can just use the $remapCount stuff.
Yes that seems like a better idea

But how would you figure out what is a keybind to open a gui and what is a keybind to do something else?

That would be the only problem, but I will just include everything after $remapCmd[80] . As that seems to be anything user made.

And, here it is!

The "c" next to the "x" clears the list, then loads it.

NOTE: Some of the stuff listed is not a GUI, so try not to click it all.
Download: Here!

Another Note: Anyone is welcome to better-filter the GUI List. (and post a download link here)


Also, let me know if you find any errors.