Commit Graph

454 Commits

Author SHA1 Message Date
Sokomine
e803837259 added preconditions true and false 2022-05-06 17:29:28 +02:00
Sokomine
2435732db2 show msg formspecs in formspec version 1 2022-05-06 15:55:39 +02:00
Sokomine
47f9c83358 handled missing text in textual replacements 2022-05-06 15:06:01 +02:00
Sokomine
9fadc666ae make sure generic dialogs never get injected in edit mode 2022-05-05 13:49:52 +02:00
Sokomine
9260989bed minor bugfixes 2022-05-04 14:13:18 +02:00
Sokomine
5b0338fabc fixed sorting of options in dialogs according to o_sort 2022-04-25 19:08:12 +02:00
Sokomine
292c299b5c show the npc's start dialog instead of d_generic_start_dialog 2022-04-25 15:45:51 +02:00
Sokomine
5c95c6ae6d added general support for generic dialogs 2022-04-25 14:53:38 +02:00
Sokomine
f8138908bc check if the player is allowed to edit the npc before applying changes 2022-04-22 21:43:34 +02:00
Sokomine
f3573e746f added yl_speak_up.get_start_dialog_id and reload dialog when entering edit mode 2022-04-22 21:28:23 +02:00
Sokomine
795dce0c2b added hint for npc privs 2022-04-22 21:19:31 +02:00
Sokomine
d25420157c added some missing local declarations 2022-04-22 03:46:18 +02:00
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