This repository was archived by the owner on Mar 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTextTool.html
More file actions
41 lines (40 loc) · 2.29 KB
/
TextTool.html
File metadata and controls
41 lines (40 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
TextTool is a special <a href="http://berserk-games.com/knowledgebase/object">Object</a> type for creating Text labels in the scene. Once you have a reference to an <a href="http://berserk-games.com/knowledgebase/object">Object</a> you can call these functions like this: <font face="monospace">obj.TextTool.setFontSize()</font>.
<a class="anchor" name="Functions"></a>
<table width="100%">
<caption><strong><h3>Functions</h3></strong></caption>
<tr>
<th class="table_column_rv">Return Value</th>
<th class="table_column_fn">Function Name</th>
<th>Description</th>
</tr>
<tr>
<td><font face="monospace"><a href="http://berserk-games.com/knowledgebase/color">Color</a></font></td>
<td><font face="monospace">getFontColor()</font></td>
<td><a class="anchor" name="getFontColor"></a>Returns the current font color.</td>
</tr>
<tr>
<td><font face="monospace">int</font></td>
<td><font face="monospace">getFontSize()</font></td>
<td><a class="anchor" name="getFontSize()"></a>Returns the current font size.</td>
</tr>
<tr>
<td><font face="monospace">string</font></td>
<td><font face="monospace">getValue()</font></td>
<td><a class="anchor" name="getValue()"></a>Returns the current text. This is the same as calling <a href="http://berserk-games.com/knowledgebase/object/#getValue"><font face="monospace">getValue()</font><a/> on the <a href="http://berserk-games.com/knowledgebase/object">Object</a> reference.</td>
</tr>
<tr>
<td><font face="monospace">bool</font></td>
<td><font face="monospace">setFontColor(<a href="http://berserk-games.com/knowledgebase/color">Color</a>)</font></td>
<td><a class="anchor" name="setFontColor"></a>Sets the current font color.</td>
</tr>
<tr>
<td><font face="monospace">bool</font></td>
<td><font face="monospace">setFontSize(int font_size)</font></td>
<td><a class="anchor" name="setFontSize"></a>Sets the current font size.</td>
</tr>
<tr>
<td><font face="monospace">bool</font></td>
<td><font face="monospace">setValue(string text)</font></td>
<td><a class="anchor" name="setValue"></a>Sets the current text. This is the same as calling <a href="http://berserk-games.com/knowledgebase/object/#setValue"><font face="monospace">setValue()</font></a> on the <a href="http://berserk-games.com/knowledgebase/object">Object</a> reference.</td>
</tr>
</table>