using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
using UnityEngine.UI;
|
|
namespace Snxxz.UI
|
{
|
public class OpenActivityRankTypeCell : CellView
|
{
|
[SerializeField] RedpointBehaviour m_Redpoint;
|
public RedpointBehaviour redpoint
|
{
|
get
|
{
|
return m_Redpoint;
|
}
|
}
|
[SerializeField] Text m_TitleTxt;
|
public Text titleTxt
|
{
|
get
|
{
|
return m_TitleTxt;
|
}
|
}
|
[SerializeField] Button m_FunctionBtn;
|
public Button functionBtn
|
{
|
get
|
{
|
return m_FunctionBtn;
|
}
|
}
|
[SerializeField] Image m_FuncIcon;
|
public Image functionIcon
|
{
|
get
|
{
|
return m_FuncIcon;
|
}
|
}
|
[SerializeField] FunctionButtonConfig m_AlternativeConfig;
|
public FunctionButtonConfig alternativeConfig { get { return m_AlternativeConfig; } set { m_AlternativeConfig = value; } }
|
|
public void ChangeState(TitleBtnState _state)
|
{
|
functionIcon.SetSprite(alternativeConfig.GetIconKey(_state));
|
m_TitleTxt.color = alternativeConfig.GetFontColor(_state);
|
m_TitleTxt.fontSize = alternativeConfig.GetFontSize(_state);
|
}
|
}
|
}
|