I want to create an upgraded electric drill in 0.15, and was hoping to overlay the default graphics/animation with a simple static png (EG: transparent background with X in corner)...
Code: Select all
local newEntity
newEntity = util.table.deepcopy(data.raw["mining-drill"]["electric-mining-drill"]);
newEntity.name = "my-electric-drill-2"
newEntity.minable.result = my-electric-drill-2"
newEntity.animation_speed = 1
newEntity.energy_usage = "300kW"
newEntity.mining_speed = 1
newEntity.tint = {r = 0.1, g = 0.9, b = 0.9}
Code: Select all
newEntity.YYY =
{
filename = mod_directory .. "/graphics/purpleX.png",
priority = "extra-high",
width = 100,
height = 100,
--perhaps need shift etc. here
}
I'm guessing I need to add a layer, but I can't figure out which property to add the layer to.
Looking at the default entity for the drill it appears the basic structure of the drill is actual repeated in each animation for each direction, but I just want a single overlay that doesn't animate or change direction.
Any hints appreciated thank you.
Edit: Bonus points for info on Z order so I can place my overlay under the animated mining blades Is that what "priority" is for?