summaryrefslogtreecommitdiff
path: root/common.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-11 18:52:39 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-11 18:52:39 -0400
commit5e26aa5f91dafb16f62a43daa688a33b6216e0b6 (patch)
tree8d7b53dc3ca0f08494b81e68475de376b3573dd9 /common.lua
parenta7c3908b6134b01e1447568d20e6801a373f1af8 (diff)
downloadpipeworks-5e26aa5f91dafb16f62a43daa688a33b6216e0b6.tar
pipeworks-5e26aa5f91dafb16f62a43daa688a33b6216e0b6.tar.gz
pipeworks-5e26aa5f91dafb16f62a43daa688a33b6216e0b6.tar.bz2
pipeworks-5e26aa5f91dafb16f62a43daa688a33b6216e0b6.tar.xz
pipeworks-5e26aa5f91dafb16f62a43daa688a33b6216e0b6.zip
cache on/off button image refs and commonly-used label for same
Diffstat (limited to 'common.lua')
-rw-r--r--common.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.lua b/common.lua
index 5574bb2..4986de9 100644
--- a/common.lua
+++ b/common.lua
@@ -141,6 +141,13 @@ function fs_helpers.cycling_button(meta, base, meta_name, values)
text = val
end
local field = "fs_helpers_cycling:"..new_value..":"..meta_name
+
+ print("base"..dump(base))
+ print("texture_name"..dump(texture_name))
+ print("field"..dump(field))
+ print("text"..dump(text))
+ print("addopts"..dump(addopts))
+
return base..";"..(texture_name and texture_name..";" or "")..field..";"..minetest.formspec_escape(text)..(addopts and ";"..addopts or "").."]"
end