작업 시간 분석 UI 기능 개발

This commit is contained in:
정영민
2025-03-12 09:55:47 +09:00
parent ea7b7b0d7b
commit 9edd809f6d
16 changed files with 8607 additions and 5311 deletions

View File

@@ -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;