public Label SetMythElixirLabel(CostumeRoom_Dlg owner)
        {
            Label label = owner.GetControl("LB_MythElixir") as Label;

            label.Text = string.Empty;
            return(label);
        }
Exemple #2
0
 public CostumeStatSetter(CostumeRoom_Dlg owner)
 {
     this._owner          = owner;
     this._attackTextKey  = "242";
     this._defenseTextKey = "252";
     this._hpTextKey      = "1196";
 }
Exemple #3
0
 public CostumeViewerSetter(CostumeRoom_Dlg owner)
 {
     this._owner              = owner;
     this._costumeStatSetter  = new CostumeStatSetter(owner);
     this._costumeSkillSetter = new CostumeSkillSetter(owner);
     this._costumeCharSetter  = new CostumeCharSetter(owner);
 }
        public DrawTexture SetMyCharListRightArrowBG(CostumeRoom_Dlg owner)
        {
            DrawTexture drawTexture = owner.GetControl("arrow_BG02") as DrawTexture;

            drawTexture.SetLocation(drawTexture.GetLocationX(), drawTexture.GetLocationY(), drawTexture.GetLocation().z - 3f);
            return(drawTexture);
        }
        public Button SetSoulGemLinkButton(CostumeRoom_Dlg owner)
        {
            Button button = owner.GetControl("Btn_SoulGem_Shop") as Button;

            button.AddValueChangedDelegate(new EZValueChangedDelegate(owner.OnClickCostumeMaterialLink));
            return(button);
        }
        public Button SetHelpButton(CostumeRoom_Dlg owner)
        {
            Button button = owner.GetControl("Help_Button") as Button;

            button.AddValueChangedDelegate(new EZValueChangedDelegate(owner.OnClickHelpBtn));
            return(button);
        }
        public Button SetBackButton(CostumeRoom_Dlg owner)
        {
            Button button = owner.GetControl("Button_Back") as Button;

            button.AddValueChangedDelegate(new EZValueChangedDelegate(owner.OnClickBackBtn));
            return(button);
        }
        public Button SetActionAttackBtn(CostumeRoom_Dlg owner)
        {
            Button button = owner.GetControl("Button_Action_Attack") as Button;

            button.AddValueChangedDelegate(new EZValueChangedDelegate(owner._costumeViewerSetter._costumeCharSetter.OnClickActionAttack));
            return(button);
        }
        public Button SetMythElixirButton_2(CostumeRoom_Dlg owner)
        {
            Button button = owner.GetControl("Btn_MythElixir_Shop2") as Button;

            button.AddValueChangedDelegate(new EZValueChangedDelegate(owner.OnClickCostumeMaterialLink));
            return(button);
        }
        public Label SetSkillName(CostumeRoom_Dlg owner)
        {
            Label label = owner.GetControl("Label_SkillName") as Label;

            label.Text = string.Empty;
            return(label);
        }
        public Button SetMyCharListRightBtn(CostumeRoom_Dlg owner)
        {
            Button button = owner.GetControl("Button_RightArrow") as Button;

            button.SetLocation(button.GetLocationX(), button.GetLocationY(), button.GetLocation().z - 3f);
            return(button);
        }
        public NewListBox SetMySolListBox(CostumeRoom_Dlg owner)
        {
            NewListBox newListBox = owner.GetControl("NewListBox_MySolList") as NewListBox;

            newListBox.Reserve = false;
            return(newListBox);
        }
        public CheckBox SetCostumeUIHideCheckBox(CostumeRoom_Dlg owner)
        {
            CheckBox checkBox = owner.GetControl("CheckBox_UIHide") as CheckBox;

            checkBox.SetValueChangedDelegate(new EZValueChangedDelegate(owner.OnChangeUIHideCheckBox));
            return(checkBox);
        }
        public Button SetImmediatelyBuyBtn(CostumeRoom_Dlg owner)
        {
            Button button = owner.GetControl("Button_Buy") as Button;

            button.AddValueChangedDelegate(new EZValueChangedDelegate(owner.OnClickImmediatelyBuy));
            return(button);
        }
Exemple #15
0
 public CharSettingProcessor(CostumeRoom_Dlg costumeRoomDlg, CostumeCharSetter costumeCharSetter)
 {
     this._costumeRoomDlg    = costumeRoomDlg;
     this._costumeCharSetter = costumeCharSetter;
     this._charScale         = 210f;
     this._charRotationY     = 180f;
 }
Exemple #16
0
 public CostumeCharSetter(CostumeRoom_Dlg owner)
 {
     this._owner = owner;
     this._costumeLightObjName  = "CostumeLight";
     this._charSettingProcessor = new CharSettingProcessor(owner, this);
     this._animationProcessor   = new AnimationProcessor(this);
 }
        public Button SetSkillInfoBtn(CostumeRoom_Dlg owner)
        {
            Button button = owner.GetControl("Button_SkillInfo") as Button;

            button.AddValueChangedDelegate(new EZValueChangedDelegate(owner._costumeViewerSetter._costumeSkillSetter.OnClickCostumeSkill));
            return(button);
        }
        public Label SetSolGemLabel(CostumeRoom_Dlg owner)
        {
            Label label = owner.GetControl("LB_SoulGem") as Label;

            label.Text = string.Empty;
            return(label);
        }
        public DrawTexture SetBG(CostumeRoom_Dlg owner)
        {
            DrawTexture drawTexture = owner.GetControl("DT_MainBG") as DrawTexture;

            drawTexture.SetTextureFromBundle("ui/soldier/BG_costume");
            drawTexture.AddMouseDownDelegate(new EZValueChangedDelegate(owner._costumeViewerSetter._costumeCharSetter.CostumeViewOnPress));
            return(drawTexture);
        }
        public CheckBox SetSameKindSolCheckBox(CostumeRoom_Dlg owner)
        {
            CheckBox checkBox = owner.GetControl("CheckBox_samehero") as CheckBox;

            checkBox.SetCheckState(1);
            checkBox.SetValueChangedDelegate(new EZValueChangedDelegate(owner._myCharListSetter._callbackProcessor.OnClickSameHeroViewCheckBox));
            return(checkBox);
        }
