EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 01-10-2006, 04:04 PM
Nitefang Nitefang is offline
A Griffon
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 124
Default 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 !
Reply With Quote
  #2  
Unread 01-10-2006, 05:05 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

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.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #3  
Unread 01-10-2006, 09:30 PM
Nitefang Nitefang is offline
A Griffon
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 124
Default Thanks :)

Many Thanks DB - you rock !

I'll have something to show off soon lol
Reply With Quote
  #4  
Unread 01-25-2006, 01:09 PM
Nitefang Nitefang is offline
A Griffon
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 124
Default 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
Reply With Quote
  #5  
Unread 01-25-2006, 09:30 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

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.
__________________
If it ain't broke, it needs more features!
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:46 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI