EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Syntax Help (https://www.eq2interface.com/forums/showthread.php?t=5392)

Nitefang 01-10-2006 04:04 PM

Syntax Help
 
hey all - I'm working on an idea and cant get my button script to work

what I'm wanting to do, is create a button that opens a custom window to a specific tab in that window- ideally, I'd like several buttons, each one opening the same window to a different tabbed page.... I've played around with the "ActiveTab" setting a bit - but my coding knowledge is very limited..

any help would be appreciated !

Deathbane27 01-10-2006 05:05 PM

OnPress="
(Parent to MAINHUD level).(WindowName).visible=true
(Parent to MAINHUD level).(WindowName).(YourTabPane).ActiveTab=(X)"

Now, there will be a TabbedPane object, and it will have DataSource="(YourTabSource)". Within the TabSource, you'll have all your tabs listed. Each are numbered, starting with 0.

So if YourTabSource had Stats, Details, Factions, and Options, in that order,

ActiveTab=0 would open Stats
ActiveTab=1 would open Details

etc.

Nitefang 01-10-2006 09:30 PM

Thanks :)
 
Many Thanks DB - you rock !

I'll have something to show off soon lol

Nitefang 01-25-2006 01:09 PM

More lol
 
ok, got another scripting question to throw out - thought I'd add it to my previous thread since its the same general subject.

I have a sliderbar linked with a textbox that displays numbers 0.000 - 1.000 as you slide the bar - easy enough... what I'm wanting to do is make the number display change to text upon hitting a given number...

so, when the textbox displays "0.000", its replaced by "sampletext1" and when it reads "1.000" you get "sampletext2" in its place....

I cant make this work - was up till 3am messing with it - help me get some sleep lol....

Thanks for any insight

Deathbane27 01-25-2006 09:30 PM

Okay, after all the slider -> text script...

Parent.Button1.Activated=((Parent.TheText.LocalText)==('1.000'))
Parent.Button2.Activated=((Parent.TheText.LocalText)==('2.000'))

<Button1 OnActivate="Activated=false Parent.TheText.LocalText=SampleText1" ......>

<Button2 OnActivate="Activated=false Parent.TheText.LocalText=SampleText2" ......>

Etc.


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

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