Пример #1
0
    /// <summary>
    /// 界面显示调用
    /// </summary>
    protected override void OnShow(INotification notification)
    {
        panel.inputBtn.value = TextManager.GetUIString("UI1028");
        HeroInfoListMsg heroInfoListMsg = notification.Body as HeroInfoListMsg;
        List <object>   list            = new List <object>();

        for (int i = 0; i < heroInfoListMsg.heroList.Count; ++i)
        {
            list.Add(heroInfoListMsg.heroList[i]);
        }
        for (int i = 0; i < 10; i++)
        {
            HeroInfoMsg info = new HeroInfoMsg
            {
                configId = i,
                level    = i,
            };
            list.Add(info);
        }
        panel.heroGrid.AddCustomDataList(list);
    }
Пример #2
0
    /// <summary>
    /// 返回拥有英雄列表
    /// </summary>
    private void OnGetHeroInfoList(object obj)
    {
        HeroInfoListMsg heroInfoListMsg = (HeroInfoListMsg)obj;

        Facade.SendNotification(NotificationID.SelectRoleOpen, heroInfoListMsg);
    }