User Tools

Site Tools


4rpl:commands:setunituitext

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:setunituitext [2024/04/13 18:17] – [Description] LF mentioned Vertu4rpl:commands:setunituitext [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 20: Line 20:
  
 :NOTE:\\ :NOTE:\\
-Some formats are supported in the UI text such as <color> though will only work if closed.\\ +Many formats are supported in the UI text such as <nowiki><color></nowiki> though they will only work if closed.\\ 
-To create a line break, add a line break via pressing ENTER to create a new line (see 2nd example) or concat [[4rpl:commands:lf|LF]] (3rd example).\\ +Line break formats are one of the few which will fail. To create a line break, add a line break via pressing ENTER to create a new line (see 2nd example) or concat [[4rpl:commands:lf|LF]] (3rd example).\\ 
-<br>, \n, and [[4rpl:commands:cr|CR]] will fail to create a line break.+<br>, \n, and [[4rpl:commands:cr|CR]] will fail to create a line break.\\
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
-SetUnitUIText(self 0 "Sample Text")+SetUnitUIText(self 0 "<color=#FFFF00>Sample Colored Text</color>")
 </code> </code>
 <code 4rpl> <code 4rpl>
Line 31: Line 31:
 New line text New line text
 Third line text") Third line text")
 +</code>
 +<code 4rpl>
 +SetUnitUIText(self 0 Concat3("Sample Text" LF "New line text"))
 </code> </code>
  
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/setunituitext.1713032227.txt.gz · Last modified: 2025/02/14 14:56 (external edit)