Jump to content
Smart Games

Structured Text with Variables?

Recommended Posts

I would like to create a Startscreen with black background like this:

 

     Mission Name  //text given by first variable 

 

       Made by Me //text given by second variable

 

But I am not able to create two titletexts at the same time.

So i tried to use titletext with structured text:

 

titleText [_var1 <br/>_var2,"PLAIN",-1,false,true]; //not working

 

 

Any Ideas?

 

Share this post


Link to post
Share on other sites

I tried something like that:

 

_var1 = "HI";

_var2 = "You";

 

titleText [_var1<br/>_var2, "PLAIN", -1, true, true];

 

It's not working

Share this post


Link to post
Share on other sites

titleText [format ["%1<br/>%2",_var1,_var2], "PLAIN",-1, true, true];

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Soon man,

MMF_fnc_intro:    this function plays a customizable intro sequence
example:    [0, "Mission Maker Framework", "Version 0002", "DEMO", 0] call MMF_fnc_intro;
_playIntro        	determine type of intro    
_missionName        	"anything"
_missionAuthor        	"anything"
_missionVersion        	"anything"
_duration        0-10 see function

Can open the arsenal, black screen with text, text over screen, etc.

  • Like 1

Share this post


Link to post
Share on other sites
On 10/22/2019 at 12:02 PM, pierremgi said:

titleText [format ["%1<br/>%2",_var1,_var2], "PLAIN",-1, true, true];

You are my hero! Works like a charm, for anyone who is interested in knowing the resolution of this Question. Thank you PierreMGI.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×