Commit Graph

413 Commits

Author SHA1 Message Date
Sokomine
5204c5c8ee deal with formspec_version lower than 3 and display formspec where possible 2022-01-16 21:49:52 +01:00
Sokomine
68f5ac0d7c reset scroll counter when entering edit mode 2022-01-09 02:19:30 +01:00
Sokomine
1967eeef15 removed deprecated handling of older formspec versions (now handled in another part of the code) 2022-01-09 02:10:32 +01:00
Sokomine
5b49bfbccd made edit dialog work in formspec versions < 3 as far as possible 2022-01-09 02:04:10 +01:00
Sokomine
e950cdc1f0 diffrent handling for formspec versions 2 and 1 (2 is pretty ok; 1 is ugly and barely usable) 2022-01-09 00:05:50 +01:00
Sokomine
b455321528 preparations for using the same code for generating fs for diffrent versions 2022-01-08 22:53:47 +01:00
Sokomine
585492b2f7 removed duplicate declaration of formspec where the lines are the same for diffrent formspec versions 2022-01-08 20:32:10 +01:00
Sokomine
6e461b95a6 improved formatting of dropdown formspec entries in fs_talkdialog.lua 2022-01-08 19:14:13 +01:00
Sokomine
bcdd59e004 made action button in edit dialog work again 2022-01-08 19:03:32 +01:00
Sokomine
e3eda65c00 added yl_speak_up.add_formspec_element_with_tooltip_if to clean up formspec building in fs_talkdialog.lua 2022-01-08 18:38:51 +01:00
Sokomine
3bde8d18c4 made more use of yl_speak_up.add_edit_button_fs_talkdialog 2022-01-08 02:30:09 +01:00
Sokomine
07be18bcf6 added helper function +yl_speak_up.add_edit_button_fs_talkdialog 2022-01-07 23:24:49 +01:00
Sokomine
fc10be7d0e extracted interface_mobs_api.lua from functions.lua into a seperate file 2022-01-07 21:22:41 +01:00
Sokomine
bd2c8bc4cd extracted edit_mode_apply_changes.lua from functions.lua into a seperate file 2022-01-07 21:04:55 +01:00
Sokomine
2b402aaefb removed deprecated function say(..) 2022-01-07 20:53:53 +01:00
Sokomine
e8265679b4 extracted fs_talkdialog.lua from functions.lua into a seperate file 2022-01-07 20:52:34 +01:00
Sokomine
0e62741926 extracted exec_apply_effects.lua from fs_edit_effects.lua 2022-01-06 18:15:54 +01:00
Sokomine
ef66268424 if an action fails: switch to the first dialog if no other on_failure dialog is defined 2022-01-06 18:05:39 +01:00
Sokomine
45336ed4d4 eliminated undeclared global variable o_id 2022-01-06 17:38:02 +01:00
Sokomine
b536ce99f3 improved documentation of values in fs_edit_effects.lua 2022-01-06 02:52:54 +01:00
Sokomine
3c52cfeae6 implemented deal_with_offered_item effect (only editing, not effect yet) 2022-01-06 02:41:04 +01:00
Sokomine
031fda8411 set useful preset for sort_by for d_got_item dialog 2022-01-05 23:54:25 +01:00
Sokomine
f00d7bb505 deal with missing sort_by parameter 2022-01-05 23:44:30 +01:00
Sokomine
17a8551f25 explained autoanswer/autoselect mode 2022-01-05 23:33:40 +01:00
Sokomine
0c2f9f0b49 put exec_actions.lua into extra file 2022-01-05 21:57:02 +01:00
Sokomine
9a89c678f0 moved yl_speak_up.precondition_check_variable to exec_eval_* 2022-01-05 21:55:31 +01:00
Sokomine
7b8e7f7322 made check_variable accessible for excec_eval_preconditions.lua 2022-01-05 19:17:59 +01:00
Sokomine
9039fe08b9 split up fs_edit_preconditions into fs_edit and exec_eval_ 2022-01-05 19:07:23 +01:00
Sokomine
ce1e191eaf updated documentation of parameters of actions 2022-01-05 18:58:57 +01:00
Sokomine
8614545828 updated documentation of parameters of preconditions 2022-01-05 18:42:20 +01:00
Sokomine
6ccf9cfdb5 implemented precondition player_offered_item 2022-01-05 18:16:21 +01:00
Sokomine
2c8437f6a4 show precondition player_offered_item 2022-01-05 01:23:42 +01:00
Sokomine
5644ad0cb2 store amount and more/less/equal etc. for precondition player_offered_item 2022-01-05 01:01:23 +01:00
Sokomine
127263813e don't store no group selected for player_offered_item 2022-01-04 23:01:16 +01:00
Sokomine
42233f59a1 implemented saving of player_offered_item precondition 2022-01-04 04:52:24 +01:00
Sokomine
d4e7870c05 added formspec for precondition player_offered_item 2022-01-04 04:00:08 +01:00
Sokomine
e33f713f54 added yl_speak_up.fs_your_inventory_select_item to avoid repetition 2022-01-04 01:30:33 +01:00
Sokomine
6f127bd3b4 bugfix: clear tmp_data_cache properly 2022-01-04 01:24:42 +01:00
Sokomine
c774c542ea moved preivew/background images to less confusing palces 2022-01-02 20:01:24 +01:00
Sokomine
392b60efb8 added fs_player_offers_item.lua 2022-01-02 19:23:36 +01:00
Sokomine
45616bb4ba auto-refuse unwanted items and let the player take them back 2022-01-02 06:12:50 +01:00
Sokomine
a1cae79266 added d_got_item dialog for accepting items given from player to npc 2022-01-01 21:47:11 +01:00
Sokomine
8a7d6e24b3 avoid infinite loop in automatic/autoselect mode; added yl_speak_up.max_allowed_recursion_depth config option 2021-12-31 17:41:12 +01:00
Sokomine
788960ca0a added autoanswer/autoselect function (without loop detection) 2021-12-29 04:10:41 +01:00
Sokomine
b33ba52d00 fixed bug in changing owner 2021-12-28 05:06:47 +01:00
Sokomine
e61baf7ab5 implemented put_into_block_inv and take_from_block_inv 2021-12-28 03:15:41 +01:00
Sokomine
09521172ac fixed typo 2021-12-27 21:12:05 +01:00
Sokomine
f01744aa70 added put_into_block_inv and take_from_block_inv formspec and storing 2021-12-26 22:43:06 +01:00
Sokomine
aae92b7da3 added menu entries for put_into_block_inv, take_from_block_inv 2021-12-26 18:50:04 +01:00
Sokomine
f5ceb9b04c display and evaluate preconditions of type block_inv 2021-12-26 02:57:46 +01:00