mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2024-08-20 13:14:04 +02:00
fix missing brackets, move template name selection menu right of the player one and comment sending the fields
This commit is contained in:
parent
918d27db1f
commit
d3495ecb6d
@ -81,7 +81,7 @@ local function fill_formspec_dropdown_list(t, selected)
|
|||||||
txt = txt..","
|
txt = txt..","
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return txt..";"..selected_id or 1 .."]"
|
return txt..";"..(selected_id or 1).."]"
|
||||||
--spec = string.sub(spec, 1, -2)
|
--spec = string.sub(spec, 1, -2)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ local function get_selection_formspec(pname, selected_template)
|
|||||||
fill_formspec_dropdown_list(templates, pname)..
|
fill_formspec_dropdown_list(templates, pname)..
|
||||||
|
|
||||||
-- show templates of pname
|
-- show templates of pname
|
||||||
"dropdown[0,1;3;template_name;"..
|
"dropdown[3,0;3;template_name;"..
|
||||||
fill_formspec_dropdown_list(pl_templates, selected_template)..
|
fill_formspec_dropdown_list(pl_templates, selected_template)..
|
||||||
|
|
||||||
-- show selected template
|
-- show selected template
|
||||||
@ -190,7 +190,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.chat_send_all(dump(fields))
|
--minetest.chat_send_all(dump(fields))
|
||||||
|
|
||||||
local pname = player:get_player_name()
|
local pname = player:get_player_name()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user