작업 시간 분석 UI 기능 개발
This commit is contained in:
@@ -12,8 +12,8 @@ using static ChartAndGraph.GraphChartBase;
|
||||
public class UI_GraphChart : UIBase, IPointerClickHandler
|
||||
{
|
||||
public GraphChart Graph;
|
||||
public UI_DateTime prf_dateTime;
|
||||
public RectTransform Content_DateTime;
|
||||
//public UI_DateTime prf_dateTime;
|
||||
//public RectTransform Content_DateTime;
|
||||
|
||||
private UI_GraphChartData chartDetailData;
|
||||
|
||||
@@ -37,7 +37,7 @@ public class UI_GraphChart : UIBase, IPointerClickHandler
|
||||
public override void AfterAwake()
|
||||
{
|
||||
Graph = GetComponentInChildren<GraphChart>();
|
||||
prf_dateTime = Resources.Load<UI_DateTime>("Prefabs/UI/PRF_UI_DateTime");
|
||||
//prf_dateTime = Resources.Load<UI_DateTime>("Prefabs/UI/PRF_UI_DateTime");
|
||||
chartDetailData = FindSingle<UI_GraphChartData>();
|
||||
}
|
||||
public void OnPointerClick(PointerEventData eventData)
|
||||
@@ -53,14 +53,14 @@ public class UI_GraphChart : UIBase, IPointerClickHandler
|
||||
chartDetailData.SetData(graphName, graphChartData[args.Index], graphDateTimeData[args.Index], args.Position);
|
||||
}
|
||||
|
||||
public void SetChartLabels(List<string> labels)
|
||||
{
|
||||
for (int i = 0; i < labels.Count; i++)
|
||||
{
|
||||
var date = Instantiate(prf_dateTime, Content_DateTime);
|
||||
date.SetDateTime(labels[i]);
|
||||
}
|
||||
}
|
||||
//public void SetChartLabels(List<string> labels)
|
||||
//{
|
||||
// for (int i = 0; i < labels.Count; i++)
|
||||
// {
|
||||
// var date = Instantiate(prf_dateTime, Content_DateTime);
|
||||
// date.SetDateTime(labels[i]);
|
||||
// }
|
||||
//}
|
||||
public void SetChartData(string graphName, GraphChartData graphData)
|
||||
{
|
||||
this.graphName = graphName;
|
||||
|
||||
Reference in New Issue
Block a user