Code:
package Test
import Image
import Unit
image array images
init
let max = 100
for n = 1 to max
images[n] = createImage("ReplaceableTextures\\CommandButtons\\BTNPeasant.blp", vec2(0., 0.), 1., 1.)
for n = 1 to max
DestroyImage(images[n])
createUnit(Player(0), 'hfoo', vec2(0., 0.), angle(0.))
for n = 1 to max
DestroyImage(images[n])
I managed to mess up the selection circles. They pop up at wrong units, dont disappear on deselection or sometimes a unit has two circles (as can be seen in the picture).
However i didnt manage to manipulate the hp bars, arent those images? Or are they just updated too frequently (since they have to adapt to the units health...)?