Added some structor concepts

This commit is contained in:
Cooldude2606
2019-09-17 21:09:15 +01:00
parent d40f0f142f
commit 1f204c6dac
114 changed files with 880 additions and 153 deletions

View File

@@ -44,7 +44,7 @@ Explosive Gaming (often ExpGaming) is a server hosting community with a strong f
## Contributing ## Contributing
All are welcome to make pull requests and issues for this scenario, if you are in any doubt please ask someone in our [discord]. If you do not know lua and don't feel like learning you can always make a [feature request]. Please keep in mind while making code changes: All are welcome to make pull requests and issues for this scenario, if you are in any doubt please ask someone in our [discord]. If you do not know lua and don't feel like learning you can always make a [feature request]. All our docs can be found [here][docs]. Please keep in mind while making code changes:
* New features should have the branch names: `feature/feature-name` * New features should have the branch names: `feature/feature-name`
* New features are merged into `dev` after it has been completed. * New features are merged into `dev` after it has been completed.
@@ -111,6 +111,7 @@ All are welcome to make pull requests and issues for this scenario, if you are i
The Explosive Gaming codebase is licensed under the [GNU General Public License v3.0](LICENSE) The Explosive Gaming codebase is licensed under the [GNU General Public License v3.0](LICENSE)
[docs]: https://explosivegaming.github.io/scenario/
[issues]: https://github.com/explosivegaming/scenario/issues/new/choose [issues]: https://github.com/explosivegaming/scenario/issues/new/choose
[website]: https://explosivegaming.nl [website]: https://explosivegaming.nl
[discord]: https://discord.explosivegaming.nl [discord]: https://discord.explosivegaming.nl

View File

