Skip to content

File BadgeSet.cs

File List > LemonUI > LemonUI > Menus > BadgeSet.cs

Go to the documentation of this file


using System;

namespace LemonUI.Menus
{
    public class BadgeSet
    {
        #region Fields

        private string normalDict = string.Empty;
        private string normalTexture = string.Empty;
        private string hoveredDict = string.Empty;
        private string hoveredTexture = string.Empty;

        #endregion

        #region Properties

        public string NormalDictionary
        {
            get => normalDict;
            set => normalDict = value ?? throw new ArgumentNullException(nameof(value));
        }
        public string NormalTexture
        {
            get => normalTexture;
            set => normalTexture = value ?? throw new ArgumentNullException(nameof(value));
        }
        public string HoveredDictionary
        {
            get => hoveredDict;
            set => hoveredDict = value ?? throw new ArgumentNullException(nameof(value));
        }
        public string HoveredTexture
        {
            get => hoveredTexture;
            set => hoveredTexture = value ?? throw new ArgumentNullException(nameof(value));
        }

        #endregion

        #region Constructors

        public BadgeSet()
        {
        }
        public BadgeSet(string dict, string normal, string hovered)
        {
            normalDict = dict ?? throw new ArgumentNullException(nameof(dict));
            normalTexture = normal ?? throw new ArgumentNullException(nameof(normal));
            hoveredDict = dict;
            hoveredTexture = hovered ?? throw new ArgumentNullException(nameof(hovered));
        }
        public BadgeSet(string normalDict, string normalTexture, string hoveredDict, string hoveredTexture)
        {
            this.normalDict = normalDict ?? throw new ArgumentNullException(nameof(normalDict));
            this.normalTexture = normalTexture ?? throw new ArgumentNullException(nameof(normalTexture));
            this.hoveredDict = hoveredDict ?? throw new ArgumentNullException(nameof(hoveredDict));
            this.hoveredTexture = hoveredTexture ?? throw new ArgumentNullException(nameof(hoveredTexture));
        }

        #endregion
    }
}