Added toolbar

This commit is contained in:
Cooldude2606
2019-09-06 21:13:00 +01:00
parent c67ccaddea
commit 06e6ccd60b
99 changed files with 2463 additions and 104 deletions

View File

@@ -66,6 +66,7 @@
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Roles.html"><span class="module-name-item">Roles</span></a></div></li>
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Store.html"><span class="module-name-item">Store</span></a></div></li>
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Sudo.html"><span class="module-name-item">Sudo</span></a></div></li>
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../core/Toolbar.html"><span class="module-name-item">Toolbar</span></a></div></li>
</ul>
</li>
</ul>
@@ -501,6 +502,10 @@ button:clone(<span class="string">'CustomButton'</span>)
<td class="summary">Used to copy all the settings from one concept to another and removing links to the orginal</td>
</tr>
<tr>
<td class="name"><a href="#Prototype:define_clone">Prototype:define_clone(clone_callback)</a></td>
<td class="summary">Use to add your own callbacks to the clone function, for example adding to a local table</td>
</tr>
<tr>
<td class="name"><a href="#Prototype:change_name">Prototype:change_name([new_name=self.name])</a></td>
<td class="summary">Used internally to save concept names to the core gui module</td>
</tr>
@@ -3468,6 +3473,71 @@ button:change_name(<span class="string">'Not Button'</span>)</code></pre>
Gui.get_concept(<span class="string">'Button'</span>):clone(<span class="string">'CustomButton'</span>)</code></pre>
<!-- usage end -->
</dd>
<dt>
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#Prototype:define_clone" class="fragment-hashtag">#</a>
<span class="section-item-title" id="Prototype:define_clone">Prototype:define_clone(clone_callback)</span>
</div>
</dt>
<dd>
<div class="section-item-body">
<p class="section-item-summary">Use to add your own callbacks to the clone function, for example adding to a local table</p>
<p class="section-item-description"></p>
<!-- parameters start -->
<strong>Parameters:</strong>
<ul>
<li class="section-subitem-li">
<strong><em>clone_callback</em></strong>
<strong> : </strong>
(<span class="types"><a class="type" href="https://www.lua.org/pil/2.6.html">function</a></span>)
the function which is called with the concept to have something done to it
</li>
</ul>
<!-- parameters end -->
<!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
(<span class="types"><a class="type" href="https://www.lua.org/pil/2.5.html">table</a></span>)
<span class="return-text">self to allow chaining</span>
</li>
</ul>
<!-- returns end -->
<!-- see also start -->
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Adding concept to a local table
</span><span class="keyword">local</span> buttons = {}
<span class="keyword">local</span> button =
Gui.get_concept(<span class="string">'Button'</span>)
:define_clone(<span class="keyword">function</span>(concept)
buttons[concept.name] = concept
<span class="keyword">end</span>)</code></pre>
<!-- usage end -->
</dd>
<dt>
<div class="divider divider-custom"></div>
@@ -4970,7 +5040,7 @@ Gui.get_concept(<span class="string">'CustomButton'</span>)
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-01 19:16:00 UTC</i>
<i>Last updated 2019-09-06 21:12:05 UTC</i>
</div>
</div>
</div>