Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: HLD_Prophecy on September 17, 2016, 04:03:18 pm

Title: How to get Subtitle text to show over a fade-in
Post by: HLD_Prophecy on September 17, 2016, 04:03:18 pm
How can I get subtitle text to show over a fade-in from black? I want the text to show over the black screen, then have the text fade, then have the fade-in occur.

Is this even possible?
Title: Re: How to get Subtitle text to show over a fade-in
Post by: Axem on September 17, 2016, 04:55:22 pm
You'll want to set the 'draw after shading' argument to true. It's the very last optional argument on the sexp, so you'll need to add everything before it as well. :)
Title: Re: How to get Subtitle text to show over a fade-in
Post by: HLD_Prophecy on September 19, 2016, 08:35:10 am
You'll want to set the 'draw after shading' argument to true. It's the very last optional argument on the sexp, so you'll need to add everything before it as well. :)

I found the argument! The problem now is that I have to specify a font. FRED proffers three fonts, but when I pick any one of them, it clears my subtitle text from the field and replaces it with <Invalid>. My text is "Warp Now." Before this, it displayed just fine. Is the period making the trouble?

(Also, I know this is old news on a few different levels, but - thanks for Vassago's Dirge. It's totally awesome.) :D
Title: Re: How to get Subtitle text to show over a fade-in
Post by: Axem on September 19, 2016, 08:40:13 am
That sounds like a rather odd thing... Can you replace the <Invalid> with your original text? Sounds like there might be a bug or some unexpected behavior with that...

(Also, thank you for playing and enjoying it :))
Title: Re: How to get Subtitle text to show over a fade-in
Post by: HLD_Prophecy on September 20, 2016, 11:41:48 am
That sounds like a rather odd thing... Can you replace the <Invalid> with your original text? Sounds like there might be a bug or some unexpected behavior with that...

(Also, thank you for playing and enjoying it :))

I did try replacing <Invalid>... the mission runs fine (I'm using the debug build of course) but no text shows up. Am I being forced to choose a font? What exactly are the three available fonts?
Title: Re: How to get Subtitle text to show over a fade-in
Post by: niffiwan on September 20, 2016, 04:45:01 pm
IIRC the three default fonts are different sizes of Bank Gothic. They're the three retail fonts.

You can add more fonts, in the latest nightlies you should be able to add any TTF font (http://www.hard-light.net/wiki/index.php/Fonts.tbl) to FSO.
Title: Re: How to get Subtitle text to show over a fade-in
Post by: HLD_Prophecy on September 26, 2016, 07:07:01 pm
I dunno why, but I'm not having the problem anymore. Thanks guys.

But now I have these RGB variables, and I'm not sure how to set them to display white. I tried 0, 0, 0, and that makes black. Tried 225, 225, 225, and that makes black too! (I think). My draw-after-shading doesn't make a difference because I can't see black on black anyway. :P
Title: Re: How to get Subtitle text to show over a fade-in
Post by: HLD_Prophecy on September 26, 2016, 08:11:15 pm
I dunno why, but I'm not having the problem anymore. Thanks guys.

But now I have these RGB variables, and I'm not sure how to set them to display white. I tried 0, 0, 0, and that makes black. Tried 225, 225, 225, and that makes black too! (I think). My draw-after-shading doesn't make a difference because I can't see black on black anyway. :P

Wait, nvm, I edited the RGB variables on the wrong subtitle text. I have two subtitle text events in the same mission, and I keep mixing them up. 225, 225, 225 is white. Thanks a ton, it all works now!
Title: Re: How to get Subtitle text to show over a fade-in
Post by: Axem on September 26, 2016, 08:42:09 pm
Glad to hear you've worked it out! :)

(Actually its 255 255 255, but 225 is pretty close anyway)