/****************************************************************************
* 2024.5 LXD
****************************************************************************/
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using QFramework;
namespace QFramework
{
public partial class TreeSecondItem : UIComponent
{
///
/// 选中状态
///
public Sprite m_SelectSprite;
///
/// 正常状态
///
public Sprite m_NormalSprite;
private string NO_BREAKING_SPACE = "\u00A0";
public void InitData(int index)
{
contentText.text = index.ToString();
ClickButton tmpClickBtn = transform.GetComponentInChildren();
tmpClickBtn.onLeftClick.AddListener(OnClickBtnClick);
}
private void OnClickBtnClick()
{
}
protected override void OnBeforeDestroy()
{
}
///
/// 选中
///
public void SetSelectState()
{
selectIcon.sprite = m_SelectSprite;
}
///
/// 取消选中
///
public void SetUnSelectState()
{
selectIcon.sprite = m_NormalSprite;
}
}
}