Better docs for store

This commit is contained in:
Cooldude2606
2019-09-22 17:35:32 +01:00
parent ce88e0a296
commit 4f4d8d9bd5
96 changed files with 261 additions and 134 deletions

View File

@@ -349,7 +349,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -350,7 +350,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -377,7 +377,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -586,7 +586,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -350,7 +350,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -405,7 +405,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -461,7 +461,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -405,7 +405,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -321,7 +321,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -405,7 +405,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -377,7 +377,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -389,7 +389,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -501,7 +501,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -362,7 +362,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -389,7 +389,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -366,7 +366,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -361,7 +361,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -405,7 +405,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -459,7 +459,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -417,7 +417,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -612,7 +612,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -390,7 +390,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -361,7 +361,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -389,7 +389,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -322,7 +322,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -586,7 +586,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -558,7 +558,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -390,7 +390,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -444,7 +444,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -485,7 +485,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -570,7 +570,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -507,7 +507,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -238,7 +238,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -486,7 +486,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -295,7 +295,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -321,7 +321,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -443,7 +443,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -355,7 +355,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</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>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -355,7 +355,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -417,7 +417,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -238,7 +238,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -241,7 +241,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -296,7 +296,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -813,7 +813,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -385,7 +385,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -415,7 +415,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -325,7 +325,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -415,7 +415,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -835,7 +835,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -293,7 +293,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -355,7 +355,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -389,7 +389,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -745,7 +745,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -385,7 +385,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -356,7 +356,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -685,7 +685,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1209,7 +1209,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1330,7 +1330,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1111,7 +1111,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -985,7 +985,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1040,7 +1040,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1466,7 +1466,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1414,7 +1414,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1973,7 +1973,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</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>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -762,7 +762,7 @@ Gui.new_concept(<span class="string">'button'</span>) <span class="comment">-- W
<strong> : </strong>
(<span class="types"><span class="type">SpritePath</span></span>)
(<span class="types"><a class="type" href="http://lua-api.factorio.com/latest/Concepts.html#SpritePath">SpritePath</a></span>)
upto three sprites in the order: default, hovered, clicked
@@ -5611,7 +5611,7 @@ Gui.get_concept(<span class="string">'CustomButton'</span>)
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1433,7 +1433,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -3153,7 +3153,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -269,6 +269,11 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
</span><span class="comment">-- although you will need to set up a method of storing the data outside the game
</span>Store.register(team_scores,<span class="keyword">true</span>,<span class="keyword">function</span>(value,key)
game.<span class="global">print</span>(<span class="string">'Team '</span>..key..<span class="string">' now has a score of '</span>..value)
<span class="keyword">end</span>)
<span class="comment">-- If you want multiple handlers on one store location then you can register to the raw event
</span>Event.add(Store.events.on_value_changed,<span class="keyword">function</span>(event)
game.<span class="global">print</span>(<span class="string">'Store '</span>..event.location..<span class="string">'/'</span>..event.key..<span class="string">' was updated to: '</span>..event.value)
<span class="keyword">end</span>)</code></pre>
<!-- module usage end -->
@@ -328,7 +333,7 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<tr>
<td class="name"><a href="#get_keys">get_keys(location)</a></td>
<td class="summary">Gets all non nil keys at a location, keys can be added and removed during runtime
this is similar to Store.get but will always return a table even if it is empty</td>
this is similar to Store.get but will always return a table even if it is empty</td>
</tr>
<tr>
<td class="name"><a href="#is_registered">is_registered(location)</a></td>
@@ -539,6 +544,14 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Registering a new store location
</span><span class="keyword">local</span> store_id = Store.register()</code></pre>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Registering a new store location, with custom update callback
</span><span class="keyword">local</span> store_id = Store.uid_location()
Store.register(store_id,<span class="keyword">function</span>(value,key)
game.<span class="global">print</span>(<span class="string">'Store '</span>..store_id..<span class="string">'/'</span>..key..<span class="string">' was updated to: '</span>..value)
<span class="keyword">end</span>)</code></pre>
<!-- usage end -->
</dd>
@@ -613,6 +626,10 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Getting the data at a store location
</span><span class="keyword">local</span> data = Store.get(store_id_no_keys)
<span class="keyword">local</span> data = Store.get(store_id_with_keys,<span class="string">'key_one'</span>)</code></pre>
<!-- usage end -->
</dd>
@@ -737,6 +754,10 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Setting the data at a store location
</span>Store.set(store_id_no_keys,<span class="string">'Hello, World!'</span>)
Store.set(store_id_with_keys,<span class="string">'key_one'</span>,<span class="string">'Hello, World!'</span>)</code></pre>
<!-- usage end -->
</dd>
@@ -821,6 +842,21 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Updating a value stored at a location
</span>Store.update(store_id_no_keys,<span class="keyword">function</span>(value)
<span class="keyword">return</span> value + <span class="number">1</span>
<span class="keyword">end</span>)
Store.update(store_id_with_keys,<span class="string">'key_one'</span>,<span class="keyword">function</span>(value)
<span class="keyword">return</span> value + <span class="number">1</span>
<span class="keyword">end</span>)</code></pre>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Updating a table stored at a location
</span>Store.update(store_id_no_keys,<span class="keyword">function</span>(value)
value.ctn = value.ctn + <span class="number">1</span>
<span class="keyword">end</span>)
Store.update(store_id_with_keys,<span class="string">'key_one'</span>,<span class="keyword">function</span>(value)
value.ctn = value.ctn + <span class="number">1</span>
<span class="keyword">end</span>)</code></pre>
<!-- usage end -->
</dd>
@@ -888,6 +924,15 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Updating all values at a location
</span>Store.update(store_id_with_keys,<span class="keyword">function</span>(value)
<span class="keyword">return</span> value + <span class="number">1</span>
<span class="keyword">end</span>)</code></pre>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Updating all tables at a location
</span>Store.update(store_id_with_keys,<span class="keyword">function</span>(value)
value.ctn = value.ctn + <span class="number">1</span>
<span class="keyword">end</span>)</code></pre>
<!-- usage end -->
</dd>
@@ -979,6 +1024,10 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Clear the data at a location
</span>Store.clear(store_id_no_keys)
Store.clear(store_id_with_keys,<span class="string">'key_one'</span>)</code></pre>
<!-- usage end -->
</dd>
@@ -993,7 +1042,7 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<div class="section-item-body">
<p class="section-item-summary">Gets all non nil keys at a location, keys can be added and removed during runtime
this is similar to Store.get but will always return a table even if it is empty</p>
this is similar to Store.get but will always return a table even if it is empty</p>
<p class="section-item-description"></p>
<!-- parameters start -->
@@ -1037,6 +1086,9 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Get all keys at a store location
</span><span class="keyword">local</span> keys = Store.get_keys(store_id_with_keys)</code></pre>
<!-- usage end -->
</dd>
@@ -1094,6 +1146,9 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Check that a store is registered
</span><span class="keyword">local</span> registerd = Store.is_registered(store_id)</code></pre>
<!-- usage end -->
</dd>
@@ -1128,6 +1183,9 @@ Store.register(team_scores,<span class="keyword">function</span>(value,key)
<!-- see also end -->
<!-- usage start -->
<strong>Usage:</strong>
<pre class="code" data-lang="Lua"><code><span class="comment">-- Get a new unique store id
</span><span class="keyword">local</span> store_id = Store.uid_location()</code></pre>
<!-- usage end -->
</dd>
@@ -1146,7 +1204,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>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -545,7 +545,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1185,6 +1185,7 @@ Gui.new_concept(<span class="string">'toolbar-frame'</span>)
:set_permission_alias(<span class="string">'player_list'</span>)
:set_caption(<span class="string">'Player List'</span>)
:toggle_with_click()
:define_draw(<span class="keyword">function</span>(properties,parent,element)
<span class="keyword">local</span> list_area =
element.add{
@@ -1205,6 +1206,7 @@ Gui.new_concept(<span class="string">'toolbar-frame'</span>)
}
<span class="keyword">end</span>
<span class="keyword">end</span>)
:on_update(<span class="keyword">function</span>(event)
<span class="keyword">local</span> list_area = event.element.scroll
list_area.clear()
@@ -1658,7 +1660,7 @@ Gui.new_concept(<span class="string">'toolbar-frame'</span>)
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -627,7 +627,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -630,7 +630,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -450,7 +450,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -633,7 +633,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -838,7 +838,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</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>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -352,7 +352,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</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>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1165,7 +1165,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -655,7 +655,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -324,7 +324,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1293,7 +1293,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -435,7 +435,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -354,7 +354,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -442,7 +442,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -753,7 +753,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -1419,7 +1419,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -652,7 +652,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -443,7 +443,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</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>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -334,7 +334,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-09-22 17:08:34 UTC</i>
<i>Last updated 2019-09-22 17:34:57 UTC</i>
</div>
</div>
</div>

View File

@@ -14,7 +14,7 @@ local Gui = require 'expcore.gui.core'
@tparam ?string|Concepts.LocalisedString caption the message that is shown on the button
@tparam ?string|Concepts.LocalisedString tooltip the tooltip that shows when a player hovers over the button
@tparam SpritePath sprite upto three sprites in the order: default, hovered, clicked
@tparam Concepts.SpritePath sprite upto three sprites in the order: default, hovered, clicked
@usage-- Making a basic button
local basic_button =

View File

@@ -40,6 +40,11 @@ Store.register(team_scores,true,function(value,key)
game.print('Team '..key..' now has a score of '..value)
end)
-- If you want multiple handlers on one store location then you can register to the raw event
Event.add(Store.events.on_value_changed,function(event)
game.print('Store '..event.location..'/'..event.key..' was updated to: '..event.value)
end)
]]
local Global = require 'utils.global' --- @dep utils.global
@@ -67,11 +72,19 @@ local function error_not_table(value)
end
end
--- Registers a new location with an update callback which is triggered when the value updates
-- @tparam[opt] string location string a unique that points to the data, string used rather than token to allow migration
-- @tparam[opt=false] boolean synced when true will output changes to a file so it can be synced
-- @tparam[opt] function callback when given the callback will be automatically registered to the update of the value
-- @treturn string the location that is being used
--[[-- Registers a new location with an update callback which is triggered when the value updates
@tparam[opt] string location string a unique that points to the data, string used rather than token to allow migration
@tparam[opt=false] boolean synced when true will output changes to a file so it can be synced
@tparam[opt] function callback when given the callback will be automatically registered to the update of the value
@treturn string the location that is being used
@usage-- Registering a new store location
local store_id = Store.register()
@usage-- Registering a new store location, with custom update callback
local store_id = Store.uid_location()
Store.register(store_id,function(value,key)
game.print('Store '..store_id..'/'..key..' was updated to: '..value)
end)
]]
function Store.register(location,synced,callback)
if _LIFECYCLE ~= _STAGE.control then
return error('Can only be called during the control stage', 2)
@@ -99,10 +112,14 @@ function Store.register(location,synced,callback)
return location
end
--- Gets the value stored at a location, this location must be registered
-- @tparam string location the location to get the data from
-- @tparam[opt] string key the key location if used
-- @treturn any the data which was stored at the location
--[[-- Gets the value stored at a location, this location must be registered
@tparam string location the location to get the data from
@tparam[opt] string key the key location if used
@treturn any the data which was stored at the location
@usage-- Getting the data at a store location
local data = Store.get(store_id_no_keys)
local data = Store.get(store_id_with_keys,'key_one')
]]
function Store.get(location,key)
if not Store.registered[location] then
return error('Location is not registered', 2)
@@ -117,13 +134,17 @@ function Store.get(location,key)
return data
end
--- Sets the value at a location, this location must be registered
-- @tparam string location the location to set the data to
-- @tparam[opt] string key the key location if used
-- @tparam any value the new value to set at the location, value may be reverted if there is a watch callback, cant be nil
-- @tparam[opt=false] boolean from_sync set this true to avoid an output to the sync file
-- @tparam[opt=false] boolean from_internal set this true to add one to the error stack offset
-- @treturn boolean true if it was successful
--[[-- Sets the value at a location, this location must be registered
@tparam string location the location to set the data to
@tparam[opt] string key the key location if used
@tparam any value the new value to set at the location, value may be reverted if there is a watch callback, cant be nil
@tparam[opt=false] boolean from_sync set this true to avoid an output to the sync file
@tparam[opt=false] boolean from_internal set this true to add one to the error stack offset
@treturn boolean true if it was successful
@usage-- Setting the data at a store location
Store.set(store_id_no_keys,'Hello, World!')
Store.set(store_id_with_keys,'key_one','Hello, World!')
]]
function Store.set(location,key,value,from_sync,from_internal)
if not Store.registered[location] then
return error('Location is not registered', from_internal and 3 or 2)
@@ -157,10 +178,25 @@ function Store.set(location,key,value,from_sync,from_internal)
return true
end
--- Allows for updating a value based on the current value; only valid way to change tables in a store
-- @tparam string location the location to set the data to
-- @tparam[opt] string key the key location if required
-- @tparam[opt] function update_callback the function called to update the value stored, rtn value to set new value
--[[-- Allows for updating a value based on the current value; only valid way to change tables in a store
@tparam string location the location to set the data to
@tparam[opt] string key the key location if required
@tparam[opt] function update_callback the function called to update the value stored, rtn value to set new value
@usage-- Updating a value stored at a location
Store.update(store_id_no_keys,function(value)
return value + 1
end)
Store.update(store_id_with_keys,'key_one',function(value)
return value + 1
end)
@usage-- Updating a table stored at a location
Store.update(store_id_no_keys,function(value)
value.ctn = value.ctn + 1
end)
Store.update(store_id_with_keys,'key_one',function(value)
value.ctn = value.ctn + 1
end)
]]
function Store.update(location,key,update_callback,...)
local value = Store.get(location,key)
@@ -194,9 +230,18 @@ function Store.update(location,key,update_callback,...)
end
--- Allows for updating all values at a location based on the current value; only valid way to change tables in a store
-- @tparam string location the location to set the data to
-- @tparam[opt] function update_callback the function called to update the value stored
--[[-- Allows for updating all values at a location based on the current value; only valid way to change tables in a store
@tparam string location the location to set the data to
@tparam[opt] function update_callback the function called to update the value stored
@usage-- Updating all values at a location
Store.update(store_id_with_keys,function(value)
return value + 1
end)
@usage-- Updating all tables at a location
Store.update(store_id_with_keys,function(value)
value.ctn = value.ctn + 1
end)
]]
function Store.update_all(location,update_callback,...)
local data = Store.get(location)
@@ -223,11 +268,15 @@ function Store.update_all(location,update_callback,...)
end
--- Sets the value at a location to nil, this location must be registered
-- @tparam string location the location to set the data to
-- @tparam[opt] string key the key location if used
-- @tparam[opt=false] boolean from_sync set this true to avoid an output to the sync file
-- @treturn boolean true if it was successful
--[[-- Sets the value at a location to nil, this location must be registered
@tparam string location the location to set the data to
@tparam[opt] string key the key location if used
@tparam[opt=false] boolean from_sync set this true to avoid an output to the sync file
@treturn boolean true if it was successful
@usage-- Clear the data at a location
Store.clear(store_id_no_keys)
Store.clear(store_id_with_keys,'key_one')
]]
function Store.clear(location,key,from_sync)
if not Store.callbacks[location] then
return error('Location is not registered', 2)
@@ -252,24 +301,33 @@ function Store.clear(location,key,from_sync)
return true
end
--- Gets all non nil keys at a location, keys can be added and removed during runtime
-- this is similar to Store.get but will always return a table even if it is empty
-- @tparam string location the location to get the keys of
-- @treturn table a table containing all the keys names
--[[-- Gets all non nil keys at a location, keys can be added and removed during runtime
this is similar to Store.get but will always return a table even if it is empty
@tparam string location the location to get the keys of
@treturn table a table containing all the keys names
@usage-- Get all keys at a store location
local keys = Store.get_keys(store_id_with_keys)
]]
function Store.get_keys(location)
local data = Store.get(location)
return type(data) == 'table' and table_keys(data) or {}
end
--- Check for if a location is registered
-- @tparam string location the location to test for
-- @treturn boolean true if registered
--[[-- Check for if a location is registered
@tparam string location the location to test for
@treturn boolean true if registered
@usage-- Check that a store is registered
local registerd = Store.is_registered(store_id)
]]
function Store.is_registered(location)
return Store.registered[location]
end
--- Returns a unique name that can be used for a store
-- @treturn string a unique name
--[[-- Returns a unique name that can be used for a store
@treturn string a unique name
@usage-- Get a new unique store id
local store_id = Store.uid_location()
]]
function Store.uid_location()
return tostring(Token.uid())
end

