1
0
Fork 0

frames don't have alpha???

This commit is contained in:
Casey 2023-10-12 21:28:44 +03:00
parent f2ac312ff0
commit 969bc3d65c
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 2 deletions

View File

@ -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