Page 3 of 4

Re: Scripting

Posted: Tue Jul 12, 2011 7:30 am
by Davinci
OK, here is how you only have to press the Hud button once.

I'm not sure why this works, but it works, so after adding \ removing \ guessing - and more guessing I finally came up with this combination of functions.

NEW,Courier,POPUP_Courier.dds,,,1,1,1,768,768,1024,1024,,,
COMMAND,,,,,,,,,,,,,,togglehud
COMMAND,,,,,,,,,,,,,,togglehud
BASEFONT,,,MsgFont-L-20,20,20,,,,,,,,,
CANBUTTON,,,, Exit ,,720,706,39,44,720,706,,,close
CANBUTTON,,,, Hud ,,770,706,39,44,770,706,,,togglehud
COMMAND,,,, Hud ,,770,705,39,44,770,705,,,togglehud
FORMAT,,,,,,75,60,630,650,0,0,,,&formatted:$param2
SCROLL,,,, Up ,-1,737,8,17,18,737,8,,,&formatted
SCROLL,,,, Down,1,738,675,17,19,738,675,,,&formatted
THUMB,,,,,,0,0,0,0,0,0,,,&formatted

davinci

Re: Scripting

Posted: Tue Jul 12, 2011 7:49 am
by born2see
OK I give up. When I start the scenario, the message screen loads. When I click the exit button, the screen closes but the hud doesn't come back. I'm sure I'm doing this wrong.

I'm uploading the mod and the scenario pack I use to test. I use the first scenario.

Thanks

Re: Scripting

Posted: Tue Jul 12, 2011 8:23 am
by Davinci
I cannot test the scenario - I deleted some of my game files pertaining to them - never played any before.

Tested in Open Play (i.e...Sandbox Thing)

Fixed!

Press Hud - Press Exit. In this order!

davinci

Re: Scripting

Posted: Tue Jul 12, 2011 8:34 am
by born2see
Press Hud - Press Exit. In this order!
That works! Thanks. Needs some work on my end to see the Exit and Hud buttons but that's the easy part.

Re: Scripting

Posted: Tue Jul 12, 2011 8:39 am
by Davinci
Press Hud - Press Exit. In this order!
That works! Thanks. Needs some work on my end to see the Exit and Hud buttons but that's the easy part.
Why not switch to the newer one - and then adjust the coordinates.

davinci

Re: Scripting

Posted: Tue Jul 12, 2011 8:56 am
by born2see
Why not switch to the newer one - and then adjust the coordinates.
If you talking about the one you just posted, that was the one I used. Didn't realize that was all I needed to do. I'll post a screenshot when I'm done

Re: Scripting

Posted: Tue Jul 12, 2011 9:07 am
by born2see
Why not switch to the newer one - and then adjust the coordinates
"There was a time, not too long ago, when I thought I knew something. That time has passed me by"

If that's not a famous quote, it should be.

Shouldn't the graphic have the Hud and Exit buttons on it for them to be drawn?

Re: Scripting

Posted: Tue Jul 12, 2011 9:50 am
by Davinci
This should get you started, both buttons added!

The rest is on you.

davinci

Re: Scripting

Posted: Tue Jul 12, 2011 12:04 pm
by born2see
The rest is on you.
About the most unintuitive process I've had to go through in a while. But I got it. When I first started neither of the buttons would show up. I had to increase the size of the image in the gscreens file, Row 4, Column I (but not the image itself) before they would show up. I have a little more tweaking to do with the scroll bars and I'll post it for you to incorporate in the mod.

Thanks for all the help.

If you'd like anything changed, let me know. I think the Message and the font look REALLY good.

Re: Scripting

Posted: Tue Jul 12, 2011 4:15 pm
by Davinci
When I first started neither of the buttons would show up. I had to increase the size of the image in the gscreens file.

If you'd like anything changed, let me know. I think the Message and the font look REALLY good.
Since the buttons do not change colors such as red when you click them, you can enter a 0 0 1024 1024.

No, don't change anything that you don't like, that is your mod, I'm sticking with the larger font that I posted in the other topic.
............................................................
............................................................
EDIT Post
681,4 up
681,624 down
714,601 exit
762,601 hud

davinci