赛事角标刷新;处理弹窗层次问题

This commit is contained in:
Caiyanpeng committed 2021-09-08 17:53:43 +08:00
1 parent 5a148c28a8
commit 50ad74bb09
8 files changed
+300 -12

No files matched your search

@@ -193,22 +193,27 @@ public class RaceItemScript : MonoBehaviour
var status = transform.Find("Status");
if (mapCompetition.Status <= 1)
{
status.gameObject.SetActive(false);
status.GetComponent<CanvasGroup>().alpha = 0;
}
else
{
status.GetComponent<RawImage>().color = Utils.HexToColorHtml(statusColorDict[mapCompetition.Status]);
if (mapCompetition.Status == 2 && !mapCompetition.HasJoin)
{
status.gameObject.SetActive(false);
status.GetComponent<CanvasGroup>().alpha = 0;
}
else
{
status.gameObject.SetActive(true);
status.GetComponent<CanvasGroup>().alpha = 1;
status.Find("Text").GetComponent<Text>().text =
mapCompetition.Status == 2?"Registered":mapCompetition.StatusVlaue;
}
}
if (status.GetComponent<ContentFitterController>())
{
Debug.Log("cf刷新一次1");
status.GetComponent<ContentFitterController>().Refresh();
}
}
float? localY = null;
public void OnPointerExit(PointerEventData eventData)