mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 04:06:39 +09:00
Added production to control
This commit is contained in:
@@ -35,14 +35,20 @@
|
||||
</div>
|
||||
|
||||
|
||||
<!-- sidebar navigation -->
|
||||
<!-- sidebar navigation -->
|
||||
<!-- list of items in a module -->
|
||||
<ul class="nav nav-module-contents">
|
||||
<li class="nav-item">
|
||||
<h2>Sections</h2>
|
||||
<ul class="nav">
|
||||
<li class="nav-item"><a href="#Functions"><span class="fragment-hashtag">#</span> Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav nav-modules">
|
||||
<li class="nav-item">
|
||||
<h2>Modules</h2>
|
||||
<ul class="nav">
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/Jail.html"><span class="module-name-item">Jail</span></a></div></li>
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/Reports.html"><span class="module-name-item">Reports</span></a></div></li>
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/Warnings.html"><span class="module-name-item">Warnings</span></a></div></li>
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/config._file_loader.html"><span class="module-name-item">config._file_loader</span></a></div></li>
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/config.action_buttons.html"><span class="module-name-item">config.action_buttons</span></a></div></li>
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../modules/config.advanced_start.html"><span class="module-name-item">config.advanced_start</span></a></div></li>
|
||||
@@ -109,6 +115,17 @@
|
||||
</ul>
|
||||
<ul class="nav nav-modules">
|
||||
<li class="nav-item">
|
||||
<h2>Control</h2>
|
||||
<ul class="nav">
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Jail.html"><span class="module-name-item">Jail</span></a></div></li>
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Production.html"><span class="module-name-item">Production</span></a></div></li>
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Reports.html"><span class="module-name-item">Reports</span></a></div></li>
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../control/Warnings.html"><span class="module-name-item">Warnings</span></a></div></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav nav-modules">
|
||||
<li class="nav-item">
|
||||
<h2>Topics</h2>
|
||||
<ul class="nav">
|
||||
<li class="nav-item"><div class="nav-item-block-inactive block"><a href="../topics/readme.md.html"><span class="module-name-item">readme.md</span></a></div></li>
|
||||
@@ -118,18 +135,17 @@
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="up-to-top">
|
||||
<!-- list of items in a module -->
|
||||
<ul class="nav nav-module-contents">
|
||||
<li class="nav-item">
|
||||
<h4>Contents of <strong>expcore.gui.elements.dropdown</strong></h4>
|
||||
<h4>Jump to Section</h4>
|
||||
<ul class="nav">
|
||||
<li class="nav-item"><a href="#Functions"><span class="fragment-hashtag">#</span> Functions</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="up-to-top">
|
||||
<a href="#">Top <i class="icon icon-upward"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -167,33 +183,33 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown._prototype:add_option_callback">Dropdown._prototype:add_option_callback (option, callback)</a></td>
|
||||
<td class="summary">Adds a case specific callback which will only run when that option is selected (general case still triggered)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown._prototype:new_dynamic_options">Dropdown._prototype:new_dynamic_options (callback)</a></td>
|
||||
<td class="summary">Adds a callback which should return a table of values to be added as options for the dropdown (appended after static options)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown._prototype:new_static_options">Dropdown._prototype:new_static_options (options[, ...], the)</a></td>
|
||||
<td class="summary">Adds new static options to the dropdown which will trigger the general callback</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown.get_selected_value">Dropdown.get_selected_value (element)</a></td>
|
||||
<td class="summary">Returns the currently selected value rather than index</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown.new_dropdown">Dropdown.new_dropdown ([name])</a></td>
|
||||
<td class="name"><a href="#Dropdown.new_dropdown">Dropdown.new_dropdown([name])</a></td>
|
||||
<td class="summary">Creates a new dropdown element define</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown.new_list_box">Dropdown.new_list_box ([name])</a></td>
|
||||
<td class="name"><a href="#Dropdown.new_list_box">Dropdown.new_list_box([name])</a></td>
|
||||
<td class="summary">Creates a new list box element define</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown.select_value">Dropdown.select_value (element, value)</a></td>
|
||||
<td class="name"><a href="#Dropdown._prototype:new_static_options">Dropdown._prototype:new_static_options(options[, ...], the)</a></td>
|
||||
<td class="summary">Adds new static options to the dropdown which will trigger the general callback</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown._prototype:new_dynamic_options">Dropdown._prototype:new_dynamic_options(callback)</a></td>
|
||||
<td class="summary">Adds a callback which should return a table of values to be added as options for the dropdown (appended after static options)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown._prototype:add_option_callback">Dropdown._prototype:add_option_callback(option, callback)</a></td>
|
||||
<td class="summary">Adds a case specific callback which will only run when that option is selected (general case still triggered)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown.select_value">Dropdown.select_value(element, value)</a></td>
|
||||
<td class="summary">Selects the option from a dropdown or list box given the value rather than key</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name"><a href="#Dropdown.get_selected_value">Dropdown.get_selected_value(element)</a></td>
|
||||
<td class="summary">Returns the currently selected value rather than index</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- module section list end -->
|
||||
@@ -206,14 +222,14 @@
|
||||
<dt>
|
||||
<div class="divider divider-custom"></div>
|
||||
<div class="block section-item-header">
|
||||
<a href="#Dropdown._prototype:add_option_callback" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown._prototype:add_option_callback">Dropdown._prototype:add_option_callback (option, callback)</span>
|
||||
<a href="#Dropdown.new_dropdown" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown.new_dropdown">Dropdown.new_dropdown([name])</span>
|
||||
</div>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="section-item-body">
|
||||
|
||||
<p class="section-item-summary">Adds a case specific callback which will only run when that option is selected (general case still triggered)</p>
|
||||
<p class="section-item-summary">Creates a new dropdown element define</p>
|
||||
<p class="section-item-description"></p>
|
||||
|
||||
<!-- parameters start -->
|
||||
@@ -227,33 +243,15 @@
|
||||
|
||||
<li class="section-subitem-li">
|
||||
|
||||
<strong><em>option</em></strong>
|
||||
<strong><em>name</em></strong>
|
||||
|
||||
<strong> : </strong>
|
||||
|
||||
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#string">string</a></span>)
|
||||
|
||||
the name of the option to trigger the callback on; if not already added then will be added as an option
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="section-subitem-li">
|
||||
|
||||
<strong><em>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 that will be called when that option is selected
|
||||
callback param - player LuaPlayer - the player who owns the gui element
|
||||
callback param - element LuaGuiElement - the element which is being effected
|
||||
callback param - value string - the new option that has been selected
|
||||
the optional debug name that can be added
|
||||
|
||||
(<em>optional</em>)
|
||||
</li>
|
||||
|
||||
|
||||
@@ -265,8 +263,8 @@
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li>
|
||||
(<span class="types"><span class="type">self</span></span>)
|
||||
<span class="return-text">the define to allow chaining</span>
|
||||
(<span class="types"><a class="type" href="https://www.lua.org/pil/2.5.html">table</a></span>)
|
||||
<span class="return-text">the new dropdown element define</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- returns end -->
|
||||
@@ -282,14 +280,14 @@
|
||||
<dt>
|
||||
<div class="divider divider-custom"></div>
|
||||
<div class="block section-item-header">
|
||||
<a href="#Dropdown._prototype:new_dynamic_options" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown._prototype:new_dynamic_options">Dropdown._prototype:new_dynamic_options (callback)</span>
|
||||
<a href="#Dropdown.new_list_box" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown.new_list_box">Dropdown.new_list_box([name])</span>
|
||||
</div>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="section-item-body">
|
||||
|
||||
<p class="section-item-summary">Adds a callback which should return a table of values to be added as options for the dropdown (appended after static options)</p>
|
||||
<p class="section-item-summary">Creates a new list box element define</p>
|
||||
<p class="section-item-description"></p>
|
||||
|
||||
<!-- parameters start -->
|
||||
@@ -303,17 +301,15 @@
|
||||
|
||||
<li class="section-subitem-li">
|
||||
|
||||
<strong><em>callback</em></strong>
|
||||
<strong><em>name</em></strong>
|
||||
|
||||
<strong> : </strong>
|
||||
|
||||
(<span class="types"><a class="type" href="https://www.lua.org/pil/2.6.html">function</a></span>)
|
||||
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#string">string</a></span>)
|
||||
|
||||
the function that will run to get the options for the dropdown
|
||||
callback param - player LuaPlayer - the player that the element is being drawn to
|
||||
callback param - element LuaGuiElement - the element that is being drawn
|
||||
callback return - table - the values of this table will be appended to the static options of the dropdown
|
||||
the optional debug name that can be added
|
||||
|
||||
(<em>optional</em>)
|
||||
</li>
|
||||
|
||||
|
||||
@@ -325,8 +321,8 @@
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li>
|
||||
(<span class="types"><span class="type">self</span></span>)
|
||||
<span class="return-text">the define to allow chaining</span>
|
||||
(<span class="types"><a class="type" href="https://www.lua.org/pil/2.5.html">table</a></span>)
|
||||
<span class="return-text">the new list box element define</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- returns end -->
|
||||
@@ -343,7 +339,7 @@
|
||||
<div class="divider divider-custom"></div>
|
||||
<div class="block section-item-header">
|
||||
<a href="#Dropdown._prototype:new_static_options" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown._prototype:new_static_options">Dropdown._prototype:new_static_options (options[, ...], the)</span>
|
||||
<span class="section-item-title" id="Dropdown._prototype:new_static_options">Dropdown._prototype:new_static_options(options[, ...], the)</span>
|
||||
</div>
|
||||
</dt>
|
||||
<dd>
|
||||
@@ -425,14 +421,14 @@
|
||||
<dt>
|
||||
<div class="divider divider-custom"></div>
|
||||
<div class="block section-item-header">
|
||||
<a href="#Dropdown.get_selected_value" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown.get_selected_value">Dropdown.get_selected_value (element)</span>
|
||||
<a href="#Dropdown._prototype:new_dynamic_options" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown._prototype:new_dynamic_options">Dropdown._prototype:new_dynamic_options(callback)</span>
|
||||
</div>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="section-item-body">
|
||||
|
||||
<p class="section-item-summary">Returns the currently selected value rather than index</p>
|
||||
<p class="section-item-summary">Adds a callback which should return a table of values to be added as options for the dropdown (appended after static options)</p>
|
||||
<p class="section-item-description"></p>
|
||||
|
||||
<!-- parameters start -->
|
||||
@@ -446,13 +442,16 @@
|
||||
|
||||
<li class="section-subitem-li">
|
||||
|
||||
<strong><em>element</em></strong>
|
||||
<strong><em>callback</em></strong>
|
||||
|
||||
<strong> : </strong>
|
||||
|
||||
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/LuaGuiElement.html">LuaGuiElement</a></span>)
|
||||
(<span class="types"><a class="type" href="https://www.lua.org/pil/2.6.html">function</a></span>)
|
||||
|
||||
the gui element that you want to get the value of
|
||||
the function that will run to get the options for the dropdown
|
||||
callback param - player LuaPlayer - the player that the element is being drawn to
|
||||
callback param - element LuaGuiElement - the element that is being drawn
|
||||
callback return - table - the values of this table will be appended to the static options of the dropdown
|
||||
|
||||
</li>
|
||||
|
||||
@@ -465,8 +464,8 @@
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li>
|
||||
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#string">string</a></span>)
|
||||
<span class="return-text">the value that is currently selected</span>
|
||||
(<span class="types"><span class="type">self</span></span>)
|
||||
<span class="return-text">the define to allow chaining</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- returns end -->
|
||||
@@ -482,14 +481,14 @@
|
||||
<dt>
|
||||
<div class="divider divider-custom"></div>
|
||||
<div class="block section-item-header">
|
||||
<a href="#Dropdown.new_dropdown" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown.new_dropdown">Dropdown.new_dropdown ([name])</span>
|
||||
<a href="#Dropdown._prototype:add_option_callback" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown._prototype:add_option_callback">Dropdown._prototype:add_option_callback(option, callback)</span>
|
||||
</div>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="section-item-body">
|
||||
|
||||
<p class="section-item-summary">Creates a new dropdown element define</p>
|
||||
<p class="section-item-summary">Adds a case specific callback which will only run when that option is selected (general case still triggered)</p>
|
||||
<p class="section-item-description"></p>
|
||||
|
||||
<!-- parameters start -->
|
||||
@@ -503,73 +502,33 @@
|
||||
|
||||
<li class="section-subitem-li">
|
||||
|
||||
<strong><em>name</em></strong>
|
||||
<strong><em>option</em></strong>
|
||||
|
||||
<strong> : </strong>
|
||||
|
||||
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#string">string</a></span>)
|
||||
|
||||
the optional debug name that can be added
|
||||
the name of the option to trigger the callback on; if not already added then will be added as an option
|
||||
|
||||
(<em>optional</em>)
|
||||
</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">the new dropdown element define</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- returns end -->
|
||||
|
||||
|
||||
<!-- see also start -->
|
||||
<!-- see also end -->
|
||||
|
||||
<!-- usage start -->
|
||||
<!-- usage end -->
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<div class="divider divider-custom"></div>
|
||||
<div class="block section-item-header">
|
||||
<a href="#Dropdown.new_list_box" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown.new_list_box">Dropdown.new_list_box ([name])</span>
|
||||
</div>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="section-item-body">
|
||||
|
||||
<p class="section-item-summary">Creates a new list box element define</p>
|
||||
<p class="section-item-description"></p>
|
||||
|
||||
<!-- parameters start -->
|
||||
<strong>Parameters:</strong>
|
||||
|
||||
<ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="section-subitem-li">
|
||||
|
||||
<strong><em>name</em></strong>
|
||||
<strong><em>callback</em></strong>
|
||||
|
||||
<strong> : </strong>
|
||||
|
||||
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#string">string</a></span>)
|
||||
(<span class="types"><a class="type" href="https://www.lua.org/pil/2.6.html">function</a></span>)
|
||||
|
||||
the optional debug name that can be added
|
||||
the function that will be called when that option is selected
|
||||
callback param - player LuaPlayer - the player who owns the gui element
|
||||
callback param - element LuaGuiElement - the element which is being effected
|
||||
callback param - value string - the new option that has been selected
|
||||
|
||||
(<em>optional</em>)
|
||||
</li>
|
||||
|
||||
|
||||
@@ -581,8 +540,8 @@
|
||||
<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">the new list box element define</span>
|
||||
(<span class="types"><span class="type">self</span></span>)
|
||||
<span class="return-text">the define to allow chaining</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- returns end -->
|
||||
@@ -599,7 +558,7 @@
|
||||
<div class="divider divider-custom"></div>
|
||||
<div class="block section-item-header">
|
||||
<a href="#Dropdown.select_value" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown.select_value">Dropdown.select_value (element, value)</span>
|
||||
<span class="section-item-title" id="Dropdown.select_value">Dropdown.select_value(element, value)</span>
|
||||
</div>
|
||||
</dt>
|
||||
<dd>
|
||||
@@ -661,6 +620,63 @@
|
||||
<!-- returns end -->
|
||||
|
||||
|
||||
<!-- see also start -->
|
||||
<!-- see also end -->
|
||||
|
||||
<!-- usage start -->
|
||||
<!-- usage end -->
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<div class="divider divider-custom"></div>
|
||||
<div class="block section-item-header">
|
||||
<a href="#Dropdown.get_selected_value" class="fragment-hashtag">#</a>
|
||||
<span class="section-item-title" id="Dropdown.get_selected_value">Dropdown.get_selected_value(element)</span>
|
||||
</div>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="section-item-body">
|
||||
|
||||
<p class="section-item-summary">Returns the currently selected value rather than index</p>
|
||||
<p class="section-item-description"></p>
|
||||
|
||||
<!-- parameters start -->
|
||||
<strong>Parameters:</strong>
|
||||
|
||||
<ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="section-subitem-li">
|
||||
|
||||
<strong><em>element</em></strong>
|
||||
|
||||
<strong> : </strong>
|
||||
|
||||
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/LuaGuiElement.html">LuaGuiElement</a></span>)
|
||||
|
||||
the gui element that you want to get the value of
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<!-- parameters end -->
|
||||
|
||||
<!-- returns start -->
|
||||
<strong>Returns:</strong>
|
||||
<ul>
|
||||
<li>
|
||||
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#string">string</a></span>)
|
||||
<span class="return-text">the value that is currently selected</span>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- returns end -->
|
||||
|
||||
|
||||
<!-- see also start -->
|
||||
<!-- see also end -->
|
||||
|
||||
@@ -683,7 +699,7 @@
|
||||
<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-06-29 01:27:33 UTC</i>
|
||||
<i>Last updated 2019-07-20 23:44:09 UTC</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user