DX Script

Ok, this is what I want, when an object is clicked on it, it makes a group of objects visible. So on the clickable object I put:

Sub Object_OnClick

gmenu.visible = True

End Sub

gmenu ONE of the objects I want visible on click. But it won't appear! Its on screen, but in its script I put that on Script Enter "visible = false". That should change when I click on the other object though right?



2,353 views 5 replies
Reply #1 Top
as far as I know there is no onclick event yet. You need to use :

Sub Object_OnStateChange(state)
if state = "Mouse up" then
gmenu.visible=True
end if
end sub
Reply #2 Top
Are there any in depth docs on the DX object model? I want to cause the timer of one object to fire from another object. Is this possible?



Powered by SkinBrowser!
Reply #3 Top
nm on this I found a link to the DX pdf file in of all places the news.stardock.com DX group.. I guess things have picked up there, last time I visited there hadn't been a new post in the DX groups in months and I felt it would be a bit of a waste to ask an empty forum a question..



Powered by SkinBrowser!
Reply #4 Top
There are several people that lurk there just to check, even when there are no posts.
Reply #5 Top
Stealth870: I don't think you really need to script this. The onClick type messages can be sent via the traditional object properties, in the states - messages tab, if I am not mistaken. You would just create a 'Mouse Down' state, then go to the messages tab and select the object from the dropdown you want to alert, and then select 'show' from the available states.

I'm doing this from memory so bear with me. Have only been monkeying with it for a week or two.