summaryrefslogtreecommitdiff
path: root/Assets/BOXOPHOBIC/Utils/Scripts/StyledInspector/StyledText.cs
blob: 7c53619d1b3bc3fbfceb26aa0f5b3a92342f80e5 (plain)
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
// Cristian Pop - https://boxophobic.com/

using UnityEngine;

namespace Boxophobic.StyledGUI
{
    public class StyledText : PropertyAttribute
    {
        public string text = "";
        public TextAnchor alignment = TextAnchor.MiddleCenter;
        public bool disabled = false;
        public float top = 0;
        public float down = 0;

        public StyledText()
        {
        }

        public StyledText(TextAnchor alignment, bool disabled)
        {
            this.alignment = alignment;
            this.disabled = disabled;
        }

        public StyledText(TextAnchor alignment, bool disabled, float top, float down)
        {
            this.alignment = alignment;
            this.disabled = disabled;
            this.top = top;
            this.down = down;
        }
    }
}