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. |
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. |
Yeah, one of those things that tends to fall off the radar after two years. :(
|
All times are GMT -5. The time now is 03:04 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI