EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Wish List (https://www.eq2interface.com/forums/forumdisplay.php?f=10)
-   -   Suggestion ModeStack (https://www.eq2interface.com/forums/showthread.php?t=12707)

Zonx 04-07-2009 09:12 PM

Suggestion ModeStack
 
Since the discussion about Advanced mode for the Raid window... I've been thinking of how to add something like this for all windows. What I have in mind is to add a menu to WindowOptions, similar to the Frame And Titlebar menu, that uses a stack of pages from the calling window as its DataSource. Selecting an option shows that page and hides all the others, much like a TabbedPane does.

I think all that's needed from a UI standpoint is to add an attribute to TabbedPane... something like ModeSwitch="true".

From a programming standpoint, the open WindowSettings function would need to inspect the top level of the calling window tree for a TabbedPane with this attribute. If found, page names from that TabbedPane would be passed into WindowSettings as options for the Mode menu.

What this would give us is a saveable "Mode" setting that displays the corresponding page in the calling window and hides all others in that page stack. This also results in a Show event on the corresponding mode page, which would allow us to script layout changes on each mode change.

Drumstix42 04-07-2009 11:00 PM

I'm guessing we'd need to be able to save custom variables for this to be possible, so that the window would be in the same state upon logging back in.
Is this currently possible, because I know it was talked about with the implementation of XML uisetting files.

dragowulf 04-07-2009 11:47 PM

Wasn't that one of the reasons why Rothgar converted the uisettings files?

Zonx 04-08-2009 04:45 PM

If implemented properly, this would not require saving any custom variables, only the selected index of the ModeStack. Any custom variables needed to drive each mode could be initialized within the OnShow event of each mode page.

Drumstix42 04-08-2009 06:24 PM

Quote:

Originally Posted by dragowulf (Post 82309)
Wasn't that one of the reasons why Rothgar converted the uisettings files?

I thought so yes.

While I like the idea of "basic" and "advanced" mode being available for a window via right click menu, I'd still also like to see all extra variables being saved. Some windows can have say up to 6 "modes" or in the case of a stat strip -- unlimited customization.

I don't wanna pull away from Zonx's idea though. I just wanted to ask about custom variables.


All times are GMT -5. The time now is 08:27 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI