mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-07-18 15:40:25 +02:00
Updated mesecons, pipeworks and homedecor
- Homedecor now using an inventory texture for lamps - Reoganized pipeworks' code - Added secure fix in pipeworks - Added meshnodes, sounds and fixes in mesecons - Removed "mesecons_compatibility"
This commit is contained in:
@ -129,15 +129,17 @@ function fs_helpers.cycling_button(meta, base, meta_name, values)
|
||||
local val = values[current_value + 1]
|
||||
local text
|
||||
local texture_name = nil
|
||||
local addopts = nil
|
||||
--when we get a table, we know the caller wants an image_button
|
||||
if type(val) == "table" then
|
||||
text = val["text"]
|
||||
texture_name = val["texture"]
|
||||
addopts = val["addopts"]
|
||||
else
|
||||
text = val
|
||||
end
|
||||
local field = "fs_helpers_cycling:"..new_value..":"..meta_name
|
||||
return base..";"..(texture_name and texture_name..";" or "")..field..";"..minetest.formspec_escape(text).."]"
|
||||
return base..";"..(texture_name and texture_name..";" or "")..field..";"..minetest.formspec_escape(text)..(addopts and ";"..addopts or "").."]"
|
||||
end
|
||||
|
||||
---------
|
||||
|
Reference in New Issue
Block a user