Ejemplo n.º 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);
        }
Ejemplo n.º 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);
 }