Skip to content

Commit

Permalink
Updates atom alpha when atom color is set (#2222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruzihm authored Feb 22, 2025
1 parent cab4e05 commit 7d528ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenDreamShared/Dream/MutableAppearance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ public void SetColor(string color) {
if (!ColorHelpers.TryParseColor(color, out Color)) {
Color = Color.White;
}

Alpha = (byte)(Color.A * 255);
}

/// <summary>
Expand Down

0 comments on commit 7d528ce

Please sign in to comment.