1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;
}
}
}
|