<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=FreeFormLabel</id>
	<title>FreeFormLabel - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.crumbledworld.com/index.php?action=history&amp;feed=atom&amp;title=FreeFormLabel"/>
	<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=FreeFormLabel&amp;action=history"/>
	<updated>2026-04-22T00:28:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.4</generator>
	<entry>
		<id>https://wiki.crumbledworld.com/index.php?title=FreeFormLabel&amp;diff=69&amp;oldid=prev</id>
		<title>Anders: Created page with &quot;{{:FreeFormLabelExampleCode}}  ==Inheritance== Panel  ==Constructor== {| class=&quot;wikitable&quot;  !|function !|description |- |Label(PanelSizeType sizeType, Vec2 position, string text, float textHeight) | |- |Label(PanelSizeType sizeType, Vec2 position, string text, float textHeight, Vec3 textColor) | |- |Label(PanelSizeType sizeType, Vec2 position, string text, float textHeight, Vec4 textColor) | |- |Label(PanelSizeType sizeType, Vec2...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.crumbledworld.com/index.php?title=FreeFormLabel&amp;diff=69&amp;oldid=prev"/>
		<updated>2025-07-05T13:42:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{:FreeFormLabelExampleCode}}  ==Inheritance== &lt;a href=&quot;/index.php/Panel&quot; title=&quot;Panel&quot;&gt;Panel&lt;/a&gt;  ==Constructor== {| class=&amp;quot;wikitable&amp;quot;  !|function !|description |- |Label(&lt;a href=&quot;/index.php/PanelSizeType&quot; title=&quot;PanelSizeType&quot;&gt;PanelSizeType&lt;/a&gt; sizeType, &lt;a href=&quot;/index.php/Vec2&quot; title=&quot;Vec2&quot;&gt;Vec2&lt;/a&gt; position, string text, float textHeight) | |- |Label(&lt;a href=&quot;/index.php/PanelSizeType&quot; title=&quot;PanelSizeType&quot;&gt;PanelSizeType&lt;/a&gt; sizeType, &lt;a href=&quot;/index.php/Vec2&quot; title=&quot;Vec2&quot;&gt;Vec2&lt;/a&gt; position, string text, float textHeight, &lt;a href=&quot;/index.php/Vec3&quot; title=&quot;Vec3&quot;&gt;Vec3&lt;/a&gt; textColor) | |- |Label(&lt;a href=&quot;/index.php/PanelSizeType&quot; title=&quot;PanelSizeType&quot;&gt;PanelSizeType&lt;/a&gt; sizeType, &lt;a href=&quot;/index.php/Vec2&quot; title=&quot;Vec2&quot;&gt;Vec2&lt;/a&gt; position, string text, float textHeight, &lt;a href=&quot;/index.php/Vec4&quot; title=&quot;Vec4&quot;&gt;Vec4&lt;/a&gt; textColor) | |- |Label(&lt;a href=&quot;/index.php/PanelSizeType&quot; title=&quot;PanelSizeType&quot;&gt;PanelSizeType&lt;/a&gt; sizeType, Vec2...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{:FreeFormLabelExampleCode}}&lt;br /&gt;
&lt;br /&gt;
==Inheritance==&lt;br /&gt;
[[Panel]]&lt;br /&gt;
&lt;br /&gt;
==Constructor==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|Label([[PanelSizeType]] sizeType, [[Vec2]] position, string text, float textHeight)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Label([[PanelSizeType]] sizeType, [[Vec2]] position, string text, float textHeight, [[Vec3]] textColor)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Label([[PanelSizeType]] sizeType, [[Vec2]] position, string text, float textHeight, [[Vec4]] textColor)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Label([[PanelSizeType]] sizeType, [[Vec2]] position, string text, float textHeight, [[Vec3]] textColor, [[Alignment]] textAlignment)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Label([[PanelSizeType]] sizeType, [[Vec2]] position, string text, float textHeight, [[Vec4]] textColor, [[Alignment]] textAlignment)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Functions==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!|return&lt;br /&gt;
!|function&lt;br /&gt;
!|description&lt;br /&gt;
|-&lt;br /&gt;
|[[Text]]&lt;br /&gt;
|[[FreeFormLabel:getText()|getText]]()&lt;br /&gt;
|Get text.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec4]]&lt;br /&gt;
|[[FreeFormLabel:getTextColor()|getTextColor]]()&lt;br /&gt;
|Get text.&lt;br /&gt;
|-&lt;br /&gt;
|float&lt;br /&gt;
|[[FreeFormLabel:getTextHeight()|getTextHeight]]()&lt;br /&gt;
|Get text.&lt;br /&gt;
|-&lt;br /&gt;
|[[Alignment]]&lt;br /&gt;
|[[FreeFormLabel:getAlignment()|getAlignment]]()&lt;br /&gt;
|Get text.&lt;br /&gt;
|-&lt;br /&gt;
|[[Vec2]]&lt;br /&gt;
|[[FreeFormLabel:getTextSizeInPixel()|getTextSizeInPixel]]()&lt;br /&gt;
|Get the recomended size based on current text and text height.&lt;br /&gt;
Return the size in pixel.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[FreeFormLabel:setText(string text)|setText]]([[string]] text)&lt;br /&gt;
|Set text.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[FreeFormLabel:setText(Text text)|setText]]([[Text]] text)&lt;br /&gt;
|Set text.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[FreeFormLabel:setTextHeight(float height)|setTextHeight]](float height)&lt;br /&gt;
|Set text height. if value larger larger then 1.0 height represent height in pixel, bellow 1.0 height represent percent of screen height.&lt;br /&gt;
Example 0.1 is 10% of screen resolution and 10 means the text is 10px high.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[FreeFormLabel:setTextAlignment(Alignment align)|setTextAlignment]]([[Alignment]] align)&lt;br /&gt;
|Set alignment.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[FreeFormLabel:setTextColor(Vec3 color)|setTextColor]]([[Vec3]] color)&lt;br /&gt;
|Set text color.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[FreeFormLabel:setTextColor(Vec4 color)|setTextColor]]([[Vec4]] color)&lt;br /&gt;
|Set text color.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[FreeFormLabel:setPanelSizeBasedOnTextSize()|setPanelSizeBasedOnTextSize]]()&lt;br /&gt;
|PanelSize will be based on the text.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|[[FreeFormLabel:setParseTags(bool parseTags)|setParseTags]](bool parseTags)&lt;br /&gt;
|Set text color.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Anders</name></author>
	</entry>
</feed>