EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 04-21-2007, 12:45 AM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default The difference between Press and Activated

Arrg, I've just spent the last day trying to get script buttons to do what I tell them! I don't know if this has been discussed or everyone else just sort of figured it out as they went, but it was pretty frustrating. Here's what I've gotten so far.

If you want to press a button from a script it will always press.

Parent.ButtonName.Press = true
Parent.ButtonName.Press = false
Parent.ButtonName.Press = 1
Parent.ButtonName.Press = 0

These commands all press the button-- the button doesn't care.

This was causing all kinds of problems for me since I was trying to make one button press and another one not press like:

Parent.CopyURIToTabPage1.Press=Parent.TabPage1.Visible
Parent.CopyURIToTabPage2.Press=Parent.TabPage2.Visible

But it would always press both buttons no matter what. I ended up switching some of the script buttons to work with Activated instead like:

Parent.CopyURIToTabPage1.Activated=Parent.TabPage1.Visible
Parent.CopyURIToTabPage2.Activated=Parent.TabPage2.Visible

Then within the button you can use an OnActivate script and then set Activated=false at the end of the script.

Hopefully someone will prevent a few hours of aggravation by reading this.
Reply With Quote
  #2  
Unread 04-22-2007, 06:38 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

hehe yea, small things like that almost never gets posted.

I would suggest any new person getting into UI modding to download many UIs and look to see how they are done and do thing. Doing that will save one hrs of trial and error work.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #3  
Unread 04-23-2007, 08:35 AM
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

Yeah, one of those things that tends to fall off the radar after two years.
__________________
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:59 PM.


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