Files
JJBB/Assets/Project/Script/GUI/PVP/SegmentSortItem.cs

35 lines
824 B
C#
Raw Normal View History

2024-08-23 15:49:34 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SegmentSortItem : UIItemBase {
public GameObject _MarkBG;
public GameObject _MarkIcon;
public Text _SegmentDesc;
public int _SegmentGrade;
public override void Show(Hashtable hash)
{
base.Show(hash);
_SegmentGrade = (int)hash["InitObj"];
_SegmentDesc.text = GameManager.gameManager.PlayerDataPool.pvpIfo.GetSegmentGradeDesc(_SegmentGrade);
}
public override void OnItemClick()
{
base.OnItemClick();
if (SortRoomPanel.Instance)
SortRoomPanel.Instance.OnItemClick(_SegmentGrade);
}
public void ShowMarkIcon(bool isShow)
{
_MarkBG.SetActive(isShow);
_MarkIcon.SetActive(isShow);
}
}