rectangles have height, did you know that?
This commit is contained in:
parent
631abc9ab9
commit
68717eaa04
|
@ -34,7 +34,7 @@ local function entityBox(ent)
|
||||||
self._hp_rect_fg.setSize(100 * entity.health / entity.maxHealth, 15)
|
self._hp_rect_fg.setSize(100 * entity.health / entity.maxHealth, 15)
|
||||||
else
|
else
|
||||||
self._hp_txt.setText(string.format("%s", entity.name))
|
self._hp_txt.setText(string.format("%s", entity.name))
|
||||||
self._hp_rect_fg.setSize(0)
|
self._hp_rect_fg.setSize(0, 0)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
destroy = function(self)
|
destroy = function(self)
|
||||||
|
|
Loading…
Reference in New Issue