예제 #1
0
        //灵石对比
        private void OnShowRuneContrastPanelClickCallBack(int runeId)
        {
            currentRuneId = runeId;
            RuneContrast contrastentity = new RuneContrast();
            RuneInfo     newrune        = new RuneInfo();
            RuneInfo     originrune     = new RuneInfo();
            SlotInfo     info           = new SlotInfo();

            info.slotid = currentSlotId;

            originrune.runeid        = controller.GetRuneId(currentSlotId, currentRunePageId);
            originrune.iconid        = controller.GetRuneIcon(originrune.runeid);
            originrune.level         = controller.GetRuneLevel(originrune.runeid);
            originrune.nane          = controller.GetRuneName(originrune.runeid);
            originrune.itemattribute = controller.GetRuneAttribute(originrune.runeid);

            newrune.runeid        = currentRuneId;
            newrune.iconid        = controller.GetRuneIcon(currentRuneId);
            newrune.level         = controller.GetRuneLevel(currentRuneId);
            newrune.nane          = controller.GetRuneName(currentRuneId);
            newrune.itemattribute = controller.GetRuneAttribute(currentRuneId);

            contrastentity.newrune      = newrune;
            contrastentity.originrune   = originrune;
            contrastentity.slot         = info;
            contrastentity.replaceEvent = (int pageid, int newruneid, int slotid) =>
            {
                controller.SendEquipRuneItem(pageid, newruneid, slotid);
                RuneRightChildChange(runePageInformationPanel.name);
            };
            ShowRunePopViewUI(contrastentity, RunePopType.RuneContrastPanel);
        }
예제 #2
0
 public void Init(RuneContrast runecontrast)
 {
     this.runeinfo     = runecontrast.newrune;
     this.slotinfo     = runecontrast.slot;
     this.replaceEvent = runecontrast.replaceEvent;
     orgineRune.Init(runecontrast.originrune);
     newRune.Init(runecontrast.newrune);
 }
예제 #3
0
 public void Init(RuneInfo info)
 {
     this.name.text = String.Format("{0}级  {1}", info.level, info.nane);
     GameResourceLoadManager.GetInstance().LoadAtlasSprite(info.iconid, delegate(string name, AtlasSprite atlasSprite, System.Object param)
     {
         this.runeIcon.SetSprite(atlasSprite);
     }, true);
     this.attribute.text = info.itemattribute;
 }
예제 #4
0
 public void Init(SellEntity sellEntity)
 {
     sellRuneItem             = sellEntity.info;
     sellEvent                = sellEntity.sellEvent;
     this.itfd_sellcount.text = sellcount.ToString();
     this.txt_name.text       = sellRuneItem.nane;
     this.txt_attribute.text  = sellRuneItem.itemattribute;
     this.txt_describer.text  = sellRuneItem.describer;
     this.txt_count.text      = string.Format(HAVE_COUNT, sellRuneItem.count);
     GameResourceLoadManager.GetInstance().LoadAtlasSprite(sellRuneItem.iconid, delegate(string name, AtlasSprite atlasSprite, System.Object param)
     {
         this.img_icon.SetSprite(atlasSprite);
     }, true);
     this.txt_getgold.text = (sellcount * sellRuneItem.sellprice_gold).ToString();
 }
예제 #5
0
        public void Init(BuyEntity item)
        {
            buyRuneInfo = item.info;
            this.itfd_sellcount.text = buycount.ToString();
            this.txt_name.text       = buyRuneInfo.nane;
            this.txt_attribute.text  = buyRuneInfo.itemattribute;
            this.txt_describer.text  = buyRuneInfo.describer;
            this.txt_count.text      = string.Format(HAVE_COUNT, buyRuneInfo.count);
            this.buyEvent            = item.buyEvent;
            GameResourceLoadManager.GetInstance().LoadAtlasSprite(buyRuneInfo.iconid, delegate(string name, AtlasSprite atlasSprite, System.Object param)
            {
                this.img_icon.SetSprite(atlasSprite);
            }, true);

            RefreshButton();

            this.txt_costgold.text    = (buycount * goldCost).ToString();
            this.txt_costcrystal.text = (buycount * jewelCost).ToString();
            this.txt_costember.text   = (buycount * emberCost).ToString();
        }