From f1668176ada5e5e18273bb88f2dd41efd86400c4 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Wed, 15 Nov 2023 22:31:47 +0100 Subject: [PATCH] #16 Show option text even when automatic or random selection is active --- fs_talkdialog.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs_talkdialog.lua b/fs_talkdialog.lua index 9028ee1..62da4d3 100644 --- a/fs_talkdialog.lua +++ b/fs_talkdialog.lua @@ -648,12 +648,14 @@ yl_speak_up.get_fs_talkdialog_line_in_edit_mode = function( if(sb_v.o_autoanswer) then table.insert(formspec, "label["..tostring(10.5+offset+0.2)..","..tostring(h+0.5)..";".. - minetest.formspec_escape("[Automaticly selected if preconditions are met]").. + minetest.formspec_escape("[Automaticly selected if preconditions are met] ".. + tostring(sb_v.o_text_when_prerequisites_met)).. "]") elseif(active_dialog.o_random) then table.insert(formspec, "label["..tostring(10.5+offset+0.2)..","..tostring(h+0.5)..";".. - minetest.formspec_escape("[One of these options is randomly selected]").. + minetest.formspec_escape("[One of these options is randomly selected] ".. + tostring(sb_v.o_text_when_prerequisites_met)).. "]") else -- show the actual text for the option