Jump to content
Sign in to follow this  
Captinlarry

Adding an Image to a CutText

Recommended Posts

[] spawn { 
 
101 cutText ["Image: ", image "image\SWLogo.paa"]; 
101 cutFadeOut 7.0;  
sleep 8; 
 
101 cutText ["<t size='3.0' color='#008AB8' font='EtelkaMonospacePro'>Believe in yourself or no one else will.</t>", "BLACK", 3.0,true,true];  
101 cutFadeOut 7.0; 
sleep 8; 
};

trying to add an Image to my cuttext per This Link

Share this post


Link to post
Share on other sites

The composeText command from the example was important and you didn't put it. It combines the inputs together into 1 Structured Text value. You will also need to supply all 5 parameters because you need to have true in the last parameter to show Structured Text. Right now the scripting engine only sees 1 parameter that is type Text:

101 cutText ["Image: ", image "image\SWLogo.paa"];
^   ^       ^
1   2       3
1. layer
2. command
3. compiled to text

layer cutText [text] //not valid syntax
//Should be:
101 cutText [composeText ["Image: ", image "image\SWLogo.paa"], type, speed, showInMap, isStructuredText]; <-- //Last parameter should be true

Specifically you are using cutText#Syntax_2

  • Like 2

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
Sign in to follow this  

×