少年修仙传客户端代码仓库
hch
2024-12-16 9377811d0ba27047e1e5ec2348a28eba1033d59d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>();
        });
    }
}