frames don't have alpha???
This commit is contained in:
parent
f2ac312ff0
commit
969bc3d65c
|
@ -5,7 +5,7 @@ return function()
|
||||||
for i, entry in ipairs(cache) do
|
for i, entry in ipairs(cache) do
|
||||||
if el[i] == nil then
|
if el[i] == nil then
|
||||||
entry.cube.setSize(0.0, 0.0, 0.0)
|
entry.cube.setSize(0.0, 0.0, 0.0)
|
||||||
entry.frame.setAlpha(0x00)
|
entry.text.setAlpha(0x00)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
for i, entity in ipairs(nearbyEntities) do
|
for i, entity in ipairs(nearbyEntities) do
|
||||||
|
@ -21,7 +21,7 @@ return function()
|
||||||
|
|
||||||
cache[i].cube.setPosition(entity.x, entity.y, entity.z)
|
cache[i].cube.setPosition(entity.x, entity.y, entity.z)
|
||||||
cache[i].frame.setPosition(entity.x, entity.y, entity.z)
|
cache[i].frame.setPosition(entity.x, entity.y, entity.z)
|
||||||
cache[i].frame.setAlpha(0xFF)
|
cache[i].text.setAlpha(0xFF)
|
||||||
cache[i].text.setText(entity.name)
|
cache[i].text.setText(entity.name)
|
||||||
cache[i].text.setColor(0xFF0000FF)
|
cache[i].text.setColor(0xFF0000FF)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue