11 Commits

Author SHA1 Message Date
Oversword
661690e583
Generate formspecs on interact, not on update (#45)
* Remove the usage of pos2str using context var

* Make sure on punch and paging is working

* Generate formspecs on interact, not on update

* Linting and page_formspec usage

* Clear metadata formspec on interact

* Consolidate ordered formspec function

* Reduce repetition in infotext when updating station
2022-02-10 11:38:07 -05:00
Oversword
9fdcbe8570
Remove the usage of pos2str using context var (#44)
* Remove the usage of pos2str using context var

* Make sure on punch and paging is working
2022-02-06 14:09:03 -05:00
Oversword
2f09593ebf
Re-work how formspecs are shown to remove the need for delays and to guarantee the formspec is show (#35)
* Initial rewrite

* Working

* Cleanup

* No need to ensure existance as we already check for existance
2022-02-01 19:13:45 -05:00
Oversword
d0b8e43254
Add paging mechanism (#36)
* Initial interface

* Paging functionality and conditional display completed

* Cleanup

* Move formspec display to formspecs file

* Linting

* Use max station number to decide if paging is required

* Linting

* Make sure the current page number as a valid number
2022-02-01 19:05:18 +01:00
Buckaroo Banzai
6f170053da
Editable station (#24)
* first pass adding edit functionality

* moved is_falsey_string to functions.lua

* adding some formspec_escape()

* added node_description() getter

* comment updated

* show edit formspec in a subsequent run-loop

* handle edit formspec

* changelog and misc comment fixes

* simplified elevator editing

Don't allow network or owner change on elevators

* remove unused variables

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

* locale revisions

would be nice if some native speakers would check :)

Co-authored-by: Luke aka SwissalpS <Luke@SwissalpS.ws>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2022-01-07 16:37:46 +01:00
OgelGames
4149fa4ece consistently use utility function to check for elevator 2021-09-16 15:01:38 +10:00
Oversword
9b20c7b023
WIP: Code sanity improved (#18)
* Logic cleaned up and repetition removed
2021-07-03 19:41:00 +02:00
Oversword
be109dd8dc
Linting and code formatting (#17)
* Initial linting done

* Spaces spaces everywhere, more than you might think

* No space like home

* Continuation indentation

* Double down

* One more thing

* Undo practical change

* Update doors.lua to reduce line lengths

* String concatenation and line lengths

Co-authored-by: Oversword <bionic@oversword.co.uk>
Co-authored-by: OgelGames <olliverdc28@gmail.com>
2021-07-02 14:58:54 +10:00
BuckarooBanzay
0a1b7dcf1b stricter luacheck / cleanups 2021-01-15 08:26:42 +01:00
BuckarooBanzay
3e8915e249 fix translation issues
fixes #6
2020-11-19 20:12:17 +01:00
BuckarooBanzay
39e7d86040 modularization, cleanup part II 2020-11-19 19:57:19 +01:00