luk3yx
d14f7fe796
Update documentation (again)
2025-02-27 18:26:47 +13:00
luk3yx
1ff48c0258
Add tutorial label to playground link
2025-02-27 18:11:18 +13:00
luk3yx
df6ccf75e1
Link to development tools in sidebar
2025-02-27 18:10:48 +13:00
luk3yx
90a152ab42
Update README.md
2025-02-27 18:00:12 +13:00
luk3yx
b2947b0557
Hide run button for unsupported examples
2025-02-27 17:57:54 +13:00
luk3yx
2c94fae57d
Fix play button on some code
2025-02-27 17:51:31 +13:00
luk3yx
434c4f8fdf
Fix gui.Nil example
2025-02-27 17:45:36 +13:00
luk3yx
9b53f1569d
Update wording
2025-02-27 17:39:22 +13:00
luk3yx
1c5c7682fa
Exclude documentation from ContentDB releases
2025-02-27 17:35:54 +13:00
luk3yx
71bbfd524e
Use mkdocs for documentation
2025-02-27 17:33:13 +13:00
luk3yx
fb069d203c
Improve documentation of window_* values
2025-02-27 16:03:56 +13:00
luk3yx
326792a2c1
Update README.md
2025-02-21 18:38:59 +13:00
luk3yx
8f3c3b1deb
Add window_position, window_padding, and window_anchor
...
Now flow can actually be used for HUDs
2025-02-21 18:38:25 +13:00
luk3yx
e3dc6d6750
Add on_key_enter callback and close_on_enter
...
Closes https://gitlab.com/luk3yx/minetest-flow/-/issues/4
2025-02-21 17:16:54 +13:00
luk3yx
7bad88cdcd
Make copyright headers consistent
2025-02-21 16:49:23 +13:00
luk3yx
df077dda95
Split code into more files
...
I hope I haven't broken anything
2025-02-21 16:39:51 +13:00
luk3yx
4f9e9d9a6e
Document on_quit as an experimental feature
2025-02-19 12:01:35 +13:00
luk3yx
03ba40fb58
Fix last commit
2025-02-10 15:28:42 +13:00
luk3yx
25fc58afb5
Fix inline styles on centred labels
...
"font_size" still doesn't work properly though
2025-02-10 15:27:03 +13:00
luk3yx
adbcc432b2
Allow getting value of hypertext input
...
This is probably not the best but is the simplest
2025-01-15 13:46:49 +13:00
luk3yx
3318877766
Update README
2024-12-30 11:15:38 +13:00
luk3yx
710a380d46
Do not add empty style elements
2024-12-30 11:08:13 +13:00
luk3yx
f306f01f57
Luanti rename, add ButtonURL support
2024-11-08 15:52:39 +13:00
luk3yx
136f2b1637
Explain why string.len is used
2024-09-14 20:23:12 +12:00
luk3yx
4563382551
Prevent crash when using numbers as labels
...
Closes https://gitlab.com/luk3yx/minetest-flow/-/merge_requests/1
2024-09-14 20:17:03 +12:00
luk3yx
e0626bdb42
Relicense to LGPL 2.1+
...
I think it's unlikely that flow will be used in the main menu, but now
licensing (hopefully) won't be an issue
2024-08-28 17:47:06 +12:00
Jo5629
38f09bedf3
Add pwdfield to default_value_fields ( #17 )
...
`pwdfield[]` doesn't actually have a "default" value, but flow uses default_value_fields for form input handling, and this seems better than adding a special case for it.
2024-08-17 12:01:33 +12:00
luk3yx
4a185105c3
Fix logic
2024-08-13 18:50:41 +12:00
luk3yx
e27b34700a
Remove unused code, add missing check
2024-08-13 18:49:29 +12:00
luk3yx
314174f395
Fix test
2024-08-13 10:37:01 +12:00
luk3yx
ba9bda75ef
Add unit tests for dropdown workaround
2024-08-13 10:35:59 +12:00
luk3yx
d990864834
Fix tests
2024-08-13 10:27:34 +12:00
luk3yx
150cef9399
Change prefix of auto-generated field names
...
Fixes behaviour with https://github.com/minetest/minetest/pull/14878
I've also added a workaround to preserve the current behaviour of
dropdowns that don't have index_event set.
2024-08-13 10:22:47 +12:00
Lazerbeak12345
76e4b68bc9
test(embed): test initial ctx state ( #16 )
2024-08-10 10:43:36 +12:00
luk3yx
cf0fd10708
Document embed and fix form reference
2024-07-31 15:50:33 +12:00
luk3yx
0b25461948
Fix unit test
2024-07-25 19:52:05 +12:00
luk3yx
8f0d86a53a
Add (indirect) unit test for change_ctx
2024-07-25 19:50:53 +12:00
Lazerbeak12345
1528e87864
feat: Embed support ( #15 )
...
Co-authored-by: luk3yx <luk3yx@users.noreply.github.com>
2024-07-25 19:40:18 +12:00
luk3yx
da87496e26
Add listcolors to invisible_elems
2024-06-30 21:32:35 +12:00
luk3yx
13136ab2dc
Add enter_after_edit parameter to Field
...
Closes https://gitlab.com/luk3yx/minetest-flow/-/issues/3
2024-06-18 15:02:14 +12:00
luk3yx
a3523c7073
The example form doesn't show a field by default
2024-05-18 19:25:56 +12:00
luk3yx
45363ee461
Minor performance improvement
...
It turns out that formspec_ast.find is quite slow, moving the
field_close_on_enter code to the new shorthand elements insertion
improves performance (at least on my rudimentary benchmarks of the
example form) and probably negates the overhead added by the inline
styles/tooltips code.
2024-05-18 19:24:12 +12:00
luk3yx
b42a9dc1be
Make luacheck happy
2024-05-15 10:52:13 +12:00
luk3yx
5215229d8c
Add inline styles and tooltips
2024-05-15 10:49:36 +12:00
luk3yx
1d6ddb368d
Update README
2024-04-30 20:50:11 +12:00
luk3yx
6c48ccd446
Fix crash
2023-08-12 10:57:13 +12:00
luk3yx
918002d505
Even more input validation
2023-08-08 21:55:09 +12:00
luk3yx
6745777bfc
Make __newindex a table
2023-08-05 14:27:08 +12:00
luk3yx
f5b7bc796a
Add additional input validation
...
This makes it harder to crash mods that aren't expecting malicious
formspec input.
I don't like the large amount of unit tests but I don't see how to avoid
them and arguably those tests should have been there beforehand anyway.
2023-08-04 19:05:53 +12:00
luk3yx
43d1a5081c
Improve elements.md
2023-07-14 08:22:50 +12:00