Skip to content

Commit

Permalink
Improve ctf_gui logging
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Dec 17, 2023
1 parent 266bc48 commit 1b4cec0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mods/apis/ctf_gui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function ctf_gui.init()
local action = ctx._on_formspec_input(pname, ctx, fields, ...)

if action == "refresh" then
minetest.log("action", "Refreshing formspec "..dump(ctx._formname).." to "..dump(pname))
minetest.show_formspec(pname, ctx._formname, ctx._formspec(ctx))
end
end
Expand Down Expand Up @@ -115,6 +116,7 @@ function ctf_gui.show_formspec(player, formname, formspec, formcontext)
context[player]._formname = formname
context[player]._formspec = formspec

minetest.log("action", "Showing new_formspec "..dump(formname).." to "..dump(player))
if type(formspec) == "function" then
minetest.show_formspec(player, formname, formspec(formcontext))
else
Expand Down Expand Up @@ -144,7 +146,7 @@ do
end
end

minetest.log("action", "[ctf_gui] unpacking: "..dump(l))
-- minetest.log("action", "[ctf_gui] unpacking: "..dump(l))
return format(base, unpck(l))
end

Expand Down Expand Up @@ -458,6 +460,7 @@ function ctf_gui.old_show_formspec(player, formname, formdef)
formdef._info = formdef
context[player] = formdef

minetest.log("action", "Showing formspec "..dump(formname).." to "..dump(player))
minetest.show_formspec(player, formname, formspec)
end,
formdef, ctf_gui.ELEM_SIZE, ctf_gui.SCROLLBAR_WIDTH)
Expand Down

0 comments on commit 1b4cec0

Please sign in to comment.