Commit Graph

44 Commits

Author SHA1 Message Date
luk3yx
ec24aed60a Lazy load safety.lua and fix some issues 2022-07-18 17:45:27 +12:00
luk3yx
a42f688274 Add support for 9-slice images and animated images 2022-07-04 19:46:11 +12:00
luk3yx
eef2860b4b Handle image_button{,_exit} parameters like the MT engine 2022-04-29 16:49:42 +12:00
luk3yx
7ec3236a18 Add title to mod.conf 2022-04-12 14:24:19 +12:00
luk3yx
f9b29ba6e3 Use plurals for item, listelem, and caption 2022-02-13 16:34:01 +13:00
luk3yx
0ba38e041e Make new raw_parse more robust 2022-02-08 21:22:26 +13:00
luk3yx
8fca50e407 Drastically improve parsing and unparsing speed and fix bug
The parsing code still isn't easy to read but at least it's faster and 
not horribly bugged (I hope).
2022-02-08 20:36:14 +13:00
luk3yx
1d92fcf28b Fix scrollbar value 2022-02-05 20:45:34 +13:00
luk3yx
b540045734 Update list[] based on new documentation
Now that "list[inventory_location;list_name;x,y;w,h]" is documented it 
can be used instead of "list[inventory_location;list_name;x,y;w,h;]".
2022-02-05 20:41:52 +13:00
luk3yx
0679c46b2c Add padding[] 2022-01-23 08:58:33 +13:00
luk3yx
4f189ca0e9 Make register_element undocumented 2021-11-24 15:50:08 +13:00
luk3yx
ccba5eca04 Convert invsize[] to size[] and fix tablecolumns 2021-11-24 15:41:26 +13:00
luk3yx
8b18059cdf Make formspec_ast.flatten ignore scroll containers 2021-04-06 08:29:18 +12:00
luk3yx
b56162912d Remove unrequired table.insert 2021-03-31 17:44:59 +13:00
luk3yx
549157bd22 Fix lua_dump.py 2021-03-27 10:09:47 +13:00
luk3yx
a4d5dc23d3 Add old function back to lua_dump.py 2021-03-22 08:11:59 +13:00
luk3yx
af262da9de Update again 2021-03-21 20:50:22 +13:00
luk3yx
094fd57f32 Tweak lua_dump.py 2021-03-21 20:48:55 +13:00
luk3yx
cbfddef14d Shrink elements.lua
As the tables are never modified, any values that are the same can be 
shared.
2021-03-21 20:46:32 +13:00
luk3yx
17503d543b Update elements and fix background9 unparsing 2021-03-21 17:42:52 +13:00
luk3yx
d1ba059652 Improve performance and fix index_event parsing 2021-03-11 22:30:27 +13:00
luk3yx
df9e9e93a5 Parse positioned tooltips correctly 2021-03-09 10:27:26 +13:00
luk3yx
e9302239fb Fix bgcolor fullscreen value 2021-03-09 10:18:14 +13:00
luk3yx
98906e1dde Add support for model[] 2021-02-05 18:28:50 +13:00
luk3yx
4c79bd7110 Improve safety.lua again 2021-02-05 14:31:28 +13:00
luk3yx
86faeff45d Partially fix safe_parse on formspec version >= 3 2021-02-05 14:18:36 +13:00
luk3yx
9f28d8cae3 Improve make_elements.py and fix some issues. 2021-02-04 22:29:50 +13:00
luk3yx
649acafff3 Fix containers in custom elements not ending
Parsing the formspec `formspec_ast:centered_label[1,1;0,0;]image[0,0;]` 
would previously offset the image.
2021-01-10 20:18:32 +13:00
luk3yx
a3c1a490e0 Add luacheck and fix reported warnings 2020-11-26 16:20:50 +13:00
luk3yx
5545c25ea7 Fix tests.lua 2020-11-22 18:09:18 +13:00
luk3yx
64f33a51fa Fix dropdown[] 2020-09-07 19:45:01 +12:00
luk3yx
9a958355ca Add scroll_container[] (minor compatibility break) 2020-09-07 17:48:51 +12:00
luk3yx
ea5ed53b5a Bugfix 2020-07-21 15:20:26 +12:00
luk3yx
a0e2158b80 Fix lua_dump.py. 2020-02-13 16:17:53 +13:00
luk3yx
70683baae5 Fix size[]. 2020-01-29 12:53:21 +13:00
luk3yx
c551fc2b8e Bugfix and documentation update. 2020-01-28 17:56:53 +13:00
luk3yx
0ef995ab5c Make it easier to embed formspec_ast outside MT. 2020-01-28 17:53:30 +13:00
luk3yx
125f259a13 Fix bgcolor[]. 2019-12-17 09:20:58 +13:00
luk3yx
09d076e1d2 Bugfix 2019-11-24 19:45:32 +13:00
luk3yx
7d1457279c Update elements.lua 2019-11-24 19:23:46 +13:00
luk3yx
1203a69d8a Fix typo 2019-11-22 09:52:56 +13:00
luk3yx
1d14900cfb Fix dropdown[] AST 2019-10-22 16:35:41 +13:00
luk3yx
0427c348dd Bugfix 2019-10-20 15:17:45 +13:00
luk3yx
b2399d6825 Initial commit 2019-10-20 15:12:35 +13:00