public void SetLevelInfo(UserPVEEventLevel ul, int index)
 {
     this.userLevel = ul;
     this.index = index;
     this.levelConfig = PVEConfigs.instance.GetEventLevel(ul.id);
     this.UpdateUI();
 }
Exemple #2
0
        public static string getPVEEVENTAwardString(PVEEventLevel level)
        {
            string ret = "";
            if(level!=null &&level.award2!=null)
            {
                foreach(var aw in level.award2)
                {

                    if(aw.cid>0)
                    {
                        if(AllShipConfigs.instance.getShip(aw.cid) != null)
                        {
                            ret += "" + AllShipConfigs.instance.getShip(aw.cid).title + " x " + aw.amount + "\r\n";
                        }else if(GameConfigs.instance.GetEquipmentByCid(aw.cid)!= null)
                        {
                            ret += "" + GameConfigs.instance.GetEquipmentByCid(aw.cid).title + " x " + aw.amount + "\r\n";
                        }else
                        {
                            ret += "" + getItemtypestr(aw.cid) + " x " + aw.amount + "\r\n";
                        }
                    }
                    else
                    {
                        ret += aw.icon + "\r\n";
                    }
                }
            }

            return ret;
        }