show npc id in initial config

This commit is contained in:
Sokomine 2021-07-29 21:28:32 +02:00
parent e1072f1c72
commit f0d7bbf6c4

View File

@ -251,6 +251,7 @@ yl_speak_up.get_fs_initial_config = function(player, n_id, d_id, is_initial_conf
-- name of the npc
"label[0.2,1.05;Name:]"..
"field[2.0,1.2;4,0.9;n_npc;;"..minetest.formspec_escape(tmp_name).."]"..
"label[7.0,1.05;NPC ID: "..minetest.colorize("#FFFF00",tostring(n_id)).."]"..
"tooltip[n_npc;n_npc: The name of the NPC;#FFFFFF;#000000]"..
-- description of the npc
"label[0.2,2.05;Description:]"..