EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   The difference between Press and Activated (https://www.eq2interface.com/forums/showthread.php?t=8243)

Othesus 04-21-2007 12:45 AM

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.

Landiin 04-22-2007 06:38 PM

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.

Deathbane27 04-23-2007 08:35 AM

Yeah, one of those things that tends to fall off the radar after two years. :(


All times are GMT -5. The time now is 01:07 AM.

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