Clean up todo, more docs

This commit is contained in:
Insality
2020-03-22 15:32:00 +03:00
parent 696622b42b
commit 7c22032004
33 changed files with 92 additions and 72 deletions

View File

@@ -185,7 +185,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -117,6 +117,10 @@
<td class="summary">Get current component interests</td>
</tr>
<tr>
<td class="name" nowrap><a href="#get_node">get_node(node_or_name)</a></td>
<td class="summary">Get node for component by name.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#get_druid">get_druid()</a></td>
<td class="summary">Return druid with context of calling component.</td>
</tr>
@@ -320,6 +324,36 @@
</dd>
<dt>
<a name = "get_node"></a>
<strong>get_node(node_or_name)</strong>
</dt>
<dd>
Get node for component by name.
If component has nodes, node<em>or</em>name should be string
It auto pick node by template name or from nodes by clone<em>tree
if they was setup via component:set</em>nodes, component:set_template
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">node_or_name</span>
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a> or <span class="type">node</span></span>
Node name or node itself
</li>
</ul>
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">node</span></span>
Gui node
</ol>
</dd>
<dt>
<a name = "get_druid"></a>
@@ -406,7 +440,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -215,7 +215,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -234,7 +234,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -305,6 +305,10 @@
<span class="types"><span class="type">druid_event</span></span>
On double tap button callback
</li>
<li><span class="parameter">on_hold_callback</span>
<span class="types"><span class="type">druid_event</span></span>
On button hold before long_click callback
</li>
</ul>
@@ -331,7 +335,7 @@
Animation node
(<em>default</em> node)
</li>
<li><span class="parameter">scale_from</span>
<li><span class="parameter">start_scale</span>
<span class="types"><span class="type">vector3</span></span>
Initial scale of anim_node
</li>
@@ -405,7 +409,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -277,7 +277,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -239,7 +239,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -370,7 +370,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -236,7 +236,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -211,7 +211,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -181,7 +181,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -86,7 +86,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -240,7 +240,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -378,7 +378,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -239,7 +239,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -507,7 +507,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -278,7 +278,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -352,7 +352,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -267,31 +267,17 @@
<span class="types"><span class="type">node</span></span>
Trigger node
</li>
<li><span class="parameter">anim_node</span>
<span class="types"><span class="type">node</span></span>
Animation node
(<em>default</em> node)
<li><span class="parameter">from</span>
<span class="types"><span class="type">number</span></span>
Initial timer value
</li>
<li><span class="parameter">scale_from</span>
<span class="types"><span class="type">vector3</span></span>
Initial scale of anim_node
<li><span class="parameter">target</span>
<span class="types"><span class="type">number</span></span>
Target timer value
</li>
<li><span class="parameter">pos</span>
<span class="types"><span class="type">vector3</span></span>
Initial pos of anim_node
</li>
<li><span class="parameter">params</span>
<span class="types"><span class="type">any</span></span>
Params to click callbacks
</li>
<li><span class="parameter">hover</span>
<span class="types"><span class="type">druid.hover</span></span>
Druid hover logic component
</li>
<li><span class="parameter">click_zone</span>
<span class="types"><span class="type">node</span></span>
Restriction zone
(<em>optional</em>)
<li><span class="parameter">value</span>
<span class="types"><span class="type">number</span></span>
Current timer value
</li>
</ul>
@@ -307,7 +293,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -239,7 +239,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -750,7 +750,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -111,7 +111,7 @@
- **on_click** - basic button callback
- **on_repeated_click** - repeated click callback, <span class="keyword">while</span> holding the button, don<span class="string">'t trigger if callback is empty
- **on_long_click** - callback on long button tap, don'</span>t trigger <span class="keyword">if</span> callback is empty
- **on_hold_click** - hold callback, before long_click trigger, don<span class="string">'t trigger if callback is empty
- **on_hold_callback** - hold callback, before long_click trigger, don<span class="string">'t trigger if callback is empty
- **on_double_click** - different callback, if tap button 2+ in row, don'</span>t trigger <span class="keyword">if</span> callback is empty
</pre>
</li>
@@ -210,7 +210,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -202,7 +202,7 @@ There is next interests in druid:
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -138,7 +138,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -89,7 +89,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -87,7 +87,7 @@
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -291,7 +291,7 @@ https://insality.github.io/druid/</p>
</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-03-22 15:19:02 </i>
<i style="float:right;">Last updated 2020-03-22 15:31:43 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>