Scripting

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Scripting

Post 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
The only true logic is that, there is no true logic!
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Scripting

Post 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
Attachments
Old_Courier_Message2_v2.rar
(154.96 KiB) Not downloaded yet
BrigadeScenarioPack.rar
(70.88 KiB) Not downloaded yet
Last edited by born2see on Tue Jul 12, 2011 7:53 am, edited 1 time in total.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Scripting

Post 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
Attachments
Old_Courier_Message2_v2_2011-07-12.rar
(155.03 KiB) Not downloaded yet
Last edited by Davinci on Tue Jul 12, 2011 8:24 am, edited 1 time in total.
The only true logic is that, there is no true logic!
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Scripting

Post 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.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Scripting

Post 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
The only true logic is that, there is no true logic!
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Scripting

Post 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
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Scripting

Post 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?
Attachments
POPUP_Courier.jpg
POPUP_Courier.jpg (18.4 KiB) Viewed 288 times
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Scripting

Post by Davinci »

This should get you started, both buttons added!

The rest is on you.

davinci
Attachments
POPUP_Courier_2011-07-12.rar
(149.41 KiB) Not downloaded yet
The only true logic is that, there is no true logic!
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Scripting

Post 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.
Attachments
Working.jpg
Working.jpg (223.4 KiB) Viewed 288 times
Last edited by born2see on Tue Jul 12, 2011 12:10 pm, edited 1 time in total.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Scripting

Post 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
Last edited by Davinci on Tue Jul 12, 2011 4:59 pm, edited 1 time in total.
The only true logic is that, there is no true logic!
Post Reply