fix formspecs, new screenshot

This commit is contained in:
Evert Prants 2020-05-02 21:59:31 +03:00
parent f710c3472c
commit 688f7e39e1
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
3 changed files with 6 additions and 1 deletions

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 828 KiB

After

Width:  |  Height:  |  Size: 695 KiB