<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ALCDCreateStaticText</id>
	<title>API:LCDCreateStaticText - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ALCDCreateStaticText"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:LCDCreateStaticText&amp;action=history"/>
	<updated>2026-10-19T03:00:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:LCDCreateStaticText&amp;diff=30532&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:LCDCreateStaticText&amp;diff=30532&amp;oldid=prev"/>
		<updated>2026-10-16T19:46:04Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=LCD}}&lt;br /&gt;
Adds a text element to an LCD page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LCDCreateStaticText(pageName, textName, textSize, alignment, width, numLines)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;pageName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of the page.&lt;br /&gt;
;textName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of the new element.&lt;br /&gt;
;textSize : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Text size, &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;. Each line of the element is 12, 13 or 20 pixels high for these values.&lt;br /&gt;
;alignment : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;&amp;quot;left&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;center&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;right&amp;quot;&amp;lt;/code&amp;gt;. The client compares it ignoring case.&lt;br /&gt;
;width : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Width of the element in pixels.&lt;br /&gt;
;numLines : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Number of text lines the element has room for.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The element uses the font &amp;quot;Microsoft Sans Serif&amp;quot;. Set its text with [[API:LCDStaticTextSetText|LCDStaticTextSetText]].&lt;br /&gt;
* The element&amp;#039;s height is &amp;lt;code&amp;gt;numLines&amp;lt;/code&amp;gt; times the line height of &amp;lt;code&amp;gt;textSize&amp;lt;/code&amp;gt;. For any other &amp;lt;code&amp;gt;textSize&amp;lt;/code&amp;gt; the height is 13 pixels, whatever &amp;lt;code&amp;gt;numLines&amp;lt;/code&amp;gt; is.&lt;br /&gt;
* With more than one line the element is set up for multi-line text.&lt;br /&gt;
* If the page already has an element with this name, nothing is created.&lt;br /&gt;
* If the page does not exist, the error below is logged and nothing is created.&lt;br /&gt;
* The function needs at least six arguments and only reads the last six.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;LCDCreateStaticText&amp;#039;: Page &amp;#039;%s&amp;#039; does not exist.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_lcdkeyboard/source/g15test.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LCDCreateStaticText( EA_LCDKeyboard.Page1, &amp;quot;HPTitle&amp;quot;, 1, &amp;quot;left&amp;quot;, 30, 1 )&lt;br /&gt;
LCDSetLocation( EA_LCDKeyboard.Page1, &amp;quot;HPTitle&amp;quot;, 0, 0 )&lt;br /&gt;
LCDStaticTextSetText( EA_LCDKeyboard.Page1, &amp;quot;HPTitle&amp;quot;, GetStringFromTable( &amp;quot;LCDStrings&amp;quot;, StringTables.LCDStrings.HIT_POINT_TITLE ) )&lt;br /&gt;
&lt;br /&gt;
-- a three-line alert area&lt;br /&gt;
LCDCreateStaticText( EA_LCDKeyboard.Page3, &amp;quot;AlertText&amp;quot;, 1, &amp;quot;left&amp;quot;, 160, 3 )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:LCDStaticTextSetText|LCDStaticTextSetText]]&lt;br /&gt;
* [[API:LCDSetLocation|LCDSetLocation]]&lt;br /&gt;
* [[API:LCDSetSize|LCDSetSize]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>