diff options
| author | nokoe <nokoe@mailbox.org> | 2024-10-03 16:43:37 +0200 |
|---|---|---|
| committer | nokoe <nokoe@mailbox.org> | 2024-10-03 16:43:37 +0200 |
| commit | 43390237a6dacaeff59826c1f6951afa13ab2d7f (patch) | |
| tree | ab3dd6022596edbee3f5706b657311e22b6f3fd2 /client/player/character | |
| parent | 0c789a627e1f0357c2e14523782a253c80c50560 (diff) | |
| download | hurrycurry-43390237a6dacaeff59826c1f6951afa13ab2d7f.tar hurrycurry-43390237a6dacaeff59826c1f6951afa13ab2d7f.tar.bz2 hurrycurry-43390237a6dacaeff59826c1f6951afa13ab2d7f.tar.zst | |
chat messages show user color; align vertically; fixes #207
Diffstat (limited to 'client/player/character')
| -rw-r--r-- | client/player/character/character.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/player/character/character.gd b/client/player/character/character.gd index cd41e7ff..82e5c849 100644 --- a/client/player/character/character.gd +++ b/client/player/character/character.gd @@ -44,7 +44,7 @@ var current_animation := "idle" const NUM_COLORS = 5; const NUM_HAIRS = 3; @onready var hairstyles := [$Main/HeadDefault/Hair, $Main/HeadDefault/Hair2, $Main/HeadDefault/Hair3] -var colors = [ +const COLORS: Array[Color] = [ Color(0.204, 0.361, 0.624), Color(0.568, 0.256, 0.602), Color(0.575, 0.341, 0.117), @@ -111,7 +111,7 @@ func set_style(id: int): head_default.visible = not p.robot for h in hairstyles: h.hide() hairstyles[p.hair].show() - $Main.get_active_material(0).albedo_color = Color(0.349, 0.349, 0.349) if p.robot else colors[p.color] + $Main.get_active_material(0).albedo_color = Color(0.349, 0.349, 0.349) if p.robot else COLORS[p.color] func play_animation(name_: String): current_animation = name_ |