Commit Graph

263 Commits

Author SHA1 Message Date
Sokomine
577ea356aa actually apply alternate_text texts 2021-07-01 23:14:33 +02:00
Sokomine
3d4141e786 allow to edit and store alternate texts for dialogs when comming from a particular option/failed effect 2021-07-01 22:33:19 +02:00
Sokomine
ff2ba081a9 added edit button to colored dialog text 2021-07-01 17:24:24 +02:00
Sokomine
2071a45f3d made use of tabheader and container as formspec elements 2021-07-01 05:24:25 +02:00
Sokomine
17544df2a1 added new function yl_speak_up.prepare_new_dialog_for_option so that the dialog result/effect is present when first editing a new dialog 2021-07-01 03:24:52 +02:00
Sokomine
97384d7772 fixed display bug in effect on_failure 2021-06-30 23:30:22 +02:00
Sokomine
ea5bbb0e7a added yl_speak_up.show_colored_dialog_text for edit menus 2021-06-30 23:12:39 +02:00
Sokomine
edee560b56 better describe which precondition, action or effect is beeing edited 2021-06-30 04:23:55 +02:00
Sokomine
d7e06b662e colorize background for on_failure dialogs in edit general 2021-06-30 01:46:37 +02:00
Sokomine
a43cef9290 allow to toggle between successful and unsuccessful action in edit options menu 2021-06-29 23:21:48 +02:00
Sokomine
61bd16f3f2 made edit option menu slightly nicer 2021-06-29 20:26:25 +02:00
Sokomine
86eaaae3ea allowed nil as return value for aborting actions 2021-06-29 04:51:39 +02:00
Sokomine
01af5d1365 added custrom_functions_you_can_override.lua 2021-06-29 00:44:00 +02:00
Sokomine
cef75205f5 added custom precondition and effect 2021-06-29 00:15:36 +02:00
Sokomine
3a66d6b4ce allowed to edit and create preconditions and effects of type function for players with npc_master priv 2021-06-28 23:35:45 +02:00
Sokomine
e199257fb6 added support for editing effect of type move 2021-06-28 23:05:23 +02:00
Sokomine
e47680fd7d added give_item and take_item (editable with npc_master) 2021-06-28 18:24:07 +02:00
Sokomine
71873b7a52 remove name in front of variables for the player's own variables 2021-06-28 02:14:56 +02:00
Sokomine
66477c494f fixed bug with variable name showing 2021-06-28 01:46:38 +02:00
Sokomine
703770794e added added save button to main dialog 2021-06-28 01:27:50 +02:00
Sokomine
4a4ffefb85 fixed bug with saving when quitting 2021-06-28 00:38:12 +02:00
Sokomine
885c19831e allow to use $ in quest items 2021-06-27 18:54:54 +02:00
Sokomine
5edb0da5a7 translate item precondition to player_inv precondition when editing 2021-06-27 17:52:06 +02:00
Sokomine
46f5232d49 dialog effects cannot be deleted or edited anymore 2021-06-27 17:43:14 +02:00
Sokomine
2544fdc0c9 fixed broken tooltip 2021-06-27 17:19:32 +02:00
Sokomine
661caaff4e removed yl_speak_up.save_changes_and_switch_to_other_dialog; handled now by show_fs.lua and the new fs_save_or_discard_or_back.lua 2021-06-27 04:33:14 +02:00
Sokomine
1b28dd6a07 load_dialog is no longer a local function 2021-06-27 03:46:03 +02:00
Sokomine
cb49d9cfe2 better handling of esc in edit options dialog 2021-06-25 19:28:53 +02:00
Sokomine
d3a9d20d43 edit options dialog now stores o_id instead of passing it on as a hidden parameter 2021-06-25 19:23:35 +02:00
Sokomine
e4a7bdc233 added save button to edit options dialog (not yet functional) 2021-06-25 19:12:58 +02:00
Sokomine
6ad92fb198 ask for save when selecting edit options dialog 2021-06-25 18:33:41 +02:00
4ab2ee03f1 Merge pull request 'reduce number of gsub calls for text variable substitutions' (#4) from whosit/yl_speak_up:trade_list into trade_list
Reviewed-on: Sokomine/yl_speak_up#4
2021-06-23 04:58:57 +02:00
b3c8889b95 reduce number of gsub calls for text variable substitutions
Use lua feature that allows to specify table with substitutions to
string.gsub()
2021-06-23 02:44:01 +03:00
Sokomine
706f6d7436 give wrong items back or drop at the player's feet 2021-06-21 21:28:31 +02:00
Sokomine
c24cce74b1 allow to use item slot to describe stack for preconditions 2021-06-21 20:43:13 +02:00
Sokomine
228faed97d shorter sentence for show me your inventory 2021-06-21 19:54:23 +02:00
Sokomine
5efdd9fd79 if an action fails and has no existing on_failure dialog, go back to the current dialog 2021-06-21 19:45:47 +02:00
Sokomine
711cbe69d5 handle enter key in fs_edit_general.lua 2021-06-21 19:38:25 +02:00
Sokomine
7534482e20 make the arrows in the dialog edit menu work again 2021-06-21 18:58:53 +02:00
Sokomine
d71e5e1d10 made the back to edit dialog option button more comprehensible 2021-06-21 18:43:58 +02:00
Sokomine
f7470a7bb1 made function get_number_from_id accessible 2021-06-21 18:22:37 +02:00
Sokomine
fe683adefb removed undeclared global 2021-06-21 17:51:00 +02:00
Sokomine
a1af19ca46 fixed bugs regarding variable selection in preconditions and effects 2021-06-21 01:21:50 +02:00
Sokomine
f794a10a30 strip whitespaces around variable names 2021-06-21 01:02:53 +02:00
Sokomine
58e701fde1 took care of unregistered globals 2021-06-21 00:43:09 +02:00
Sokomine
eb7861393b fixed bug in on_rightclick 2021-06-20 23:54:35 +02:00
Sokomine
701f687415 variables can now be added, set and queried; time is rounded to seconds 2021-06-20 23:24:33 +02:00
Sokomine
cea602230f ignore leading/tailing whitespaces when checking password 2021-06-20 17:53:39 +02:00
Sokomine
827020d167 variable handling related to current time 2021-06-20 17:28:21 +02:00
Sokomine
a7288bb2b9 save the inventory of the NPC after npc_gives/npc_wants 2021-06-20 16:32:10 +02:00