Use int-based colors for tag-color systems in NAT. Close #167

This commit is contained in:
2022-12-04 23:11:18 +00:00
parent 1ca8e30c33
commit 8579b6b8f0
10 changed files with 77 additions and 20 deletions

View File

@@ -36,8 +36,8 @@
(FlxSpriteUtil.drawCircle this -1 -1 c.radius FlxColor.TRANSPARENT (object thickness CIRCLE_THICKNESS color color))))
(true
(set pixels .pixels
(let [color (if (hasComponent e Color)
(let [c (readComponent e Color)]
(let [color (if (hasComponent e ColorF)
(let [c (readComponent e ColorF)]
(FlxColor.fromRGBFloat c.r c.g c.b c.a))
DEFAULT_COLOR)
t (new FlxText 0 0 0 (readComponent e Name) PlayState.TEXT_SIZE)]