Add transparent enemy unit art
This commit is contained in:
@@ -1436,6 +1436,8 @@ func _fit_texture_rect(texture: Texture2D, target: Rect2) -> Rect2:
|
||||
func _unit_sprite_modulate(unit: Dictionary, acted: bool) -> Color:
|
||||
if acted:
|
||||
return Color(0.60, 0.62, 0.66, 0.82)
|
||||
if bool(unit.get("uses_enemy_sprite", false)):
|
||||
return Color(1.0, 1.0, 1.0, 0.98)
|
||||
if _is_generic_enemy_unit(unit):
|
||||
return Color(1.0, 0.82, 0.74, 0.94)
|
||||
return Color.WHITE
|
||||
|
||||
Reference in New Issue
Block a user