@@ -349,7 +349,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -350,7 +350,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -377,7 +377,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -586,7 +586,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -350,7 +350,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -405,7 +405,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -461,7 +461,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -405,7 +405,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -321,7 +321,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -405,7 +405,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -377,7 +377,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -389,7 +389,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -501,7 +501,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -362,7 +362,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -389,7 +389,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -366,7 +366,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -361,7 +361,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -405,7 +405,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -459,7 +459,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -417,7 +417,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -612,7 +612,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -390,7 +390,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -361,7 +361,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -389,7 +389,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -322,7 +322,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -586,7 +586,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -558,7 +558,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -390,7 +390,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -444,7 +444,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -485,7 +485,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -570,7 +570,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -507,7 +507,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -238,7 +238,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -486,7 +486,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -295,7 +295,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -321,7 +321,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -443,7 +443,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -355,7 +355,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -339,7 +339,7 @@ see ./expcore/commands.lua for more details</p>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -355,7 +355,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -417,7 +417,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -238,7 +238,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -241,7 +241,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -296,7 +296,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -813,7 +813,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -385,7 +385,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -415,7 +415,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -325,7 +325,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -415,7 +415,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -835,7 +835,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -293,7 +293,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -355,7 +355,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -389,7 +389,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -745,7 +745,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -385,7 +385,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -356,7 +356,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -685,7 +685,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1209,7 +1209,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1330,7 +1330,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1111,7 +1111,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -985,7 +985,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1040,7 +1040,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1466,7 +1466,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1414,7 +1414,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1973,7 +1973,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -2747,7 +2747,7 @@ Common.table_insert(tbl,<span class="number">50</span>,tbl2)</code></pre>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -323,39 +323,63 @@ button:clone(<span class="string">'CustomButton'</span>)
<tbody> <tbody>
<tr> <tr>
<td class="name"><a href="#button">button</a></td> <td class="name"><a href="#button">button</a></td>
<td class="summary">The basic button element</td> <td class="summary">Clickable elements that fire on_gui_click when clicked.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#checkbox">checkbox</a></td> <td class="name"><a href="#checkbox">checkbox</a></td>
<td class="summary">The basic checkbox element</td> <td class="summary">Clickable elements with a cross in the middle that can be turned off or on.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#dropdown">dropdown</a></td> <td class="name"><a href="#dropdown">dropdown</a></td>
<td class="summary">The basic dropdown element</td> <td class="summary">A drop down list of other elements.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#elem_button">elem_button</a></td> <td class="name"><a href="#elem_button">elem_button</a></td>
<td class="summary">The basic dropdown element</td> <td class="summary">A button that lets the player pick one of an: item, entity, tile, or signal similar to the filter-select window.</td>
</tr>
<tr>
<td class="name"><a href="#empty">empty</a></td>
<td class="summary">A empty widget that just exists.</td>
</tr>
<tr>
<td class="name"><a href="#flow">flow</a></td>
<td class="summary">Invisible containers that lay out children either horizontally or vertically.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#frame">frame</a></td> <td class="name"><a href="#frame">frame</a></td>
<td class="summary">The basic frame element</td> <td class="summary">Grey semi-transparent boxes that contain other elements.</td>
</tr>
<tr>
<td class="name"><a href="#frame">frame</a></td>
<td class="summary">A piece of text.</td>
</tr>
<tr>
<td class="name"><a href="#line">line</a></td>
<td class="summary">A vertical or horizontal line.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#progress_bar">progress_bar</a></td> <td class="name"><a href="#progress_bar">progress_bar</a></td>
<td class="summary">The basic checkbox element</td> <td class="summary">Indicate progress by displaying a partially filled bar.</td>
</tr>
<tr>
<td class="name"><a href="#scroll">scroll</a></td>
<td class="summary">Similar to a flow but includes the ability to show and use scroll bars.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#slider">slider</a></td> <td class="name"><a href="#slider">slider</a></td>
<td class="summary">The basic slider element</td> <td class="summary">A number picker.</td>
</tr>
<tr>
<td class="name"><a href="#table">table</a></td>
<td class="summary">An invisible container that lays out children in a specific number of columns.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#text_box">text_box</a></td> <td class="name"><a href="#text_box">text_box</a></td>
<td class="summary">The text box element</td> <td class="summary">A multi-line text box that supports selection and copy-paste.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#text_field">text_field</a></td> <td class="name"><a href="#text_field">text_field</a></td>
<td class="summary">The text field element</td> <td class="summary">Boxes of text the user can type in.</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -636,7 +660,7 @@ button:clone(<span class="string">'CustomButton'</span>)
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The basic button element</p> <p class="section-item-summary">Clickable elements that fire on_gui_click when clicked.</p>
<p class="section-item-description"></p> <p class="section-item-description"></p>
<!-- parameters start --> <!-- parameters start -->
@@ -780,7 +804,7 @@ Gui.clone_concept(<span class="string">'button'</span>,<span class="string">'spr
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The basic checkbox element</p> <p class="section-item-summary">Clickable elements with a cross in the middle that can be turned off or on.</p>
<p class="section-item-description"></p> <p class="section-item-description"></p>
<!-- parameters start --> <!-- parameters start -->
@@ -902,7 +926,7 @@ Gui.clone_concept(<span class="string">'checkbox'</span>,<span class="string">'b
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The basic dropdown element</p> <p class="section-item-summary">A drop down list of other elements.</p>
<p class="section-item-description"></p> <p class="section-item-description"></p>
<!-- parameters start --> <!-- parameters start -->
@@ -1038,7 +1062,7 @@ Gui.clone_concept(<span class="string">'dropdown'</span>,<span class="string">'d
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The basic dropdown element</p> <p class="section-item-summary">A button that lets the player pick one of an: item, entity, tile, or signal similar to the filter-select window.</p>
<p class="section-item-description"></p> <p class="section-item-description"></p>
<!-- parameters start --> <!-- parameters start -->
@@ -1115,6 +1139,121 @@ Gui.clone_concept(<span class="string">'elem_button'</span>,<span class="string"
<span class="keyword">end</span>)</code></pre> <span class="keyword">end</span>)</code></pre>
<!-- usage end --> <!-- usage end -->
</dd>
<dt>
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#empty" class="fragment-hashtag">#</a>
<span class="section-item-title" id="empty">empty</span>
</div>
</dt>
<dd>
<div class="section-item-body">
<p class="section-item-summary">A empty widget that just exists.</p>
<p class="section-item-description"> The root GUI element screen is an empty-widget.</p>
<!-- parameters start -->
<strong>Properties / Events:</strong>
<ul>
<li class="section-subitem-li">
<strong><em>style</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 style that the element will have
</li>
</ul>
<!-- parameters end -->
<!-- returns start -->
<!-- returns end -->
<!-- see also start -->
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Making a draggable space styled widget
</span><span class="keyword">local</span> draggable_space =
Gui.clone_concept(<span class="string">'empty'</span>,<span class="string">'draggable_space'</span>)
:set_style(<span class="string">'draggable_space'</span>)</code></pre>
<!-- usage end -->
</dd>
<dt>
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#flow" class="fragment-hashtag">#</a>
<span class="section-item-title" id="flow">flow</span>
</div>
</dt>
<dd>
<div class="section-item-body">
<p class="section-item-summary">Invisible containers that lay out children either horizontally or vertically.</p>
<p class="section-item-description"> The root GUI elements (top, left and center; see LuaGui) are flows.</p>
<!-- parameters start -->
<strong>Properties / Events:</strong>
<ul>
<li class="section-subitem-li">
<strong><em>direction</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 direction that children will be added
</li>
</ul>
<!-- parameters end -->
<!-- returns start -->
<!-- returns end -->
<!-- see also start -->
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Making a basic flow, contains a label with hello world
</span><span class="keyword">local</span> basic_flow =
Gui.clone_concept(<span class="string">'flow'</span>,<span class="string">'basic_flow'</span>)
:define_draw(<span class="keyword">function</span>(properties,parent,element)
element.add{
<span class="global">type</span> = <span class="string">'label'</span>,
caption = <span class="string">'Hello, World!'</span>
}
<span class="keyword">end</span>)</code></pre>
<!-- usage end -->
</dd> </dd>
<dt> <dt>
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
@@ -1126,8 +1265,8 @@ Gui.clone_concept(<span class="string">'elem_button'</span>,<span class="string"
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The basic frame element</p> <p class="section-item-summary">Grey semi-transparent boxes that contain other elements.</p>
<p class="section-item-description"></p> <p class="section-item-description"> They have a caption, and, just like flows, they lay out children either horizontally or vertically.</p>
<!-- parameters start --> <!-- parameters start -->
<strong>Properties / Events:</strong> <strong>Properties / Events:</strong>
@@ -1182,7 +1321,7 @@ Gui.clone_concept(<span class="string">'elem_button'</span>,<span class="string"
<strong>Usage:</strong> <strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Making a basic frame, contains a label with hello world <pre class="code" data-lang="Lua"><code><span class="comment">-- Making a basic frame, contains a label with hello world
</span><span class="keyword">local</span> basic_frame = </span><span class="keyword">local</span> basic_frame =
Gui.clone_concept(<span class="string">'dropdown'</span>,<span class="string">'basic_frame'</span>) Gui.clone_concept(<span class="string">'frame'</span>,<span class="string">'basic_frame'</span>)
:set_title(<span class="string">'Basic Frame'</span>) :set_title(<span class="string">'Basic Frame'</span>)
:define_draw(<span class="keyword">function</span>(properties,parent,element) :define_draw(<span class="keyword">function</span>(properties,parent,element)
element.add{ element.add{
@@ -1192,6 +1331,131 @@ Gui.clone_concept(<span class="string">'dropdown'</span>,<span class="string">'b
<span class="keyword">end</span>)</code></pre> <span class="keyword">end</span>)</code></pre>
<!-- usage end --> <!-- usage end -->
</dd>
<dt>
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#frame" class="fragment-hashtag">#</a>
<span class="section-item-title" id="frame">frame</span>
</div>
</dt>
<dd>
<div class="section-item-body">
<p class="section-item-summary">A piece of text.</p>
<p class="section-item-description"></p>
<!-- parameters start -->
<strong>Properties / Events:</strong>
<ul>
<li class="section-subitem-li">
<strong><em>caption</em></strong>
<strong> : </strong>
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#string">string</a> or <a class="type" href="http://lua-api.factorio.com/latest/Concepts.html#LocalisedString">LocalisedString</a></span>)
the caption that will show in the label
</li>
<li class="section-subitem-li">
<strong><em>description</em></strong>
<strong> : </strong>
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#string">string</a> or <a class="type" href="http://lua-api.factorio.com/latest/Concepts.html#LocalisedString">LocalisedString</a></span>)
the description that will show on the label
</li>
</ul>
<!-- parameters end -->
<!-- returns start -->
<!-- returns end -->
<!-- see also start -->
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Making a basic label
</span><span class="keyword">local</span> basic_label =
Gui.clone_concept(<span class="string">'label'</span>,<span class="string">'basic_label'</span>)
:set_caption(<span class="string">'Hello, World!'</span>)</code></pre>
<!-- usage end -->
</dd>
<dt>
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#line" class="fragment-hashtag">#</a>
<span class="section-item-title" id="line">line</span>
</div>
</dt>
<dd>
<div class="section-item-body">
<p class="section-item-summary">A vertical or horizontal line.</p>
<p class="section-item-description"></p>
<!-- parameters start -->
<strong>Properties / Events:</strong>
<ul>
<li class="section-subitem-li">
<strong><em>direction</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 direction that children will be added
</li>
</ul>
<!-- parameters end -->
<!-- returns start -->
<!-- returns end -->
<!-- see also start -->
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Making a basic frame, contains a label with hello world
</span><span class="keyword">local</span> basic_line =
Gui.clone_concept(<span class="string">'line'</span>,<span class="string">'basic_line'</span>)</code></pre>
<!-- usage end -->
</dd> </dd>
<dt> <dt>
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
@@ -1203,7 +1467,7 @@ Gui.clone_concept(<span class="string">'dropdown'</span>,<span class="string">'b
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The basic checkbox element</p> <p class="section-item-summary">Indicate progress by displaying a partially filled bar.</p>
<p class="section-item-description"></p> <p class="section-item-description"></p>
<!-- parameters start --> <!-- parameters start -->
@@ -1319,6 +1583,85 @@ Gui.clone_concept(<span class="string">'progress_bar'</span>,<span class="string
<span class="keyword">end</span>)</code></pre> <span class="keyword">end</span>)</code></pre>
<!-- usage end --> <!-- usage end -->
</dd>
<dt>
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#scroll" class="fragment-hashtag">#</a>
<span class="section-item-title" id="scroll">scroll</span>
</div>
</dt>
<dd>
<div class="section-item-body">
<p class="section-item-summary">Similar to a flow but includes the ability to show and use scroll bars.</p>
<p class="section-item-description"></p>
<!-- parameters start -->
<strong>Properties / Events:</strong>
<ul>
<li class="section-subitem-li">
<strong><em>horizontal_scroll</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 horizontal scroll policy for this scroll pane
</li>
<li class="section-subitem-li">
<strong><em>vertical_scroll</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 vertical scroll policy for this scroll pane
</li>
</ul>
<!-- parameters end -->
<!-- returns start -->
<!-- returns end -->
<!-- see also start -->
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Making a basic flow, contains a label with hello world
</span><span class="keyword">local</span> basic_scroll =
Gui.clone_concept(<span class="string">'scroll'</span>,<span class="string">'basic_scroll'</span>)
:define_draw(<span class="keyword">function</span>(properties,parent,element)
element.style.hieght = <span class="number">50</span>
<span class="keyword">for</span> i = <span class="number">1</span>,<span class="number">10</span> <span class="keyword">do</span>
element.add{
<span class="global">type</span> = <span class="string">'label'</span>,
caption = i
}
<span class="keyword">end</span>
<span class="keyword">end</span>)</code></pre>
<!-- usage end -->
</dd> </dd>
<dt> <dt>
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
@@ -1330,7 +1673,7 @@ Gui.clone_concept(<span class="string">'progress_bar'</span>,<span class="string
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The basic slider element</p> <p class="section-item-summary">A number picker.</p>
<p class="section-item-description"></p> <p class="section-item-description"></p>
<!-- parameters start --> <!-- parameters start -->
@@ -1449,6 +1792,133 @@ Gui.clone_concept(<span class="string">'slider'</span>,<span class="string">'dis
<span class="keyword">end</span>)</code></pre> <span class="keyword">end</span>)</code></pre>
<!-- usage end --> <!-- usage end -->
</dd>
<dt>
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#table" class="fragment-hashtag">#</a>
<span class="section-item-title" id="table">table</span>
</div>
</dt>
<dd>
<div class="section-item-body">
<p class="section-item-summary">An invisible container that lays out children in a specific number of columns.</p>
<p class="section-item-description"> Column width is given by the largest element contained in that row.</p>
<!-- parameters start -->
<strong>Properties / Events:</strong>
<ul>
<li class="section-subitem-li">
<strong><em>column_count</em></strong>
<strong> : </strong>
(<span class="types"><a class="type" href="https://www.lua.org/pil/2.3.html">number</a> or <a class="type" href="https://www.lua.org/pil/2.6.html">function</a></span>)
the column count of the table or a function that returns the count being given then parent element
</li>
<li class="section-subitem-li">
<strong><em>vertical_lines</em></strong>
<strong> : </strong>
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#boolean">boolean</a></span>)
when true vertical lines will be drawn on the table
</li>
<li class="section-subitem-li">
<strong><em>horizontal_lines</em></strong>
<strong> : </strong>
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#boolean">boolean</a></span>)
when true horizontal lines will be drawn on the table
</li>
<li class="section-subitem-li">
<strong><em>header_lines</em></strong>
<strong> : </strong>
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#boolean">boolean</a></span>)
when true horizontal lines will be drawn under the first row
</li>
<li class="section-subitem-li">
<strong><em>vertical_centering</em></strong>
<strong> : </strong>
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Builtin-Types.html#boolean">boolean</a></span>)
when true element will be vertically centered with in the table
</li>
</ul>
<!-- parameters end -->
<!-- returns start -->
<!-- returns end -->
<!-- see also start -->
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Making a basic table, contains 25 labels
</span><span class="keyword">local</span> basic_table =
Gui.clone_concept(<span class="string">'table'</span>,<span class="string">'basic_table'</span>)
:set_column_count(<span class="number">5</span>)
:define_draw(<span class="keyword">function</span>(properties,parent,element)
<span class="keyword">for</span> i = <span class="number">1</span>,<span class="number">25</span> <span class="keyword">do</span>
element.add{
<span class="global">type</span> = <span class="string">'lable'</span>,
caption = i
}
<span class="keyword">end</span>
<span class="keyword">end</span>)</code></pre>
<!-- usage end -->
</dd> </dd>
<dt> <dt>
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
@@ -1460,7 +1930,7 @@ Gui.clone_concept(<span class="string">'slider'</span>,<span class="string">'dis
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The text box element</p> <p class="section-item-summary">A multi-line text box that supports selection and copy-paste.</p>
<p class="section-item-description"></p> <p class="section-item-description"></p>
<!-- parameters start --> <!-- parameters start -->
@@ -1618,7 +2088,7 @@ Gui.clone_concept(<span class="string">'text_box'</span>,<span class="string">'e
<dd> <dd>
<div class="section-item-body"> <div class="section-item-body">
<p class="section-item-summary">The text field element</p> <p class="section-item-summary">Boxes of text the user can type in.</p>
<p class="section-item-description"></p> <p class="section-item-description"></p>
<!-- parameters start --> <!-- parameters start -->
@@ -5040,7 +5510,7 @@ Gui.get_concept(<span class="string">'CustomButton'</span>)
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1433,7 +1433,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -3153,7 +3153,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1146,7 +1146,7 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -545,7 +545,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1630,7 +1630,7 @@ Gui.clone_concept(<span class="string">'toolbar-frame'</span>,<span class="strin
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -627,7 +627,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -630,7 +630,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -450,7 +450,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -633,7 +633,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -838,7 +838,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -514,7 +514,7 @@ see ./expcore/commands.lua for more details</span></td>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -352,7 +352,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -420,7 +420,7 @@ fraction will decide a chance to spawn. 1 alien for 2 spawner's will have 50% on
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1165,7 +1165,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -242,7 +242,7 @@
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td class="name"><a href="#Debug.print">Debug.print(message, stack_traceback)</a></td> <td class="name"><a href="#Debug.print">Debug.print(message, trace_levels)</a></td>
<td class="summary">Shows the given message if debug is enabled.</td> <td class="summary">Shows the given message if debug is enabled.</td>
</tr> </tr>
<tr> <tr>
@@ -281,7 +281,7 @@
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
<div class="block section-item-header"> <div class="block section-item-header">
<a href="#Debug.print" class="fragment-hashtag">#</a> <a href="#Debug.print" class="fragment-hashtag">#</a>
<span class="section-item-title" id="Debug.print">Debug.print(message, stack_traceback)</span> <span class="section-item-title" id="Debug.print">Debug.print(message, trace_levels)</span>
</div> </div>
</dt> </dt>
<dd> <dd>
@@ -316,7 +316,7 @@
<li class="section-subitem-li"> <li class="section-subitem-li">
<strong><em>stack_traceback</em></strong> <strong><em>trace_levels</em></strong>
<strong> : </strong> <strong> : </strong>
@@ -655,7 +655,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -324,7 +324,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -1293,7 +1293,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -435,7 +435,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -242,7 +242,7 @@
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td class="name"><a href="#calculate_y_intercept">calculate_y_intercept(x, slope)</a></td> <td class="name"><a href="#calculate_y_intercept">calculate_y_intercept(x, y, slope)</a></td>
<td class="summary">Calculates the y-intercept of a line</td> <td class="summary">Calculates the y-intercept of a line</td>
</tr> </tr>
</tbody> </tbody>
@@ -258,7 +258,7 @@
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
<div class="block section-item-header"> <div class="block section-item-header">
<a href="#calculate_y_intercept" class="fragment-hashtag">#</a> <a href="#calculate_y_intercept" class="fragment-hashtag">#</a>
<span class="section-item-title" id="calculate_y_intercept">calculate_y_intercept(x, slope)</span> <span class="section-item-title" id="calculate_y_intercept">calculate_y_intercept(x, y, slope)</span>
</div> </div>
</dt> </dt>
<dd> <dd>
@@ -283,7 +283,22 @@
<strong> : </strong> <strong> : </strong>
, y numbers - coordinates of point on line number - coordinates of point on line
</li>
<li class="section-subitem-li">
<strong><em>y</em></strong>
<strong> : </strong>
number - coordinates of point on line
</li> </li>
@@ -339,7 +354,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -442,7 +442,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -277,7 +277,7 @@
NOTICE: This function will invoke an error if called after init.</td> NOTICE: This function will invoke an error if called after init.</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#Module.register_transition_callback">Module.register_transition_callback(self, state, state, callback)</a></td> <td class="name"><a href="#Module.register_transition_callback">Module.register_transition_callback(self, old, new, callback)</a></td>
<td class="summary">Register a handler that will be invoked by StateMachine.transition <td class="summary">Register a handler that will be invoked by StateMachine.transition
You may register multiple handlers for the same transition You may register multiple handlers for the same transition
NOTICE: This function will invoke an error if called after init.</td> NOTICE: This function will invoke an error if called after init.</td>
@@ -591,7 +591,7 @@
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
<div class="block section-item-header"> <div class="block section-item-header">
<a href="#Module.register_transition_callback" class="fragment-hashtag">#</a> <a href="#Module.register_transition_callback" class="fragment-hashtag">#</a>
<span class="section-item-title" id="Module.register_transition_callback">Module.register_transition_callback(self, state, state, callback)</span> <span class="section-item-title" id="Module.register_transition_callback">Module.register_transition_callback(self, old, new, callback)</span>
</div> </div>
</dt> </dt>
<dd> <dd>
@@ -628,12 +628,12 @@
<li class="section-subitem-li"> <li class="section-subitem-li">
<strong><em>state</em></strong> <strong><em>old</em></strong>
<strong> : </strong> <strong> : </strong>
number/string entering state number/string exiting state
</li> </li>
@@ -643,7 +643,7 @@
<li class="section-subitem-li"> <li class="section-subitem-li">
<strong><em>state</em></strong> <strong><em>new</em></strong>
<strong> : </strong> <strong> : </strong>
@@ -753,7 +753,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -290,12 +290,12 @@
because this uses math.random, it cannot be used outside of events</td> because this uses math.random, it cannot be used outside of events</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#get_random_weighted">get_random_weighted(weight_table, item_index, weight_index)</a></td> <td class="name"><a href="#get_random_weighted">get_random_weighted(weighted_table, item_index, weight_index)</a></td>
<td class="summary">Chooses a random entry from a weighted table <td class="summary">Chooses a random entry from a weighted table
because this uses math.random, it cannot be used outside of events</td> because this uses math.random, it cannot be used outside of events</td>
</tr> </tr>
<tr> <tr>
<td class="name"><a href="#shuffle_table">shuffle_table(t)</a></td> <td class="name"><a href="#shuffle_table">shuffle_table(t, rng)</a></td>
<td class="summary">Creates a fisher-yates shuffle of a sequential number-indexed table <td class="summary">Creates a fisher-yates shuffle of a sequential number-indexed table
because this uses math.random, it cannot be used outside of events if no rng is supplied because this uses math.random, it cannot be used outside of events if no rng is supplied
from: http://www.sdknews.com/cross-platform/corona/tutorial-how-to-shuffle-table-items</td> from: http://www.sdknews.com/cross-platform/corona/tutorial-how-to-shuffle-table-items</td>
@@ -552,6 +552,12 @@
<!-- parameters end --> <!-- parameters end -->
<!-- returns start --> <!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
<span class="return-text"><any> the index of the element or nil</span>
</li>
</ul>
<!-- returns end --> <!-- returns end -->
@@ -616,6 +622,12 @@
<!-- parameters end --> <!-- parameters end -->
<!-- returns start --> <!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
<span class="return-text"><number|nil> the index of the element or nil</span>
</li>
</ul>
<!-- returns end --> <!-- returns end -->
@@ -680,6 +692,12 @@
<!-- parameters end --> <!-- parameters end -->
<!-- returns start --> <!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
<span class="return-text"><boolean> indicating success</span>
</li>
</ul>
<!-- returns end --> <!-- returns end -->
@@ -744,6 +762,12 @@
<!-- parameters end --> <!-- parameters end -->
<!-- returns start --> <!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
<span class="return-text"><boolean> indicating success</span>
</li>
</ul>
<!-- returns end --> <!-- returns end -->
@@ -908,7 +932,7 @@
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
<div class="block section-item-header"> <div class="block section-item-header">
<a href="#get_random_weighted" class="fragment-hashtag">#</a> <a href="#get_random_weighted" class="fragment-hashtag">#</a>
<span class="section-item-title" id="get_random_weighted">get_random_weighted(weight_table, item_index, weight_index)</span> <span class="section-item-title" id="get_random_weighted">get_random_weighted(weighted_table, item_index, weight_index)</span>
</div> </div>
</dt> </dt>
<dd> <dd>
@@ -929,7 +953,7 @@
<li class="section-subitem-li"> <li class="section-subitem-li">
<strong><em>weight_table</em></strong> <strong><em>weighted_table</em></strong>
<strong> : </strong> <strong> : </strong>
@@ -984,9 +1008,6 @@
<!-- see also start --> <!-- see also start -->
<strong>See also:</strong>
<ul>
</ul>
<!-- see also end --> <!-- see also end -->
<!-- usage start --> <!-- usage start -->
@@ -997,7 +1018,7 @@
<div class="divider divider-custom"></div> <div class="divider divider-custom"></div>
<div class="block section-item-header"> <div class="block section-item-header">
<a href="#shuffle_table" class="fragment-hashtag">#</a> <a href="#shuffle_table" class="fragment-hashtag">#</a>
<span class="section-item-title" id="shuffle_table">shuffle_table(t)</span> <span class="section-item-title" id="shuffle_table">shuffle_table(t, rng)</span>
</div> </div>
</dt> </dt>
<dd> <dd>
@@ -1029,6 +1050,21 @@
</li> </li>
<li class="section-subitem-li">
<strong><em>rng</em></strong>
<strong> : </strong>
<function> to provide random numbers
</li>
</ul> </ul>
<!-- parameters end --> <!-- parameters end -->
@@ -1383,7 +1419,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -652,7 +652,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -443,7 +443,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -790,7 +790,7 @@ Public License instead of this License. But first, please read
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -333,7 +333,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i> <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div> </div>
<div class="content-footer column col-9 col-sm-12"> <div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i> <i>Last updated 2019-09-17 21:04:13 UTC</i>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -68,6 +68,13 @@ custom_button:draw(game.player.gui.left)
local Gui = require 'expcore.gui.core' local Gui = require 'expcore.gui.core'
Gui.require_concept('frame') Gui.require_concept('frame')
Gui.require_concept('flow')
Gui.require_concept('table')
Gui.require_concept('label')
Gui.require_concept('line')
Gui.require_concept('scroll')
Gui.require_concept('empty')
Gui.require_concept('button') Gui.require_concept('button')
Gui.require_concept('checkbox') Gui.require_concept('checkbox')
Gui.require_concept('dropdown') Gui.require_concept('dropdown')

View File

@@ -5,7 +5,7 @@
local Gui = require 'expcore.gui.core' local Gui = require 'expcore.gui.core'
--[[-- The basic button element --[[-- Clickable elements that fire on_gui_click when clicked.
@element button @element button
@param on_click fired when the player clicks the button @param on_click fired when the player clicks the button
@param on_left_click fired when the player clicks with the left mouse button @param on_left_click fired when the player clicks with the left mouse button

View File

@@ -5,7 +5,7 @@
local Gui = require 'expcore.gui.core' local Gui = require 'expcore.gui.core'
--[[-- The basic checkbox element --[[-- Clickable elements with a cross in the middle that can be turned off or on.
@element checkbox @element checkbox
@param on_state_changed fired when the state of the element is changed @param on_state_changed fired when the state of the element is changed
@tparam ?string|Concepts.LocalisedString caption the message that is shown next to the checkbox @tparam ?string|Concepts.LocalisedString caption the message that is shown next to the checkbox

View File

@@ -6,7 +6,7 @@
local Gui = require 'expcore.gui.core' local Gui = require 'expcore.gui.core'
local array_insert = ext_require('expcore.common','array_insert') local array_insert = ext_require('expcore.common','array_insert')
--[[-- The basic dropdown element --[[-- A drop down list of other elements.
@element dropdown @element dropdown
@param on_selection_changed fired when the selected value is changed @param on_selection_changed fired when the selected value is changed
@tparam ?string|Concepts.LocalisedString|function default the option which is selected by default, or a function which returns the default @tparam ?string|Concepts.LocalisedString|function default the option which is selected by default, or a function which returns the default

View File

@@ -5,7 +5,7 @@
local Gui = require 'expcore.gui.core' local Gui = require 'expcore.gui.core'
--[[-- The basic dropdown element --[[-- A button that lets the player pick one of an: item, entity, tile, or signal similar to the filter-select window.
@element elem_button @element elem_button
@param on_selection_changed fired when the selected value is changed @param on_selection_changed fired when the selected value is changed
@tparam ?string|Concepts.SignalID|function default the option which is selected by default, or a function which returns the default @tparam ?string|Concepts.SignalID|function default the option which is selected by default, or a function which returns the default

View File

@@ -0,0 +1,26 @@
--[[-- Core Module - Gui
@module Gui
@alias Gui
]]
local Gui = require 'expcore.gui.core'
--[[-- A empty widget that just exists. The root GUI element screen is an empty-widget.
@element empty
@tparam string style the style that the element will have
@usage-- Making a draggable space styled widget
local draggable_space =
Gui.clone_concept('empty','draggable_space')
:set_style('draggable_space')
]]
Gui.new_concept('empty')
:new_property('style')
:define_draw(function(properties,parent,element)
element = parent.add{
name = properties.name,
type = 'empty-widget',
style = properties.style
}
return element
end)

Some files were not shown because too many files have changed in this diff Show More