Commit Graph

6 Commits

Author SHA1 Message Date
Lazerbeak12345
bba30cc267
feat: Add set_as_inventory_for API function (#2)
Adds the `Form:set_as_inventory_for(player, [ctx])` API.

Also includes:

 • `Form:unset_as_inventory_for(player)`
 • Extends private `show_form` to account for inv edge cases
 • Extends private `on_fs_input` to account for inv edge cases
 • Adds several abstraction functions
 • Add feature to `on_leaveplayer` to delete the inv formspec state as well
 • Add a few unit tests for related features
2023-03-26 15:44:31 +13:00
luk3yx
5f2e601938 Fix gui.Stack expanding 2023-02-09 11:08:00 +13:00
luk3yx
a2fc646e77 Add gui.Stack 2023-02-01 18:08:58 +13:00
luk3yx
299ccfcddc Add visible = false (may be renamed in the future) 2023-01-08 17:13:44 +13:00
luk3yx
bb102c360f Make luacheck ignore test.lua 2023-01-02 16:36:30 +13:00
luk3yx
048bd0a082 WIP: Unit tests 2023-01-02 16:34:07 +13:00