ImageLayer influences the order in which the images are drawn above one another: L1 (“Selection”) is drawn above all other ImageLayers. L2 (“Indicator”) is drawn above ImageLayer 4, but below 1 and 3. L3 (“Occlusion Mask”) is drawn above ImageLayer 4 and 2 and below ImageLayer 1. L4 (“Ubersplat”) is drawn below every other layer. Images of this layer are additionally affected by time of day and the fog of war (only for tinting). Multiple images with the same layer are drawn in their order of creation - first image below all others, last image above all others.
Re-exports: Colors
public enum ImageLayer
Values: L1, L3, L2, L4
public function createImage(string path, vec2 pos, real sizeX, real sizeY) returns image
Create an image at the target location, the Image has to be a blp, with transparent borders
public function createImage(string path, vec2 pos, real sizeX, real sizeY, ImageLayer layer) returns image
Create an image at the target location, the Image has to be a blp, with transparent borders. The layer specifies which image overlaps another: Level 1 is always on the top, and level 4 always in the background. Use the enums “ImageLayer.LX”
public function image.show()
Shows the image
public function image.hide()
Hides the image
public function image.showForPlayer(player p)
Shows the image for a specific player
public function image.hideForPlayer(player p)
Hides the image for a specific player
public function image.setPos(vec2 pos)
Set the image 2D position
public function image.setPos(vec3 pos)
Set the image 3D position
public function image.setHeight(real z)
Set the image height
public function image.wrap()
Wrap the image on the terrain
public function image.setColor(colorA col)
Set the image color by using the colorA tuple
public function image.setColor(color col)
Set the image color by using the color tuple
public function image.setLevel(ImageLayer layer)
Set the image layer (use the constants)
public function image.remove()
Destroy the image
public function image.setImageRender(boolean flag)
public function image.setImageAboveWater(boolean flag, boolean useWaterAlpha)