-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHierarchyCustomization
34 lines (28 loc) · 1.06 KB
/
HierarchyCustomization
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Scripts.Utility
{
public class HierachyCustomization : MonoBehaviour
{
public static readonly Color DEFAULT_BACKGROUND_COLOR = new Color(0.2196079f, 0.2196079f, 0.2196079f, 1f);
public static readonly Color DEFAULT_TEXT_COLOR = new Color(0.8f, 0.8f, 0.8f, 1f);
public HierachyCustomization() { }
public HierachyCustomization(Color inBackgroundColor)
{
this.Background_Color = inBackgroundColor;
}
public HierachyCustomization(Color inBackgroundColor, Color inTextColor, FontStyle inFontStyle = FontStyle.Normal)
{
this.Background_Color = inBackgroundColor;
this.Text_Color = inTextColor;
this.TextStyle = inFontStyle;
}
[Header("Active State")]
public Color Text_Color = DEFAULT_TEXT_COLOR;
public FontStyle TextStyle = FontStyle.Normal;
public Color Background_Color = DEFAULT_BACKGROUND_COLOR;
}
}