Advertisement
sindrijo

Overview Tweaks

Jun 16th, 2012
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.00 KB | None | 0 0
  1. < = less than character (XML encoding)
  2. > = greater than character
  3.  
  4. 
 = newline character (Can be inserted into the "post" part of labels to move the preceding text onto the line below. Neato.
  5.  
  6. Notice the semicolons ;
  7.  
  8. The color value can be set like this:
  9. 0xAARRGGBB
  10.  
  11. AA = ALPHA, 00-FF
  12. RR = RED, 00-FF
  13. GG = GREEN, 00-FF
  14. BB = BLLUE, 00-FF
  15.  
  16. <label>
  17.     <part name="pre" value="&lt;color=0xFFFF00FF&gt;["/>
  18.     <part name="state" value="1"/>
  19.     <part name="type" value="pilot name"/>
  20.     <part name="post" value="]&lt;/color&gt;"/>
  21. </label>
  22.  
  23. fontsize can also used:
  24.  
  25. <fontsize=20> text </fontsize>
  26.  
  27. Though of course it must be done like this:
  28.  
  29. <label>
  30.     <part name="pre" value="&lt;fontsize&gt;&lt;color=0xFFFF00FF&gt;["/>
  31.     <part name="state" value="1"/>
  32.     <part name="type" value="pilot name"/>
  33.     <part name="post" value="]&lt;/color&gt;&lt;/fontsize&gt;"/>
  34. </label>
  35.  
  36. I've also tried some other tags like <b>, <u> and <i> and they all seem to work, so I believe all standard XML tags should work...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement