Commit Graph

157 Commits

Author SHA1 Message Date
luk3yx
db3bd02ccd Add copyright header to popover.lua
Some checks failed
build / lint (push) Has been cancelled
build / test (push) Has been cancelled
2025-08-13 16:59:25 +12:00
luk3yx
79a0d77770 Fix popover example 2025-08-13 16:54:36 +12:00
luk3yx
24ca88e980 Luacheck 2025-08-13 16:49:05 +12:00
luk3yx
1960dbd502 Add experimental low-level popover API 2025-08-13 16:48:17 +12:00
luk3yx
d7c6b66969 Document gui.Flow as an experimental feature
Some checks failed
build / lint (push) Has been cancelled
build / test (push) Has been cancelled
2025-08-04 17:22:09 +12:00
luk3yx
41eae37ad3 Use stub_player for render unit tests
Some checks failed
build / lint (push) Has been cancelled
build / test (push) Has been cancelled
2025-06-18 11:37:21 +12:00
luk3yx
663df4c7a7 Document flow.get_context, make embedding with player optional 2025-06-18 11:36:03 +12:00
luk3yx
2b00758f5b Make flow.get_context() return player too
This is not perfect but I am tired of having to pass player references
around to custom widgets or do something like `ctx.player = player`.
2025-06-18 11:28:16 +12:00
luk3yx
e7029283ab Exclude test.lua from ContentDB package 2025-03-04 15:33:36 +13:00
luk3yx
a89ed25609 Use local variable 2025-03-03 15:13:56 +13:00
luk3yx
8e4d033cd7 Update warning message 2025-03-03 14:55:30 +13:00
luk3yx
888e384ced Backwards compatibility fix 2025-03-03 14:51:45 +13:00
luk3yx
cd56167c49 Update styling.md 2025-03-03 14:41:14 +13:00
luk3yx
da5cbfd0fc Support font_size for labels etc 2025-03-03 14:35:18 +13:00
luk3yx
bb4f0c9750 Long line 2025-03-03 13:52:51 +13:00
luk3yx
bea549ec31 Support "size" and "spacing" list styles
These are only supported in inline styles so that flow can calculate the
size of the elements without having to look through the rest of the
tree.
2025-03-03 13:51:25 +13:00
luk3yx
8c96383cc4 Update styling.md 2025-03-03 13:35:06 +13:00
luk3yx
1b65298357 Increase heading level 2025-02-28 20:46:04 +13:00
luk3yx
33cfc4e0ff Everything in doc is published 2025-02-27 18:27:41 +13:00
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