17 [SerializeField]
protected float m_LineWidth = 1f;
18 [SerializeField]
protected Color32 m_LineColor;
19 [SerializeField]
protected Color32 m_AreaColor;
20 [SerializeField]
protected Color32 m_LabelTextColor;
21 [SerializeField]
protected Color32 m_LabelBackgroundColor;
29 get {
return m_LineType; }
30 set {
if (PropertyUtil.SetStruct(ref m_LineType, value)) SetVerticesDirty(); }
38 get {
return m_LineWidth; }
39 set {
if (PropertyUtil.SetStruct(ref m_LineWidth, value)) SetVerticesDirty(); }
47 get {
return m_LineColor; }
48 set {
if (PropertyUtil.SetColor(ref m_LineColor, value)) SetVerticesDirty(); }
56 get {
return m_AreaColor; }
57 set {
if (PropertyUtil.SetColor(ref m_AreaColor, value)) SetVerticesDirty(); }
65 get {
return m_LabelTextColor; }
66 set {
if (PropertyUtil.SetColor(ref m_LabelTextColor, value)) SetComponentDirty(); }
75 get {
return m_LabelBackgroundColor; }
76 set {
if (PropertyUtil.SetColor(ref m_LabelBackgroundColor, value)) SetComponentDirty(); }
86 m_TextBackgroundColor = ColorUtil.GetColor(
"#515151C8");
87 m_TextColor = ColorUtil.GetColor(
"#FFFFFFFF");
88 m_AreaColor = ColorUtil.GetColor(
"#51515120");
89 m_LabelTextColor = ColorUtil.GetColor(
"#FFFFFFFF");
90 m_LabelBackgroundColor = ColorUtil.GetColor(
"#292929FF");
91 m_LineColor = ColorUtil.GetColor(
"#29292964");
94 m_TextBackgroundColor = ColorUtil.GetColor(
"#515151C8");
95 m_TextColor = ColorUtil.GetColor(
"#FFFFFFFF");
96 m_AreaColor = ColorUtil.GetColor(
"#51515120");
97 m_LabelTextColor = ColorUtil.GetColor(
"#FFFFFFFF");
98 m_LabelBackgroundColor = ColorUtil.GetColor(
"#292929FF");
99 m_LineColor = ColorUtil.GetColor(
"#29292964");
102 m_TextBackgroundColor = ColorUtil.GetColor(
"#515151C8");
103 m_TextColor = ColorUtil.GetColor(
"#FFFFFFFF");
104 m_AreaColor = ColorUtil.GetColor(
"#51515120");
105 m_LabelTextColor = ColorUtil.GetColor(
"#FFFFFFFF");
106 m_LabelBackgroundColor = ColorUtil.GetColor(
"#A7A7A7FF");
107 m_LineColor = ColorUtil.GetColor(
"#eee");
112 public void Copy(TooltipTheme theme)
115 m_LineType = theme.lineType;
116 m_LineWidth = theme.lineWidth;
117 m_LineColor = theme.lineColor;
118 m_AreaColor = theme.areaColor;
119 m_LabelTextColor = theme.labelTextColor;
120 m_LabelBackgroundColor = theme.labelBackgroundColor;