AirControl
1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
LegendTheme.cs
1
/************************************************/
2
/* */
3
/* Copyright (c) 2018 - 2021 monitor1394 */
4
/* https://github.com/monitor1394 */
5
/* */
6
/************************************************/
7
8
using
System;
9
using
UnityEngine;
10
#if dUI_TextMeshPro
11
using
TMPro;
12
#endif
13
14
namespace
XCharts
15
{
16
[Serializable]
17
public
class
LegendTheme
:
ComponentTheme
18
{
19
[SerializeField]
protected
Color m_UnableColor;
20
25
public
Color
unableColor
26
{
27
get
{
return
m_UnableColor; }
28
set
{
if
(PropertyUtil.SetColor(ref m_UnableColor, value)) SetComponentDirty(); }
29
}
30
31
public
void
Copy(
LegendTheme
theme)
32
{
33
base.Copy(theme);
34
m_UnableColor = theme.
unableColor
;
35
}
36
37
public
LegendTheme(
Theme
theme) : base(theme)
38
{
39
m_UnableColor = ColorUtil.GetColor(
"#cccccc"
);
40
41
}
42
}
43
}
XCharts.Theme
Theme
主题
Definition:
ChartTheme.cs:21
XCharts
Definition:
RewardChart.cs:14
XCharts.LegendTheme
Definition:
LegendTheme.cs:17
XCharts.LegendTheme.unableColor
Color unableColor
the color of text. 文本颜色。
Definition:
LegendTheme.cs:26
XCharts.ComponentTheme
Definition:
ComponentTheme.cs:17
Assets
XCharts
Runtime
Component
Theme
LegendTheme.cs
Github
|
About
| Developed with ❤️ in India