Fix SpriteVariations layer
This commit is contained in:
parent
9646fc18ec
commit
6399bf1718
2 changed files with 4 additions and 4 deletions
|
@ -180,7 +180,7 @@ BI.add_layer = function(layers, data)
|
|||
BioInd.check_args(data, "table", "layer data")
|
||||
layers = layers or {}
|
||||
|
||||
local hr_name = data.hr_name
|
||||
local name = data.name
|
||||
local priority = data.priority
|
||||
local height = data.height
|
||||
local width = data.width
|
||||
|
@ -188,7 +188,7 @@ BI.add_layer = function(layers, data)
|
|||
local shadow = data.shadow
|
||||
|
||||
layers[#layers + 1] = {
|
||||
filename = hr_name,
|
||||
filename = name,
|
||||
priority = priority or "low",
|
||||
width = width and width * 2,
|
||||
height = height and height * 2,
|
||||
|
|
|
@ -61,12 +61,12 @@ for panel_name, locale_name in pairs(BI.hidden_entities.types[h_key]) do
|
|||
panel.BI_add_icon = true
|
||||
|
||||
panel.picture = {}
|
||||
panel.picture.layers = BI.add_layer(panel.picture.layers, {
|
||||
panel.picture = BI.add_layer(panel.picture, {
|
||||
name = BioInd.modRoot .. "/graphics/entities/bio_solar_farm/Bio_Solar_Boiler.png",
|
||||
size = 288
|
||||
})
|
||||
panel.overlay = {}
|
||||
panel.overlay.layers = table.deepcopy(panel.picture.layers)
|
||||
panel.overlay = table.deepcopy(panel.picture)
|
||||
|
||||
panel.max_health = 400
|
||||
panel.render_no_power_icon = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue