mirror of
https://github.com/sirrobzeroone/elepower.git
synced 2024-12-11 16:03:15 +01:00
10 lines
256 B
Lua
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
|