少年修仙传客户端代码仓库
hch
2025-03-03 28785d6ddf9c08e49527ede9405c7b6c93c6ed32
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>();
        });
    }
}