using UnityEngine;
|
using vnxbqy.UI;
|
|
public class CelestialPalaceHellCell1 : CellView
|
{
|
[SerializeField] ButtonEx btnXG;
|
[SerializeField] TextEx txtXGName;
|
[SerializeField] RedpointBehaviour redPoint;
|
CelestialPalaceModel model { get { return ModelCenter.Instance.GetModel<CelestialPalaceModel>(); } }
|
public void Display(int rowIndex)
|
{
|
int[][] hellShowArr = model.hellShowArr;
|
var xgId = hellShowArr[rowIndex][0];
|
btnXG.SetListener(() =>
|
{
|
txtXGName.text = Language.Get(StringUtility.Contact("CelestialPalaceName_", xgId));
|
redPoint.redpointId = (MainRedDot.CelestialPalaceRepoint * 10 + 1) * 1000 + xgId;
|
model.currentSelectedXGId = xgId;
|
WindowCenter.Instance.Open<CelestialPalaceRoomWin>();
|
});
|
}
|
}
|