작업 진행 현황판 UI 기능 개발
This commit is contained in:
37
Assets/Scripts/UI/UI_WorkStatusItem.cs
Normal file
37
Assets/Scripts/UI/UI_WorkStatusItem.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
using static MQTT;
|
||||
using WI;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class UI_WorkStatusItem : UIBase
|
||||
{
|
||||
private TextMeshProUGUI groupcd;
|
||||
private TextMeshProUGUI groupnm;
|
||||
private TextMeshProUGUI mchcnt;
|
||||
private TextMeshProUGUI planqty;
|
||||
private TextMeshProUGUI workqty;
|
||||
private TextMeshProUGUI goodqty;
|
||||
private TextMeshProUGUI badqty;
|
||||
private TextMeshProUGUI badrate;
|
||||
private TextMeshProUGUI progressrate;
|
||||
private Image background;
|
||||
|
||||
public void SetStatusData(WorkShopInfo workshopInfo, Color color)
|
||||
{
|
||||
background = GetComponent<Image>();
|
||||
groupcd.SetText(workshopInfo.groupcd);
|
||||
groupnm.SetText(workshopInfo.groupnm);
|
||||
mchcnt.SetText(workshopInfo.mchcnt);
|
||||
planqty.SetText(workshopInfo.planqty);
|
||||
workqty.SetText(workshopInfo.workqty);
|
||||
goodqty.SetText(workshopInfo.goodqty);
|
||||
badqty.SetText(workshopInfo.badqty);
|
||||
badrate.SetText(workshopInfo.badrate);
|
||||
progressrate.SetText(workshopInfo.progressrate);
|
||||
|
||||
background.color = color;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user