mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
Update docs
This commit is contained in:
parent
844f0dc356
commit
29137614ab
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
[](https://github.com/Insality/druid/releases)
|
[](https://github.com/Insality/druid/releases)
|
||||||
|
|
||||||
**Druid** - powerful defold component UI library. Use basic **Druid** components or make your own game-specific components to make amazing GUI in your games.
|
**Druid** - powerful Defold component UI library. Use basic **Druid** components or make your own game-specific components to make amazing GUI in your games.
|
||||||
|
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
@ -184,18 +184,19 @@ function on_message(self, message_id, message, sender)
|
|||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- *final* required function for correct druid lifecycle
|
||||||
- *on_input* used for almost all basic druid components
|
- *on_input* used for almost all basic druid components
|
||||||
- *update* used for progress bar, scroll and timer base components
|
- *update* used for progress bar, scroll and timer base components
|
||||||
- *on_message* used for specific druid events, like language change or layout change
|
- *on_message* used for specific druid events, like language change or layout change
|
||||||
- *final* used for custom components, what have to do several action before destroy
|
|
||||||
|
|
||||||
Recommended is fully integrate al druid lifecycles functions
|
Recommended is fully integrate all druid lifecycles functions
|
||||||
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- Druid input goes as stack. Last created button will checked first. So create your GUI from back
|
- Druid input goes as stack. Last created button will checked first. So create your GUI from back
|
||||||
- Don't forget about `return` in `on_input`: `return self.druid:on_input()`. It need, if you have more than 1 acquire inputs (several druid, other input system, etc)
|
- Don't forget about `return` in `on_input`: `return self.druid:on_input()`. It need, if you have more than 1 acquire inputs (several druid, other input system, etc)
|
||||||
|
- Druid by default do _acquire_input_focus_. So you don't need do it manually. Buy only if you have components, which requires _on_input_
|
||||||
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
@ -200,7 +200,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -510,7 +510,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -218,7 +218,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -237,7 +237,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -99,11 +99,11 @@
|
|||||||
<td class="summary">Return button enabled state</td>
|
<td class="summary">Return button enabled state</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#set_click_zone">set_click_zone(zone, Self)</a></td>
|
<td class="name" nowrap><a href="#set_click_zone">set_click_zone(zone)</a></td>
|
||||||
<td class="summary">Strict button click area.</td>
|
<td class="summary">Strict button click area.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#set_key_trigger">set_key_trigger(key, Self)</a></td>
|
<td class="name" nowrap><a href="#set_key_trigger">set_key_trigger(key)</a></td>
|
||||||
<td class="summary">Set key-code to trigger this button</td>
|
<td class="summary">Set key-code to trigger this button</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -185,6 +185,12 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h3>Returns:</h3>
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
<span class="types"><span class="type">druid.button</span></span>
|
||||||
|
Current button instance
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -212,7 +218,7 @@
|
|||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
<a name = "set_click_zone"></a>
|
<a name = "set_click_zone"></a>
|
||||||
<strong>set_click_zone(zone, Self)</strong>
|
<strong>set_click_zone(zone)</strong>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Strict button click area. Useful for
|
Strict button click area. Useful for
|
||||||
@ -225,12 +231,14 @@
|
|||||||
<span class="types"><span class="type">node</span></span>
|
<span class="types"><span class="type">node</span></span>
|
||||||
Gui node
|
Gui node
|
||||||
</li>
|
</li>
|
||||||
<li><span class="parameter">Self</span>
|
|
||||||
<span class="types"><span class="type">druid.button</span></span>
|
|
||||||
instance to make chain calls
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h3>Returns:</h3>
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
<span class="types"><span class="type">druid.button</span></span>
|
||||||
|
Current button instance
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -238,7 +246,7 @@
|
|||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
<a name = "set_key_trigger"></a>
|
<a name = "set_key_trigger"></a>
|
||||||
<strong>set_key_trigger(key, Self)</strong>
|
<strong>set_key_trigger(key)</strong>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Set key-code to trigger this button
|
Set key-code to trigger this button
|
||||||
@ -250,12 +258,14 @@
|
|||||||
<span class="types"><span class="type">hash</span></span>
|
<span class="types"><span class="type">hash</span></span>
|
||||||
The action_id of the key
|
The action_id of the key
|
||||||
</li>
|
</li>
|
||||||
<li><span class="parameter">Self</span>
|
|
||||||
<span class="types"><span class="type">druid.button</span></span>
|
|
||||||
instance to make chain calls
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<h3>Returns:</h3>
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
<span class="types"><span class="type">druid.button</span></span>
|
||||||
|
Current button instance
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -438,7 +448,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -282,7 +282,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -242,7 +242,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -282,7 +282,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -374,7 +374,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -298,7 +298,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -102,6 +102,14 @@
|
|||||||
<td class="name" nowrap><a href="#set_click_zone">set_click_zone(zone)</a></td>
|
<td class="name" nowrap><a href="#set_click_zone">set_click_zone(zone)</a></td>
|
||||||
<td class="summary">Strict hover click area.</td>
|
<td class="summary">Strict hover click area.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="name" nowrap><a href="#set_enabled">set_enabled(state)</a></td>
|
||||||
|
<td class="summary">Set enable state of hover component.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="name" nowrap><a href="#is_enabled">is_enabled()</a></td>
|
||||||
|
<td class="summary">Return current hover enabled state</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<h2><a href="#Tables">Tables</a></h2>
|
<h2><a href="#Tables">Tables</a></h2>
|
||||||
<table class="function_list">
|
<table class="function_list">
|
||||||
@ -206,6 +214,49 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt>
|
||||||
|
<a name = "set_enabled"></a>
|
||||||
|
<strong>set_enabled(state)</strong>
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
Set enable state of hover component.
|
||||||
|
If hover is not enabled, it will not generate
|
||||||
|
any hover events
|
||||||
|
|
||||||
|
|
||||||
|
<h3>Parameters:</h3>
|
||||||
|
<ul>
|
||||||
|
<li><span class="parameter">state</span>
|
||||||
|
<span class="types"><span class="type">bool</span></span>
|
||||||
|
The hover enabled state
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</dd>
|
||||||
|
<dt>
|
||||||
|
<a name = "is_enabled"></a>
|
||||||
|
<strong>is_enabled()</strong>
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
Return current hover enabled state
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h3>Returns:</h3>
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
<span class="types"><span class="type">bool</span></span>
|
||||||
|
The hover enabled state
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<h2 class="section-header "><a name="Tables"></a>Tables</h2>
|
<h2 class="section-header "><a name="Tables"></a>Tables</h2>
|
||||||
@ -243,7 +294,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -329,7 +329,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -194,7 +194,7 @@
|
|||||||
<ol>
|
<ol>
|
||||||
|
|
||||||
<span class="types"><span class="type">druid.input</span></span>
|
<span class="types"><span class="type">druid.input</span></span>
|
||||||
Self instance to make chain calls
|
Current input instance
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
@ -223,7 +223,7 @@
|
|||||||
<ol>
|
<ol>
|
||||||
|
|
||||||
<span class="types"><span class="type">druid.input</span></span>
|
<span class="types"><span class="type">druid.input</span></span>
|
||||||
Self instance to make chain calls
|
Current input instance
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
@ -388,7 +388,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -243,7 +243,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -386,7 +386,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -242,7 +242,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -122,7 +122,7 @@
|
|||||||
<td class="summary">Return if scroll have inertion.</td>
|
<td class="summary">Return if scroll have inertion.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="name" nowrap><a href="#set_extra_strech_size">set_extra_strech_size([stretch_size=0])</a></td>
|
<td class="name" nowrap><a href="#set_extra_stretch_size">set_extra_stretch_size([stretch_size=0])</a></td>
|
||||||
<td class="summary">Set extra size for scroll stretching.</td>
|
<td class="summary">Set extra size for scroll stretching.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@ -311,7 +311,7 @@
|
|||||||
<ol>
|
<ol>
|
||||||
|
|
||||||
<span class="types"><span class="type">druid.scroll</span></span>
|
<span class="types"><span class="type">druid.scroll</span></span>
|
||||||
Self instance
|
Current scroll instance
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
@ -340,7 +340,7 @@
|
|||||||
<ol>
|
<ol>
|
||||||
|
|
||||||
<span class="types"><span class="type">druid.scroll</span></span>
|
<span class="types"><span class="type">druid.scroll</span></span>
|
||||||
Self instance
|
Current scroll instance
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
@ -368,8 +368,8 @@
|
|||||||
|
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
<a name = "set_extra_strech_size"></a>
|
<a name = "set_extra_stretch_size"></a>
|
||||||
<strong>set_extra_strech_size([stretch_size=0])</strong>
|
<strong>set_extra_stretch_size([stretch_size=0])</strong>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
Set extra size for scroll stretching.
|
Set extra size for scroll stretching.
|
||||||
@ -389,7 +389,7 @@
|
|||||||
<ol>
|
<ol>
|
||||||
|
|
||||||
<span class="types"><span class="type">druid.scroll</span></span>
|
<span class="types"><span class="type">druid.scroll</span></span>
|
||||||
Self instance
|
Current scroll instance
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
@ -437,7 +437,7 @@
|
|||||||
<ol>
|
<ol>
|
||||||
|
|
||||||
<span class="types"><span class="type">druid.scroll</span></span>
|
<span class="types"><span class="type">druid.scroll</span></span>
|
||||||
Self instance
|
Current scroll instance
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
@ -586,7 +586,7 @@
|
|||||||
Scroll gui.animation speed for scroll_to function
|
Scroll gui.animation speed for scroll_to function
|
||||||
(<em>default</em> 0.2)
|
(<em>default</em> 0.2)
|
||||||
</li>
|
</li>
|
||||||
<li><span class="parameter">EXTRA_STRECH_SIZE</span>
|
<li><span class="parameter">EXTRA_STRETCH_SIZE</span>
|
||||||
<span class="types"><span class="type">number</span></span>
|
<span class="types"><span class="type">number</span></span>
|
||||||
extra size in pixels outside of scroll (stretch effect)
|
extra size in pixels outside of scroll (stretch effect)
|
||||||
(<em>default</em> 0)
|
(<em>default</em> 0)
|
||||||
@ -610,7 +610,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -281,7 +281,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -256,7 +256,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -407,7 +407,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -296,7 +296,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -242,7 +242,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -913,7 +913,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -129,7 +129,8 @@ Where node name is name of node from GUI scene. You can use <code>node_name</cod
|
|||||||
- **on_double_click** - different callback, if tap button 2+ in row, don'</span>t trigger <span class="keyword">if</span> 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>
|
</pre>
|
||||||
|
|
||||||
<p>- If button have double click event and it is triggered, usual callback will be not invoked
|
<p>- Click event will not trigger, if between pressed and released state cursor was outside of node zone
|
||||||
|
- If button have double click event and it is triggered, usual callback will be not invoked
|
||||||
- If you have stencil on buttons and you don't want trigger them outside of stencil node, you can use <a href="../modules/druid.button.html#set_click_zone">button:set_click_zone</a> to restrict button click zone
|
- If you have stencil on buttons and you don't want trigger them outside of stencil node, you can use <a href="../modules/druid.button.html#set_click_zone">button:set_click_zone</a> to restrict button click zone
|
||||||
- Button can have key trigger to use then by key: <a href="../modules/druid.button.html#set_key_trigger">button:set_key_trigger</a>
|
- Button can have key trigger to use then by key: <a href="../modules/druid.button.html#set_key_trigger">button:set_key_trigger</a>
|
||||||
- Animation node can be used for example to animate small icon on big panel. Node name of trigger zone will be <code>big panel</code> and animation node will be <code>small icon</code></p>
|
- Animation node can be used for example to animate small icon on big panel. Node name of trigger zone will be <code>big panel</code> and animation node will be <code>small icon</code></p>
|
||||||
@ -239,7 +240,7 @@ Where node name is name of node from GUI scene. You can use <code>node_name</cod
|
|||||||
|
|
||||||
<p>- You can adjust scroll content size by <code>scroll:set_size(node_size)</code>. It will setup new size to <em>content node</em>
|
<p>- You can adjust scroll content size by <code>scroll:set_size(node_size)</code>. It will setup new size to <em>content node</em>
|
||||||
- You can enabled or disable inertion mode via <code>scroll:set_intert(state)</code>
|
- You can enabled or disable inertion mode via <code>scroll:set_intert(state)</code>
|
||||||
- You can adjust extra stretch size via <code>scroll:set_extra_stretch_size</code>
|
- You can adjust extra stretch size via <a href="../modules/druid.scroll.html#set_extra_stretch_size">scroll:set_extra_stretch_size</a>
|
||||||
- Multitouch is required for scroll. Scroll is correctly handling touch_id swap while dragging scroll</p>
|
- Multitouch is required for scroll. Scroll is correctly handling touch_id swap while dragging scroll</p>
|
||||||
|
|
||||||
|
|
||||||
@ -386,7 +387,8 @@ Key is value from druid const: const.SIDE.X (or just "x") or const.SIDE.Y (or ju
|
|||||||
|
|
||||||
<h3>Notes</h3>
|
<h3>Notes</h3>
|
||||||
<p>- By default, hover handles <em>hover event</em> with pressed touch action_id. So it's mean, what mouse or touch have to be pressed
|
<p>- By default, hover handles <em>hover event</em> with pressed touch action_id. So it's mean, what mouse or touch have to be pressed
|
||||||
- On desktop platforms there is <em>on</em>mouse<em>hover</em> event. It's event on mouse hover without any action id</p>
|
- On desktop platforms there is <em>on</em>mouse<em>hover</em> event. It's event on mouse hover without any action id
|
||||||
|
- By default, assume what node is on not hovered state (both <em>hover</em> and <em>mouse</em>hover_)</p>
|
||||||
|
|
||||||
|
|
||||||
<p><a name="Swipe"></a></p>
|
<p><a name="Swipe"></a></p>
|
||||||
@ -463,7 +465,7 @@ Key is value from druid const: const.SIDE.X (or just "x") or const.SIDE.Y (or ju
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -121,8 +121,8 @@
|
|||||||
</span><span class="keyword">function</span> M.on_message(self, message_id, message, sender)
|
</span><span class="keyword">function</span> M.on_message(self, message_id, message, sender)
|
||||||
<span class="keyword">end</span>
|
<span class="keyword">end</span>
|
||||||
|
|
||||||
<span class="comment">-- Call only if component with ON_LANGUAGE_CHANGE interest
|
<span class="comment">-- Call only if component with ON_ANGUAGECHANinterest
|
||||||
</span><span class="keyword">function</span> M.on_language_change(self)
|
</span><span class="keyword">function</span> M.on_anguagechanself)
|
||||||
<span class="keyword">end</span>
|
<span class="keyword">end</span>
|
||||||
|
|
||||||
<span class="comment">-- Call only if component with ON_LAYOUT_CHANGE interest
|
<span class="comment">-- Call only if component with ON_LAYOUT_CHANGE interest
|
||||||
@ -245,7 +245,7 @@ There is next interests in druid:
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -155,7 +155,7 @@ You can pass <em>nil</em> or <em>empty</em>table_ to use default values for all
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
|
|
||||||
<p><a href="https://github.com/Insality/druid/releases"><img src="https://img.shields.io/github/v/release/insality/druid" alt="GitHub release (latest by date)"/></a></p>
|
<p><a href="https://github.com/Insality/druid/releases"><img src="https://img.shields.io/github/v/release/insality/druid" alt="GitHub release (latest by date)"/></a></p>
|
||||||
|
|
||||||
<p><strong>Druid</strong> - powerful defold component UI library. Use basic <strong>Druid</strong> components or make your own game-specific components to make amazing GUI in your games.</p>
|
<p><strong>Druid</strong> - powerful Defold component UI library. Use basic <strong>Druid</strong> components or make your own game-specific components to make amazing GUI in your games.</p>
|
||||||
|
|
||||||
|
|
||||||
<p><a name="Setup"></a></p>
|
<p><a name="Setup"></a></p>
|
||||||
@ -271,13 +271,13 @@
|
|||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><em>final</em> required function for correct druid lifecycle</li>
|
||||||
<li>*on_input* used for almost all basic druid components</li>
|
<li>*on_input* used for almost all basic druid components</li>
|
||||||
<li><em>update</em> used for progress bar, scroll and timer base components</li>
|
<li><em>update</em> used for progress bar, scroll and timer base components</li>
|
||||||
<li>*on_message* used for specific druid events, like language change or layout change</li>
|
<li>*on_message* used for specific druid events, like language change or layout change</li>
|
||||||
<li><em>final</em> used for custom components, what have to do several action before destroy</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Recommended is fully integrate al druid lifecycles functions</p>
|
<p>Recommended is fully integrate all druid lifecycles functions</p>
|
||||||
|
|
||||||
|
|
||||||
<p><a name="Features"></a></p>
|
<p><a name="Features"></a></p>
|
||||||
@ -286,6 +286,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Druid input goes as stack. Last created button will checked first. So create your GUI from back</li>
|
<li>Druid input goes as stack. Last created button will checked first. So create your GUI from back</li>
|
||||||
<li>Don't forget about <code>return</code> in <code>on_input</code>: <code>return self.druid:on_input()</code>. It need, if you have more than 1 acquire inputs (several druid, other input system, etc)</li>
|
<li>Don't forget about <code>return</code> in <code>on_input</code>: <code>return self.druid:on_input()</code>. It need, if you have more than 1 acquire inputs (several druid, other input system, etc)</li>
|
||||||
|
<li>Druid by default do <em>acquire</em>input<em>focus</em>. So you don't need do it manually. Buy only if you have components, which requires <em>on</em>input_ </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
@ -339,7 +340,7 @@ https://insality.github.io/druid/</p>
|
|||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -72,8 +72,7 @@
|
|||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
|
|
||||||
|
Druid 0.3.0:</p>
|
||||||
<p>Druid 0.3.0:</p>
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><p><code>Druid:final()</code> now is important function for correct working</p></li>
|
<li><p><code>Druid:final()</code> now is important function for correct working</p></li>
|
||||||
@ -133,11 +132,11 @@
|
|||||||
- on_drag_start (self)
|
- on_drag_start (self)
|
||||||
- on_drag (self, dx, dy)
|
- on_drag (self, dx, dy)
|
||||||
- on_drag_end (self)
|
- on_drag_end (self)
|
||||||
- You can restriction side of draggin by changing _drag.can_x_ <span class="keyword">and</span> _drag.can_y_ fields
|
- You can restriction side of dragging by changing _drag.can_x_ <span class="keyword">and</span> _drag.can_y_ fields
|
||||||
- You can setup drag deadzone to detect, when dragging is started (by default <span class="number">10</span> pixels)
|
- You can setup drag deadzone to detect, when dragging is started (_by default <span class="number">10</span> pixels_)
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p>Druid <em>Scroll</em> component fully reworked. Input logic moved to <em>Drag</em> component</p>
|
<li><p>[Breaking changes] Druid <em>Scroll</em> component fully reworked. Input logic moved to <em>Drag</em> component</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
- Update scroll documentation
|
- Update scroll documentation
|
||||||
@ -151,7 +150,7 @@
|
|||||||
- Different anchoring is supported (<span class="keyword">for</span> easier layouting)
|
- Different anchoring is supported (<span class="keyword">for</span> easier layouting)
|
||||||
- Function _scroll_to_ now accept position relative to _content node_. It's more easier <span class="keyword">for</span> handling. _Example:_ <span class="keyword">if</span> you have children node of _content_node_, you can pass this node position to scroll to this.
|
- Function _scroll_to_ now accept position relative to _content node_. It's more easier <span class="keyword">for</span> handling. _Example:_ <span class="keyword">if</span> you have children node of _content_node_, you can pass this node position to scroll to this.
|
||||||
- **Resolve #<span class="number">52</span>**: _Content node size_ now can be less than _view node size_. In this case, content will be scrolled only inside _view size_ (can be disabled via style field: _SMALL_CONTENT_SCROLL_)
|
- **Resolve #<span class="number">52</span>**: _Content node size_ now can be less than _view node size_. In this case, content will be scrolled only inside _view size_ (can be disabled via style field: _SMALL_CONTENT_SCROLL_)
|
||||||
- **Fix #<span class="number">50</span>**: If style:SOFT_ZONE_SIZE equals to [<span class="number">0.</span>.<span class="number">1</span>], scroll can be disappeared
|
- **Fix #<span class="number">50</span>**: If style.SOFT_ZONE_SIZE equals to [<span class="number">0.</span>.<span class="number">1</span>], scroll can be disappeared
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p>Druid <em>Grid</em> Update</p>
|
<li><p>Druid <em>Grid</em> Update</p>
|
||||||
@ -172,9 +171,9 @@
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
- Styles <span class="global">table</span> now can be empty, every component have their default style values
|
- Styles <span class="global">table</span> now can be empty, every component have their default style values
|
||||||
- Remove <span class="backtick"><code>component:get_style</code></span> <span class="keyword">function</span>. Now style can be only set
|
- Remove <span class="backtick"><code>component:get_style</code></span> <span class="keyword">function</span>. Now you can only set styles
|
||||||
- To get style values <span class="keyword">in</span> component, add <span class="backtick"><code>component:on_style_change</code></span> <span class="keyword">function</span>. It's invoked on <span class="backtick"><a href="../modules/component.html#set_style">component:set_style</a></span> <span class="keyword">function</span>
|
- To get style values <span class="keyword">in</span> component, add <span class="backtick"><code>component:on_style_change</code></span> <span class="keyword">function</span>. It's invoked on <span class="backtick"><a href="../modules/component.html#set_style">component:set_style</a></span> <span class="keyword">function</span>
|
||||||
- You can look up default values inside <span class="backtick"><code>component:on_style_change</code></span> <span class="keyword">function</span> <span class="keyword">or</span> style component API on Druid API
|
- You can look up default values inside <span class="backtick"><code>component:on_style_change</code></span> <span class="keyword">function</span> <span class="keyword">or</span> style component API on [Druid API](https://insality.github.<span class="global">io</span>/druid/index.html)
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p>Druid update:</p>
|
<li><p>Druid update:</p>
|
||||||
@ -183,17 +182,24 @@
|
|||||||
- Now <span class="keyword">function</span> <span class="backtick"><code>druid:remove</code></span> remove instance <span class="keyword">and</span> all instance children components. No more manual deleting child components (#<span class="number">41</span>)
|
- Now <span class="keyword">function</span> <span class="backtick"><code>druid:remove</code></span> remove instance <span class="keyword">and</span> all instance children components. No more manual deleting child components (#<span class="number">41</span>)
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
<li><p><strong>Fix:</strong> Blocker component bug (blocker had very high priority, so it's block even button components, created after bloker)</p></li>
|
<li><p><strong>Fix:</strong> Blocker component bug (blocker had very high priority, so it's block even button components, created after blocker)</p></li>
|
||||||
<li><p><strong>Fix #58:</strong> Bug, when druid instance should be always named <a href="../modules/druid.html#">druid</a> (ex: <code>self.druid = druid.new(self)</code>)</p></li>
|
<li><p><strong>Fix #58:</strong> Bug, when druid instance should be always named <a href="../modules/druid.html#">druid</a> (ex: <code>self.druid = druid.new(self)</code>)</p></li>
|
||||||
<li><p><strong>Fix #53:</strong> Bug with final <em>Druid instance</em> without any components</p></li>
|
<li><p><strong>Fix #53:</strong> Bug with final <em>Druid instance</em> without any components</p></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<p>Druid 0.5.0:
|
||||||
|
- <strong>Fix #61:</strong> Button component: fix button animation node creation
|
||||||
|
- <strong>Fix #64:</strong> Hover component: wrong mouse_hover default state
|
||||||
|
- <strong>Fix #71:</strong> Blocker: blocker now correct block mouse hover event
|
||||||
|
- <strong>Fix #72:</strong> Fix <code>return nil</code> in some <code>on_input</code> functions
|
||||||
|
- <strong>Fix #74:</strong> Fix typo: strech -> stretch. Scroll function <code>set_extra_stretch_size</code> renamed
|
||||||
|
|
||||||
</div> <!-- id="content" -->
|
</div> <!-- id="content" -->
|
||||||
</div> <!-- id="main" -->
|
</div> <!-- id="main" -->
|
||||||
<div id="about">
|
<div id="about">
|
||||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
|
||||||
<i style="float:right;">Last updated 2020-05-09 16:07:15 </i>
|
<i style="float:right;">Last updated 2020-06-14 20:13:02 </i>
|
||||||
</div> <!-- id="about" -->
|
</div> <!-- id="about" -->
|
||||||
</div> <!-- id="container" -->
|
</div> <!-- id="container" -->
|
||||||
</body>
|
</body>
|
||||||
|
@ -25,6 +25,7 @@ Where node name is name of node from GUI scene. You can use `node_name` as input
|
|||||||
- **on_long_click** - callback on long button tap, don't trigger if callback is empty
|
- **on_long_click** - callback on long button tap, don't trigger if callback is empty
|
||||||
- **on_hold_click** - hold callback, before long_click trigger, don't trigger if callback is empty
|
- **on_hold_click** - hold callback, before long_click trigger, don't trigger if callback is empty
|
||||||
- **on_double_click** - different callback, if tap button 2+ in row, don't trigger if callback is empty
|
- **on_double_click** - different callback, if tap button 2+ in row, don't trigger if callback is empty
|
||||||
|
- Click event will not trigger, if between pressed and released state cursor was outside of node zone
|
||||||
- If button have double click event and it is triggered, usual callback will be not invoked
|
- If button have double click event and it is triggered, usual callback will be not invoked
|
||||||
- If you have stencil on buttons and you don't want trigger them outside of stencil node, you can use `button:set_click_zone` to restrict button click zone
|
- If you have stencil on buttons and you don't want trigger them outside of stencil node, you can use `button:set_click_zone` to restrict button click zone
|
||||||
- Button can have key trigger to use then by key: `button:set_key_trigger`
|
- Button can have key trigger to use then by key: `button:set_key_trigger`
|
||||||
|
@ -36,8 +36,8 @@ end
|
|||||||
function M.on_message(self, message_id, message, sender)
|
function M.on_message(self, message_id, message, sender)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Call only if component with ON_LANGUAGE_CHANGE interest
|
-- Call only if component with ON_ANGUAGECHANinterest
|
||||||
function M.on_language_change(self)
|
function M.on_anguagechanself)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Call only if component with ON_LAYOUT_CHANGE interest
|
-- Call only if component with ON_LAYOUT_CHANGE interest
|
||||||
|
@ -96,3 +96,8 @@ Druid 0.4.0:
|
|||||||
Druid 0.5.0:
|
Druid 0.5.0:
|
||||||
- **Fix #61:** Button component: fix button animation node creation
|
- **Fix #61:** Button component: fix button animation node creation
|
||||||
- **Fix #64:** Hover component: wrong mouse_hover default state
|
- **Fix #64:** Hover component: wrong mouse_hover default state
|
||||||
|
- **Fix #71:** Blocker: blocker now correct block mouse hover event
|
||||||
|
- **Fix #72:** Fix `return nil` in some `on_input` functions
|
||||||
|
- **Fix #74:** Fix typo: strech -> stretch. Scroll function `set_extra_stretch_size` renamed
|
||||||
|
- Add `component.tempalte.lua` as template for Druid custom component
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user