1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-29 14:50:41 +02:00

cache on/off button image refs and commonly-used label for same

This commit is contained in:
Vanessa Ezekowitz
2017-04-11 18:52:39 -04:00
parent a7c3908b61
commit 5e26aa5f91
5 changed files with 23 additions and 12 deletions

View File

@ -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