some style

This commit is contained in:
DS-Minetest 2017-04-29 12:54:10 +02:00
parent a1f6ea5128
commit 78a9faf14c

View File

@ -38,17 +38,18 @@ local function make_reactor_formspec(meta)
"listring[]"..
"button[5.5,1.5;2,1;start;Start]"..
"checkbox[5.5,2.5;autostart;automatic Start;"..meta:get_string("autostart").."]"
if digiline_remote_path then
if not digiline_remote_path then
return f
end
local digiline_enabled = meta:get_string("enable_digiline")
f = f.."checkbox[0.5,2.8;enable_digiline;Enable Digiline;"..digiline_enabled.."]"
if digiline_enabled == "true" then
f = f..
if digiline_enabled ~= "true" then
return f
end
return f..
"button_exit[4.6,3.69;2,1;save;Save]"..
"field[1,4;4,1;remote_channel;Digiline Remote Channel;${remote_channel}]"
end
end
return f
end
local SS_OFF = 0
local SS_DANGER = 1