Exemple #21
0
 public MyCharListSetter(CostumeRoom_Dlg owner)
 {
     this._owner             = owner;
     this._selectedSolInfo   = null;
     this._callbackProcessor = new CallbackProcessor(owner, this);
     this._sortProcessor     = new SortProcessor();
     this._listItemSetter    = new ListItemSetter(this);
     this._listItemMover     = new ListItemMover(owner);
 }
        public NewListBox SetCostumeListBox(CostumeRoom_Dlg owner)
        {
            NewListBox newListBox = owner.GetControl("NewListBox_CostumeList") as NewListBox;

            newListBox.Reserve = false;
            newListBox.Clear();
            newListBox.AddValueChangedDelegate(new EZValueChangedDelegate(owner._costumeListSetter.OnCostumeListClick));
            return(newListBox);
        }
    private void VisibleCostumeChar(bool visible)
    {
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null || costumeRoom_Dlg._costumeViewerSetter == null || costumeRoom_Dlg._costumeViewerSetter._costumeCharSetter == null)
        {
            return;
        }
        costumeRoom_Dlg._costumeViewerSetter._costumeCharSetter.VisibleChar(visible);
    }
Exemple #24
0
    private void CostumeRoomRefresh(bool refreshMyCharList, bool refreshCostumeSaleList)
    {
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null)
        {
            return;
        }
        costumeRoom_Dlg.Refresh(refreshMyCharList, refreshCostumeSaleList);
    }
    public override void OnClose()
    {
        base.OnClose();
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null || costumeRoom_Dlg._costumeViewerSetter == null || costumeRoom_Dlg._costumeViewerSetter._costumeCharSetter == null)
        {
            return;
        }
        costumeRoom_Dlg._costumeViewerSetter._costumeCharSetter.VisibleChar(true);
    }
    private void UpdateMyCostumeInfo(GS_COSTUME_BUY_ACK ack)
    {
        if (ack == null)
        {
            return;
        }
        this.ShowBuyCostumeMessage(ack.i32CostumeUnique);
        NrTSingleton <NrCharCostumeTableManager> .Instance.UpdateCostumeCount(ack.i32CostumeUnique, 1, 1);

        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg != null)
        {
            costumeRoom_Dlg.Refresh(true, true);
        }
        Debug.Log("BuyCostumeUnique : " + ack.i32CostumeUnique);
    }
 public COSTUME_STAT_LABEL[] SetStatLabels(CostumeRoom_Dlg owner)
 {
     COSTUME_STAT_LABEL[] array = new COSTUME_STAT_LABEL[3];
     for (int i = 1; i <= 3; i++)
     {
         if (array.Length < i)
         {
             break;
         }
         array[i - 1] = new COSTUME_STAT_LABEL();
         array[i - 1]._costumeStatLabel   = (owner.GetControl("Label_Stat0" + i.ToString()) as Label);
         array[i - 1]._postStatLabel      = (owner.GetControl("Label_Stat0" + i.ToString() + "_After") as Label);
         array[i - 1]._costumeStatPercent = (owner.GetControl("Label_Stat0" + i.ToString() + "_P") as Label);
         array[i - 1]._costumeNormalStat  = (owner.GetControl("Label_Stat0" + i.ToString() + "_AfterBasic") as Label);
     }
     return(array);
 }
    private void OnSelectSolSlot(IUIObject obj)
    {
        if (obj == null || obj.Data == null)
        {
            return;
        }
        int num = (int)obj.Data;

        if (num == -1)
        {
            return;
        }
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null)
        {
            return;
        }
        costumeRoom_Dlg.InitCostumeRoom(num, null);
        costumeRoom_Dlg.Show();
    }
Exemple #29
0
    private void OnClickCostume(IUIObject obj)
    {
        if (this.pkSolinfo == null)
        {
            return;
        }
        List <int> costumeKindList = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumeKindList();

        if (!costumeKindList.Contains(this.pkSolinfo.GetCharKind()))
        {
            return;
        }
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null)
        {
            return;
        }
        costumeRoom_Dlg.InitCostumeRoom(this.pkSolinfo.GetCharKind(), this.pkSolinfo);
        costumeRoom_Dlg.Show();
    }
Exemple #30
0
    private void OnClickCostume(IUIObject obj)
    {
        if (this.m_SolInterfaceTool == null || this.m_SolInterfaceTool.m_kSelectCharKindInfo == null)
        {
            return;
        }
        NrCharKindInfo kSelectCharKindInfo = this.m_SolInterfaceTool.m_kSelectCharKindInfo;

        if (!NrTSingleton <NrCharCostumeTableManager> .Instance.IsCostumeKind(kSelectCharKindInfo.GetCharKind()))
        {
            return;
        }
        CostumeRoom_Dlg costumeRoom_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.COSTUMEROOM_DLG) as CostumeRoom_Dlg;

        if (costumeRoom_Dlg == null)
        {
            return;
        }
        costumeRoom_Dlg.InitCostumeRoom(kSelectCharKindInfo.GetCharKind(), null);
        costumeRoom_Dlg.Show();
    }