Exemplo n.º 1
0
 private bool OnEquipmentPowerupRsp(EquipmentPowerUpRsp rsp)
 {
     if (rsp.get_retcode() == null)
     {
         this.SetupLvUpTab();
         this.SetupWeaponTab();
         this.SetupStigmataTab();
     }
     return(false);
 }
Exemplo n.º 2
0
        private bool OnEquipmentPowerUpRsp(EquipmentPowerUpRsp rsp)
        {
            if (rsp.get_retcode() == null)
            {
                Singleton <MainUIManager> .Instance.ShowDialog(new EquipPowerUpEffectDialogContext(this._storageItemBeforePowerup, this.storageItem, this._resourceList, EquipPowerUpEffectDialogContext.DialogType.PowerUp, (int)rsp.get_boost_rate()), UIType.Any);

                this._resourceList.Clear();
                this.SetupResourceListView();
                this.OnSetResourceList();
            }
            else
            {
                GeneralDialogContext dialogContext = new GeneralDialogContext {
                    type  = GeneralDialogContext.ButtonType.SingleButton,
                    title = LocalizationGeneralLogic.GetText("Menu_Title_Tips", new object[0]),
                    desc  = LocalizationGeneralLogic.GetNetworkErrCodeOutput(rsp.get_retcode(), new object[0])
                };
                Singleton <MainUIManager> .Instance.ShowDialog(dialogContext, UIType.Any);
            }
            return(false);
        }