aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/common.lua
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2015-01-04 17:37:45 +0100
committersapier <Sapier at GMX dot net>2015-01-04 17:37:45 +0100
commit663e42ca3f451ad9df33968f0c94b080a7e16591 (patch)
tree8ef45e194a18774c9d0ba4c353358ab7b71b265f /builtin/mainmenu/common.lua
parent21ee434832126f288c58f5a9cd2a3b509946319c (diff)
downloadminetest-663e42ca3f451ad9df33968f0c94b080a7e16591.tar.gz
minetest-663e42ca3f451ad9df33968f0c94b080a7e16591.tar.bz2
minetest-663e42ca3f451ad9df33968f0c94b080a7e16591.zip
Fix forgotten favourite list image update of simple menu
Diffstat (limited to 'builtin/mainmenu/common.lua')
-rw-r--r--builtin/mainmenu/common.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua
index 384c083d6..549c0967b 100644
--- a/builtin/mainmenu/common.lua
+++ b/builtin/mainmenu/common.lua
@@ -35,6 +35,14 @@ local function render_client_count(n)
end
--------------------------------------------------------------------------------
+function image_column(tooltip, flagname)
+ return "image," ..
+ "tooltip=" .. core.formspec_escape(tooltip) .. "," ..
+ "0=" .. core.formspec_escape(defaulttexturedir .. "blank.png") .. "," ..
+ "1=" .. core.formspec_escape(defaulttexturedir .. "server_flags_" .. flagname .. ".png")
+end
+
+--------------------------------------------------------------------------------
function render_favorite(spec,render_details)
local text = ""