This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
snakeinabox/Assets/NaughtyAttributes/Scripts/Core/DrawerAttributes/ProgressBarAttribute.cs
2020-07-09 11:41:01 -07:00

32 lines
No EOL
771 B
C#

using System;
namespace NaughtyAttributes
{
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class ProgressBarAttribute : DrawerAttribute
{
public string Name { get; private set; }
public float MaxValue { get; private set; }
public ProgressBarColor Color { get; private set; }
public ProgressBarAttribute(string name = "", float maxValue = 100, ProgressBarColor color = ProgressBarColor.Blue)
{
Name = name;
MaxValue = maxValue;
Color = color;
}
}
public enum ProgressBarColor
{
Red,
Pink,
Orange,
Yellow,
Green,
Blue,
Indigo,
Violet,
White
}
}