mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-12 08:18:30 +02:00
Make power meter work on LV battery box (#483)
This commit is contained in:
parent
8ebc1de29c
commit
6e58a8e939
@ -129,11 +129,11 @@ local tube = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local function add_on_off_buttons(meta, ltier, charge_percent)
|
local function add_on_off_buttons(meta, ltier, charge_percent)
|
||||||
local formspec = ""
|
local formspec = "image[1,1;1,2;technic_power_meter_bg.png"
|
||||||
if ltier == "mv" or ltier == "hv" then
|
|
||||||
formspec = "image[1,1;1,2;technic_power_meter_bg.png"
|
|
||||||
.."^[lowpart:"..charge_percent
|
.."^[lowpart:"..charge_percent
|
||||||
..":technic_power_meter_fg.png]"..
|
..":technic_power_meter_fg.png]"
|
||||||
|
if ltier == "mv" or ltier == "hv" then
|
||||||
|
formspec = formspec..
|
||||||
fs_helpers.cycling_button(
|
fs_helpers.cycling_button(
|
||||||
meta,
|
meta,
|
||||||
"image_button[3,2.0;1,0.6",
|
"image_button[3,2.0;1,0.6",
|
||||||
|
Loading…
Reference in New Issue
Block a user