elepower/elepower_papi/formspec.lua
2018-06-18 10:09:43 +03:00

10 lines
256 B
Lua

-- Formspec helper: Add power bar
ele.formspec = {}
function ele.formspec.power_meter(pw_percent)
return "image[0,0;1,2.8;elepower_gui_barbg.png"..
"^[lowpart:"..pw_percent..":elepower_gui_bar.png]"..
"image[0,0;1,2.8;elepower_gui_gauge.png]"
end