mirror of
https://github.com/Insality/druid
synced 2025-06-27 10:27:48 +02:00
243 lines
6.2 KiB
HTML
243 lines
6.2 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
<head>
|
|
<title>Defold Druid UI Library</title>
|
|
<link rel="stylesheet" href="../ldoc_pale.css" type="text/css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="container">
|
|
|
|
<div id="product">
|
|
<div id="product_logo"></div>
|
|
<div id="product_name"><big><b></b></big></div>
|
|
<div id="product_description"></div>
|
|
</div> <!-- id="product" -->
|
|
|
|
|
|
<div id="main">
|
|
|
|
|
|
<!-- Menu -->
|
|
|
|
<div id="navigation">
|
|
<br/>
|
|
<h1>Druid</h1>
|
|
|
|
<ul>
|
|
<li><a href="../index.html">Index</a></li>
|
|
</ul>
|
|
|
|
<h2>Contents</h2>
|
|
<ul>
|
|
<li><a href="#Functions">Functions</a></li>
|
|
</ul>
|
|
|
|
|
|
<h2>Modules</h2>
|
|
<ul class="nowrap">
|
|
<li><a href="../modules/.druidback_handler.html">.druidback_handler</a></li>
|
|
<li><a href="../modules/.druidblocker.html">.druidblocker</a></li>
|
|
<li><a href="../modules/.druidbutton.html">.druidbutton</a></li>
|
|
<li><a href="../modules/.druidcheckbox.html">.druidcheckbox</a></li>
|
|
<li><a href="../modules/.druidcheckbox_group.html">.druidcheckbox_group</a></li>
|
|
<li><a href="../modules/.druidgrid.html">.druidgrid</a></li>
|
|
<li><strong>.druidtext</strong></li>
|
|
<li><a href="../modules/.druidprogress.html">.druidprogress</a></li>
|
|
<li><a href="../modules/.druidcheckbox_group.html">.druidcheckbox_group</a></li>
|
|
<li><a href="../modules/.druidscroll.html">.druidscroll</a></li>
|
|
<li><a href="../modules/.druidslider.html">.druidslider</a></li>
|
|
<li><strong>.druidtext</strong></li>
|
|
<li><a href="../modules/.druidtimer.html">.druidtimer</a></li>
|
|
<li><a href="../modules/const.html">const</a></li>
|
|
<li><a href="../modules/druid.html">druid</a></li>
|
|
<li><a href="../modules/helper.html">helper</a></li>
|
|
<li><a href="../modules/helper.animate.html">helper.animate</a></li>
|
|
<li><a href="../modules/helper.formats.html">helper.formats</a></li>
|
|
<li><a href="../modules/rich.progress_rich.html">rich.progress_rich</a></li>
|
|
<li><a href="../modules/component.html">component</a></li>
|
|
<li><a href="../modules/settings.html">settings</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<h1>Module <code>.druidtext</code></h1>
|
|
<p>Component to handle all GUI texts
|
|
Good working with localization system</p>
|
|
<p></p>
|
|
|
|
|
|
<h2><a href="#Functions">Functions</a></h2>
|
|
<table class="function_list">
|
|
<tr>
|
|
<td class="name" nowrap><a href="#text:set_to">text:set_to(self, set_to)</a></td>
|
|
<td class="summary">Set text to text field</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#text:set_color">text:set_color(self, color)</a></td>
|
|
<td class="summary">Set color</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#text:set_alpha">text:set_alpha(self, alpha)</a></td>
|
|
<td class="summary">Set alpha</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#text:set_scale">text:set_scale(self, scale)</a></td>
|
|
<td class="summary">Set scale</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#text:set_pivot">text:set_pivot(self, pivot)</a></td>
|
|
<td class="summary">Set text pivot.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
<h2 class="section-header "><a name="Functions"></a>Functions</h2>
|
|
|
|
<dl class="function">
|
|
<dt>
|
|
<a name = "text:set_to"></a>
|
|
<strong>text:set_to(self, set_to)</strong>
|
|
</dt>
|
|
<dd>
|
|
Set text to text field
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">self</span>
|
|
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span>
|
|
Component instance
|
|
</li>
|
|
<li><span class="parameter">set_to</span>
|
|
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span>
|
|
Text for node
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "text:set_color"></a>
|
|
<strong>text:set_color(self, color)</strong>
|
|
</dt>
|
|
<dd>
|
|
Set color
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">self</span>
|
|
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span>
|
|
Component instance
|
|
</li>
|
|
<li><span class="parameter">color</span>
|
|
<span class="types"><span class="type">vmath.vector4</span></span>
|
|
Color for node
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "text:set_alpha"></a>
|
|
<strong>text:set_alpha(self, alpha)</strong>
|
|
</dt>
|
|
<dd>
|
|
Set alpha
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">self</span>
|
|
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span>
|
|
Component instance
|
|
</li>
|
|
<li><span class="parameter">alpha</span>
|
|
<span class="types"><span class="type">number</span></span>
|
|
Alpha for node
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "text:set_scale"></a>
|
|
<strong>text:set_scale(self, scale)</strong>
|
|
</dt>
|
|
<dd>
|
|
Set scale
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">self</span>
|
|
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span>
|
|
Component instance
|
|
</li>
|
|
<li><span class="parameter">scale</span>
|
|
<span class="types"><span class="type">vmath.vector3</span></span>
|
|
Scale for node
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "text:set_pivot"></a>
|
|
<strong>text:set_pivot(self, pivot)</strong>
|
|
</dt>
|
|
<dd>
|
|
Set text pivot. Text will re-anchor inside
|
|
his text area
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">self</span>
|
|
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span>
|
|
Component instance
|
|
</li>
|
|
<li><span class="parameter">pivot</span>
|
|
<span class="types"><span class="type">gui.pivot</span></span>
|
|
Gui pivot constant
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
</dl>
|
|
|
|
|
|
</div> <!-- id="content" -->
|
|
</div> <!-- id="main" -->
|
|
<div id="about">
|
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
|
<i style="float:right;">Last updated 2020-02-04 23:48:07 </i>
|
|
</div> <!-- id="about" -->
|
|
</div> <!-- id="container" -->
|
|
</body>
|
|
</html>
|