35 lines
824 B
C#
35 lines
824 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|