Global Vars and Tab Names

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
agitated
GamingTools Subscriber
Posts: 30
Joined: Sat Apr 28, 2007 5:05 pm

Global Vars and Tab Names

Post by agitated » Fri Feb 08, 2008 4:08 pm

A really stupid question first:

If I have a script in the uplink that defines several (global) vars, should those vars be available to all sessions? Or are they only global to all the scripts running in the uplink but not necessarily to scripts in other sessions?

And second:

Is there a way to have dynamic Tab names? When I try to replace <Tab Name='Tab1'> with <Tab Name="${tabName}"> or <Tab Name=${tabName}> I get quoting errors.

Is this because there would then be no way to identify the child element?

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Fri Feb 08, 2008 5:28 pm

Global variables are global to whatever session they were created in -- a global variable in one session will not be available to other sessions, and the uplink is no different from a session.

LavishScript variables cannot be used in LavishGUI XML except where expressly supported -- such as in text elements, and so on. Names of elements, positions, etc cannot be variable in this fashion.

Anything else you want to do dynamically with the UI needs to be scripted. Tabs can be added, removed or renamed at runtime. lguitab:Rename[new name] will rename a tab.

This topic in particular is quickly going to get more involved than I have time to continue explaining to you daily -- not that I mind technical questions, but a lot of these questions can be successfully fielded by the community. Blazer and Karye2 from the ISXEQ2/ISXVG communities for example can help you out with dynamic UI stuff including tabs (and you can probably find examples of dynamic tabs in their EQ2 and Vanguard bots). You can find them idling on IRC most of the time in #isxeq2 and #isxvg on irc.lavishsoft.com. Most questions can also be answered by some of the 100+ people in #isxwow on irc.lavishsoft.com as well, though I'm not sure anyone there has done any real dynamic UI. I'd recommend hanging out in #isxwow for general Inner Space, LavishScript, LavishGUI, LavishNav, etc questions, as there's a good chance someone there will have an answer for you immediately and prevent you from having to wait around for a response on the forums, which sometimes takes days.

agitated
GamingTools Subscriber
Posts: 30
Joined: Sat Apr 28, 2007 5:05 pm

Post by agitated » Fri Feb 08, 2008 6:05 pm

keep explaining to you daily
That hurt a little, but I'm ok... :D

It's great you respond to me but I don't expect *you* to respond, but anyone who visits these forums.

I just appreciate all the handholding you've already done. If you don't have the time to get into something, no worries man :wink: Someone else can answer for a change or I'll get on IRC and be a nuisance there instead ha!

~a

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Sat Feb 09, 2008 8:00 am

Well, nobody really reads the lavishsoft.com forums unless something is broken, so if you're looking for a range of Inner Space savvy readers, you're much better off posting at isxgames.com or isxwow.net. And don't take my last post personally -- it's perfectly fine for you to have questions daily, just that you're getting into more complex things that take longer to explain.

Post Reply