AirControl  1.3.0
Open Source, Modular, and Extensible Flight Simulator For Deep Learning Research
LiquidChart.cs
1 /************************************************/
2 /* */
3 /* Copyright (c) 2018 - 2021 monitor1394 */
4 /* https://github.com/monitor1394 */
5 /* */
6 /************************************************/
7 
8 using UnityEngine;
9 using UnityEngine.UI;
10 using XUGL;
11 
12 namespace XCharts
13 {
17  [AddComponentMenu("XCharts/LiquidChart", 22)]
18  [ExecuteInEditMode]
19  [RequireComponent(typeof(RectTransform))]
20  [DisallowMultipleComponent]
21  public class LiquidChart : BaseChart
22  {
23 
24 #if UNITY_EDITOR
25  protected override void Reset()
26  {
27  base.Reset();
28  title.text = "LiquidChart";
29  RemoveData();
30  RemoveVessel();
31  AddVessel(Vessel.defaultVessel);
32  SerieTemplate.AddDefaultLiquidSerie(this, "serie1");
33  }
34 #endif
35  }
36 }
XCharts.Title.text
string text
The main title text, supporting for newlines. 主标题文本,支持使用 换行。
Definition: Title.cs:38
XCharts.LiquidChart
水位图
Definition: LiquidChart.cs:21
XCharts.BaseChart.AddVessel
void AddVessel(Vessel vessel)
添加容器组件。
Definition: LiquidChart_API.cs:32
XCharts
Definition: RewardChart.cs:14
XCharts.BaseChart.RemoveVessel
void RemoveVessel()
移除所有容器组件。
Definition: LiquidChart_API.cs:24
XUGL
Definition: UGL.cs:12
XCharts.BaseChart
The base class of all charts. 所有Chart的基类。
Definition: BaseChart_API.cs:21
XCharts.BaseChart.title
Title? title
The title setting of chart. 标题组件
Definition: BaseChart_API.cs:49
XCharts.Vessel
Vessel component for liquid chart. There can be multiple vessels in a Chart, which can be matched by ...
Definition: Vessel.cs:21
XCharts.BaseChart.RemoveData
virtual void RemoveData()
Remove all data from series and legend. The series list is also cleared. 清除所有系列和图例数据,系列的列表也会被清除。
Definition: BaseChart_API.cs:166