View File

@@ -102,13 +102,16 @@ end
--[[-- The base element to be used with the toolbar, others can be used but this is recomented
@element toolbar-button
@tparam string permission_alias the alias used with Toolbar.allowed
@usage-- Adding a basic button to the toolbar, note no need to call Toolbar.add_button_concept
Gui.new_concept('toolbar-button')
:set_caption('Click Me')
:on_click(function(event)
event.player.print('You Clicked Me!!')
end)
]]
Toolbar.button =
Gui.new_concept('button')
@@ -176,16 +179,20 @@ end
--[[-- The base toolbar frame, others can be used but this is recomented
@element toolbar-frame
@param on_update fired when the frame is to have its content updated
@tparam boolean open_by_default weather the frame should be open when a player first joins
@tparam boolean use_container true by default and will place a container inside the frame for content
@tparam string direction the direction that the items in the frame are added
@usage-- Adding a basic player list
local player_list =
Gui.new_concept('toolbar-frame')
:set_permission_alias('player_list')
:set_caption('Player List')
:toggle_with_click()
:define_draw(function(properties,parent,element)
local list_area =
element.add{
@@ -206,6 +213,7 @@ Gui.new_concept('toolbar-frame')
}
end
end)
:on_update(function(event)
local list_area = event.element.scroll
list_area.clear()
@@ -217,6 +225,7 @@ end)
}
end
end)
]]
Toolbar.frame =
Gui.new_concept('toolbar-button')