Commit Graph

442 Commits

Author SHA1 Message Date
Sokomine
3c7ece2f77 preparations for add_generic_dialogs 2022-04-22 03:45:52 +02:00
Sokomine
282ae84c81 npc privs have to match for the npc or for the generic npc who provides a functionality 2022-04-22 03:18:49 +02:00
Sokomine
6442335931 use new player var reset function when endig edit mode 2022-04-19 19:58:21 +02:00
Sokomine
cda3f74508 properly reset fs_version for players on join/leave 2022-04-19 19:34:36 +02:00
Sokomine
d36ab58a8e improved scrolling (at least for formspec version 3) 2022-04-17 22:21:39 +02:00
Sokomine
8f3a788987 offer text input field in general reply field 2022-04-17 20:10:19 +02:00
Sokomine
8d65f22bea tell that the npc needs privs as well for some actions 2022-04-17 19:42:42 +02:00
Sokomine
e04bc0c8d9 added frame to simple trade and made sold out indicator nicer 2022-04-17 02:03:43 +02:00
Sokomine
ed17ea34fd introduced privs for npc 2022-04-16 22:05:35 +02:00
Sokomine
05ea4b90cc adjusted color for trade list buttons 2022-04-14 19:34:47 +02:00
Sokomine
a1b92b7dca #11 fix crash regarding missing n_dialog 2022-04-13 23:09:34 +02:00
Sokomine
ccfffc9568 fixed undeclared use of global vars 2022-04-12 03:48:08 +02:00
Sokomine
b012d4e251 swapped offer and price item in trade list 2022-04-12 03:19:36 +02:00
Sokomine
b4a8ae893f #10 fix crash in access check 2022-04-12 03:17:43 +02:00
Sokomine
6cadbd9b65 trade_simple fs is shown in fs ver 1 again so that it fits 2022-04-12 01:57:53 +02:00
Sokomine
52d04e36e8 used fs_decorated in fs_talkdialog as well 2022-04-12 01:53:08 +02:00
Sokomine
d466436c34 created fs_decorated.lua and make trade_list.lua use it 2022-04-12 00:33:19 +02:00
Sokomine
c5c7d3391c made trade list nicer 2022-04-11 22:17:07 +02:00
Sokomine
9aa7d4f8a6 allow to force a specific formspec version for some formspecs 2022-04-11 19:05:03 +02:00
Sokomine
058baca37b added npc_talk_style command 2022-04-10 20:43:41 +02:00
Sokomine
430a1eae71 adjusted initial config of formspec dialog to newer versions 2022-04-10 20:23:24 +02:00
Sokomine
28106daa7b fixed crash attempt to index field 'd_options' #13 v2 2022-01-18 22:48:37 +01:00
Sokomine
212809d380 fixed crash attempt to index field 'd_options' #13 2022-01-18 22:40:58 +01:00
Sokomine
d0e7b23127 actually handle partial taking of items 2022-01-18 21:56:01 +01:00
Sokomine
75cc01904e added operator 'is true/false when called with parameter:' 2022-01-17 03:42:15 +01:00
Sokomine
039d17c8d7 moved custom precondition functions to custrom_functions_you_can_override.lua 2022-01-17 03:27:09 +01:00
Sokomine
eeb4d3da5d removed debug line 2022-01-17 03:08:29 +01:00
Sokomine
04b89c2e5e added yl_speak_up.custom_server_functions.precondition_descriptions and *.precondition_eval 2022-01-17 03:07:45 +01:00
Sokomine
7143f81995 added further scroll up/scroll down buttons for formspec version 1 2022-01-16 21:50:14 +01:00
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