From 93fc16aeded184b45702dcf445587abfdc6c261c Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Wed, 13 Jul 2022 20:51:07 -0700 Subject: [PATCH] use ints on MColor --- NewHorizons/Utility/MColor.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NewHorizons/Utility/MColor.cs b/NewHorizons/Utility/MColor.cs index 8c1e44dd..93d1781b 100644 --- a/NewHorizons/Utility/MColor.cs +++ b/NewHorizons/Utility/MColor.cs @@ -17,26 +17,26 @@ namespace NewHorizons.Utility /// /// The red component of this colour /// - [System.ComponentModel.DataAnnotations.Range(0f, int.MaxValue)] + [System.ComponentModel.DataAnnotations.Range(0, int.MaxValue)] public int r; /// /// The green component of this colour /// - [System.ComponentModel.DataAnnotations.Range(0f, int.MaxValue)] + [System.ComponentModel.DataAnnotations.Range(0, int.MaxValue)] public int g; /// /// The blue component of this colour /// - [System.ComponentModel.DataAnnotations.Range(0f, int.MaxValue)] + [System.ComponentModel.DataAnnotations.Range(0, int.MaxValue)] public int b; /// /// The alpha (opacity) component of this colour /// - [System.ComponentModel.DataAnnotations.Range(0f, 255f)] - [DefaultValue(255f)] + [System.ComponentModel.DataAnnotations.Range(0, 255)] + [DefaultValue(255)] public int a; public Color ToColor() => new Color(r / 255f, g / 255f, b / 255f, a / 255f);