fix formspecs, new screenshot
This commit is contained in:
parent
f710c3472c
commit
688f7e39e1
@ -6,6 +6,10 @@ local function get_formspec(power, input, state, active, percent)
|
||||
t = "image[3.5,1.75;1,1;elepower_uv_bulb_lit.png]"
|
||||
end
|
||||
|
||||
if not percent then
|
||||
percent = 0
|
||||
end
|
||||
|
||||
return "size[8,8.5]"..
|
||||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
|
@ -2,6 +2,7 @@
|
||||
local c_air = minetest.get_content_id("air")
|
||||
|
||||
local function get_formspec(power, fluid, state, level)
|
||||
if not level then level = 0 end
|
||||
return "size[8,8.5]"..
|
||||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
@ -232,7 +233,7 @@ ele.register_machine("elepower_machines:pump", {
|
||||
on_timer = timer,
|
||||
on_construct = function (pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("formspec", nil, nil, 0, -1)
|
||||
meta:set_string("formspec", get_formspec(nil, nil, 0, -1))
|
||||
end,
|
||||
-- Upgradable
|
||||
ele_upgrades = {
|
||||
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 828 KiB After Width: | Height: | Size: 695 KiB |
Loading…
Reference in New Issue
Block a user