From 5b158af90739dcbb89c1538a6cb8c65a875dce80 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 26 Nov 2020 20:52:34 +0800 Subject: *misc --- .../Utils/Scripts/StyledInspector/StyledBanner.cs | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs (limited to 'Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs') diff --git a/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs new file mode 100644 index 00000000..568b1d85 --- /dev/null +++ b/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledBanner.cs @@ -0,0 +1,51 @@ +using UnityEngine; + +namespace Boxophobic.StyledGUI +{ + public class StyledBanner : PropertyAttribute + { + public float colorR; + public float colorG; + public float colorB; + public string title; + public string subtitle; + public int spaceTop; + public int spaceBottom; + public string helpURL; + + public StyledBanner(string title, string subtitle, string helpURL) + { + this.spaceTop = 10; + this.spaceBottom = 10; + this.colorR = -1; + this.title = title; + this.subtitle = subtitle; + this.helpURL = helpURL; + } + + public StyledBanner(float colorR, float colorG, float colorB, string title, string subtitle, string helpURL) + { + this.spaceTop = 10; + this.spaceBottom = 10; + this.colorR = colorR; + this.colorG = colorG; + this.colorB = colorB; + this.title = title; + this.subtitle = subtitle; + this.helpURL = helpURL; + } + + public StyledBanner(float colorR, float colorG, float colorB, string title, string subtitle, int spaceTop, int spaceBottom, string helpURL) + { + this.colorR = colorR; + this.colorG = colorG; + this.colorB = colorB; + this.title = title; + this.subtitle = subtitle; + this.spaceTop = spaceTop; + this.spaceBottom = spaceBottom; + this.helpURL = helpURL; + } + } +} + -- cgit v1.1-26-g67d0