Lazerbeak12345
5bb5dba625
feat: add locale support ( #9 )
...
Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2023-06-11 22:10:19 +12:00
luk3yx
4ccabcef0f
Bugfix
2023-06-07 22:46:32 +12:00
luk3yx
a1e7eff2ff
Replace background[] with image[] in gui.Stack
2023-06-07 22:39:57 +12:00
luk3yx
c336abde7e
Fix bgimg in embedded render_to_formspec_string
2023-06-07 21:51:09 +12:00
luk3yx
20b99efaf3
Fix comment
2023-06-01 17:09:19 +12:00
luk3yx
c32ea53fd1
Fix compatibility hack
2023-06-01 17:08:33 +12:00
luk3yx
b4a72ade99
Add compatibility hack
2023-06-01 17:05:25 +12:00
Lazerbeak12345
35fa361f8d
fix: bgcolor settings for root node ( #7 )
2023-06-01 16:56:03 +12:00
luk3yx
238e432251
Don't save fields with an empty name
2023-05-30 16:26:45 +12:00
Lazerbeak12345
435efd014e
feat(flow.widgets): Add nil gui object ( #6 )
...
Skipped over by rendering library, and not included in output formspec.
2023-04-19 16:54:04 +12:00
luk3yx
5df202fee1
Add unit test workflow
2023-04-12 20:45:27 +12:00
luk3yx
7b25bc6083
Remove outdated comment
2023-04-12 20:14:17 +12:00
luk3yx
000bd976c2
Fix license comment
2023-04-12 20:11:36 +12:00
luk3yx
cdb4e61ca9
Remove unused debug code
2023-04-08 13:29:10 +12:00
Lazerbeak12345
60d2674a45
feat: Add render_to_formspec_string function ( #5 )
...
Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2023-04-08 13:13:44 +12:00
luk3yx
fa13e188f9
Increase formspec version to 6
...
This should mean that older clients still show images that have the
"middle" parameter set
2023-04-07 08:49:15 +12:00
luk3yx
d0b1825281
Fix label offset when using a fixed field size
2023-04-02 20:35:58 +12:00
luk3yx
49fd7ec541
Fix
2023-04-02 14:50:51 +12:00
luk3yx
7987799f44
Fix bug with non index_event dropdowns
...
Translated strings in dropdowns would previously have had the escape
code stripped which would break things.
2023-04-02 14:48:48 +12:00
luk3yx
272fa1ecfa
Make luacheck happy
2023-04-02 08:49:15 +12:00
luk3yx
3a8fd8765e
Remove undocumented parameter, lower limit again
2023-04-02 08:29:33 +12:00
luk3yx
2efe09c2c3
Strip control characters (subject to change)
2023-03-31 21:11:20 +13:00
luk3yx
1f754aac83
Lower length limit
2023-03-28 14:58:57 +13:00
luk3yx
353d8c7a0b
Improve field handling
2023-03-28 14:53:28 +13:00
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
45e61e34c9
Update README.md
2023-03-24 16:21:51 +13:00
luk3yx
e29c27de44
Update documentation
2023-03-24 16:19:08 +13:00
luk3yx
5f2e601938
Fix gui.Stack expanding
2023-02-09 11:08:00 +13:00
luk3yx
451f679ddc
Warn when expanding unknown elements
2023-02-08 12:30:22 +13:00
luk3yx
a2fc646e77
Add gui.Stack
2023-02-01 18:08:58 +13:00
luk3yx
8dd4d491a6
Improve checkbox positioning
2023-01-21 14:39:06 +13:00
luk3yx
98203e032a
Update comment
2023-01-21 14:13:49 +13:00
luk3yx
3cf79396e3
Make formspec handler return true
2023-01-17 08:34:46 +13:00
luk3yx
5e10ed5da6
Combine if statements
2023-01-16 20:57:02 +13:00
luk3yx
1d97d07697
Use a new form name for every form:show()
2023-01-16 20:30:13 +13:00
luk3yx
9cad6a94bd
Document visible = false and no_prepend = true
2023-01-13 15:24:45 +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
luk3yx
8101115fae
Bugfixes
...
node[value_field] is now set to the sensible default value if it isn't
set.
2023-01-02 15:36:12 +13:00
luk3yx
c39a3f5be1
Add no_prepend and fbgcolor parameters
...
Maybe these should be specified elsewhere but this works for now.
2022-12-22 20:00:33 +13:00
luk3yx
02a0702502
Update README
2022-12-12 15:06:59 +13:00
luk3yx
bf0fa06d48
Deprecate some functions and add form:update
2022-12-12 15:06:17 +13:00
luk3yx
7cb1c1c235
Document setting initial context value
2022-12-06 20:34:36 +13:00
luk3yx
3e16f91ac7
Update README
2022-12-03 19:22:21 +13:00
luk3yx
c884b07fc4
Update documentation
2022-12-03 19:21:04 +13:00
luk3yx
3b095ef9bb
Improve checkbox alignment in /flow-example
2022-11-15 15:47:20 +13:00
luk3yx
6509cba73c
Change character width calculation
...
This prevents long fractions for most labels.
2022-11-15 15:31:20 +13:00
luk3yx
0ecea04021
Fix expansion with padding
2022-11-15 15:22:05 +13:00
luk3yx
5805856e4c
Add link to online tutorial/demo
2022-11-11 14:35:39 +13:00