Example #1
0
    private void ShowBuySuccessDialog()
    {
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        if (!gameData.HasEnoughMoney(customPriceL, customPriceM, customPriceS))
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1005));
            return;
        }
        if (etBedName.text.Length <= 0)
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1312));
            return;
        }
        //支付金钱
        gameData.PayMoney(customPriceL, customPriceM, customPriceS);
        //播放音效
        AudioHandler.Instance.PlaySound(AudioSoundEnum.Reward);

        DialogBean        dialogData    = new DialogBean();
        FindBedDialogView findBedDialog = DialogHandler.Instance.CreateDialog <FindBedDialogView>(DialogEnum.FindBed, this, dialogData);

        //点击继续
        findBedDialog.SetCallBackForContinue((view, data) =>
        {
            ShowBuySuccessDialog();
        });
        //如果幸运值生成数据
        gameData.userCharacter.GetAttributes(out CharacterAttributesBean characterAttributes);
        BuildBedBean buildBedData = customBedData.RandomDataByLucky(characterAttributes.lucky);

        findBedDialog.SetData(buildBedData);
    }
Example #2
0
    /// <summary>
    /// 确认提交
    /// </summary>
    public void OnClickForSumbit()
    {
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        if (!gameData.HasEnoughMoney(customPriceL, customPriceM, customPriceS))
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1005));
            return;
        }
        if (etBedName.text.Length <= 0)
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1312));
            return;
        }

        DialogBean dialogData = new DialogBean();
        string     moneyStr   = "";

        if (customPriceL != 0)
        {
            moneyStr += customPriceL + TextHandler.Instance.manager.GetTextById(16);
        }
        if (customPriceM != 0)
        {
            moneyStr += customPriceM + TextHandler.Instance.manager.GetTextById(17);
        }
        if (customPriceS != 0)
        {
            moneyStr += customPriceS + TextHandler.Instance.manager.GetTextById(18);
        }
        dialogData.content = string.Format(TextHandler.Instance.manager.GetTextById(3103), moneyStr);
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
Example #3
0
    /// <summary>
    /// 晋升确认
    /// </summary>
    protected void ImproveCheck(int type)
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        //判断是否有足够的金钱
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        if (!gameData.HasEnoughMoney(levelData.price_l, levelData.price_m, levelData.price_s))
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1005));
            return;
        }
        //判断时间是否过晚
        GameTimeHandler.Instance.GetTime(out float hour, out float min);
        if (hour >= 18 || hour < 6)
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1031));
            return;
        }

        DialogBean dialogData = new DialogBean();
        string     contentStr = "???";

        if (type == 0)
        {
            contentStr = string.Format(TextHandler.Instance.manager.GetTextById(3008), tvTime.text, tvName.text, tvLowLevelName.text, tvHighLevelName.text);
        }
        else if (type == 1)
        {
            contentStr = string.Format(TextHandler.Instance.manager.GetTextById(3015), tvTime.text, tvName.text, tvLowLevelName.text, tvHighLevelName.text);
        }
        dialogData.content        = contentStr;
        dialogData.dialogPosition = type;
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
Example #4
0
    protected virtual void CreatePickForSellDialogView(out PickForSellDialogView pickForSellDialog)
    {
        DialogBean dialogData = new DialogBean();

        dialogData.title  = TextHandler.Instance.manager.GetTextById(3101);
        pickForSellDialog = DialogHandler.Instance.CreateDialog <PickForSellDialogView>(DialogEnum.PickForSell, this, dialogData);
    }
Example #5
0
    /// <summary>
    /// 使用
    /// </summary>
    /// <param name="view"></param>
    public virtual void SelectionUse(ItemsSelectionDialogView view)
    {
        if (itemsInfoData == null || itemBean == null)
        {
            return;
        }
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        switch (itemsInfoData.GetItemsType())
        {
        case GeneralEnum.Menu:
            //添加菜谱
            if (gameData.AddFoodMenu(itemsInfoData.add_id))
            {
                MenuInfoBean menuInfo = InnFoodHandler.Instance.manager.GetFoodDataById(itemsInfoData.add_id);
                RefreshItems(itemsInfoData.id, -1);
                DialogBean dialogData = new DialogBean
                {
                    title   = TextHandler.Instance.manager.GetTextById(1047),
                    content = menuInfo.name
                };
                AchievementDialogView achievementDialog = DialogHandler.Instance.CreateDialog <AchievementDialogView>(DialogEnum.Achievement, this, dialogData);
                achievementDialog.SetData(1, menuInfo.icon_key);
                ToastHandler.Instance.ToastHint(ivIcon.sprite, TextHandler.Instance.manager.GetTextById(1006));
            }
            else
            {
                ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1007));
            };
            break;

        default:
            break;
        }
    }
Example #6
0
    public virtual void ButtonClick()
    {
        if (!isOpenClick)
        {
            return;
        }
        if (itemsInfoData == null)
        {
            return;
        }
        DialogBean dialogData = new DialogBean();
        ItemsSelectionDialogView selectionDialog = DialogHandler.Instance.CreateDialog <ItemsSelectionDialogView>(DialogEnum.ItemsSelection, null, dialogData);

        selectionDialog.SetCallBack(this);
        switch (itemsInfoData.GetItemsType())
        {
        case GeneralEnum.Menu:
            selectionDialog.Open(ItemsSelectionDialogView.SelectionTypeEnum.UseAndDiscard);
            break;

        case GeneralEnum.Read:
            selectionDialog.Open(ItemsSelectionDialogView.SelectionTypeEnum.ReadAndDiscard);
            break;

        default:
            selectionDialog.Open(ItemsSelectionDialogView.SelectionTypeEnum.Discard);
            break;
        }
    }
    /// <summary>
    /// 提交晋升
    /// </summary>
    public void OnClickSubmit()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        if (isAllPre)
        {
            //前置如果有需要临时支付的条件
            PreTypeEnumTools.CompletePre(storeInfo.pre_data, gameData);
            //获取所有奖励
            RewardTypeEnumTools.CompleteReward(null, storeInfo.reward_data);
            //客栈升级
            gameData.innAttributes.SetInnLevelUp();

            ToastHandler.Instance.ToastHint(ivTitleIcon.sprite, TextHandler.Instance.manager.GetTextById(1062));
            UIHandler.Instance.manager.OpenUIAndCloseOther <UIGameMain>(UIEnum.GameMain);

            DialogBean            dialogData        = new DialogBean();
            AchievementDialogView achievementDialog = DialogHandler.Instance.CreateDialog <AchievementDialogView>(DialogEnum.Achievement, this, dialogData);
            achievementDialog.SetData(storeInfo);
        }
        else
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1061));
        }
    }
    public void Submit(DialogView dialogView, DialogBean dialogBean)
    {
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        gameData.AddArenaTrophy
            (sellNumber * (storeInfo.trophy_elementary / sellRate),
            sellNumber * (storeInfo.trophy_intermediate / sellRate),
            sellNumber * (storeInfo.trophy_advanced / sellRate),
            sellNumber * (storeInfo.trophy_legendary / sellRate));
        gameData.AddGuildCoin(sellNumber * (storeInfo.guild_coin / sellRate));
        gameData.AddMoney
            (sellNumber * (storeInfo.price_l / sellRate),
            sellNumber * (storeInfo.price_m / sellRate),
            sellNumber * (storeInfo.price_s / sellRate));

        if (storeInfo.mark_type == 1)
        {
            gameData.AddItemsNumber(itemData.itemId, -sellNumber);
        }
        else if (storeInfo.mark_type == 2)
        {
            gameData.AddBuildNumber(itemData.itemId, -sellNumber);
        }

        RefreshItem();
    }
Example #9
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="view"></param>
 public virtual void SelectionDiscard(ItemsSelectionDialogView view)
 {
     if (itemsInfoData == null)
     {
         return;
     }
     if (itemBean.itemNumber == 1)
     {
         DialogBean dialogBean = new DialogBean
         {
             content = string.Format(TextHandler.Instance.manager.GetTextById(3001), itemsInfoData.name),
             remark  = "1"
         };
         DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogBean);
     }
     else
     {
         DialogBean dialogBean = new DialogBean
         {
             content = string.Format(TextHandler.Instance.manager.GetTextById(3001), itemsInfoData.name)
         };
         PickForNumberDialogView pickForNumberDialog = DialogHandler.Instance.CreateDialog <PickForNumberDialogView>(DialogEnum.PickForNumber, this, dialogBean);
         pickForNumberDialog.SetData(ivIcon.sprite, itemBean.itemNumber);
     }
 }
    /// <summary>
    /// 点击派遣
    /// </summary>
    public void OnClickForSend()
    {
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        DialogBean dialogData = new DialogBean();

        dialogData.dialogPosition = 1;
        PickForCharacterDialogView pickForCharacterDialog = DialogHandler.Instance.CreateDialog <PickForCharacterDialogView>(DialogEnum.PickForCharacter, this, dialogData);
        //排除主角和不能参加的人
        List <string>        listExpel     = new List <string>();
        List <CharacterBean> listCharacter = gameData.GetAllCharacterData();

        for (int i = 0; i < listCharacter.Count; i++)
        {
            CharacterBean itemCharacter = listCharacter[i];
            if (itemCharacter == gameData.userCharacter ||
                (itemCharacter.baseInfo.GetWorkerStatus() != WorkerStatusEnum.Rest && itemCharacter.baseInfo.GetWorkerStatus() != WorkerStatusEnum.Work))
            {
                listExpel.Add(itemCharacter.baseInfo.characterId);
            }
        }
        pickForCharacterDialog.SetExpelCharacter(listExpel);
        pickForCharacterDialog.SetPickCharacterMax(3);
    }
Example #11
0
    public void CleanInnData()
    {
        //结算所有客户
        InnHandler.Instance.SettlementAllCustomer();
        InnHandler.Instance.CloseInn();
        //停止控制
        GameControlHandler.Instance.StopControl();
        //清楚所有NPC
        NpcHandler.Instance.builderForCustomer.ClearNpc();
        //清楚所有NPC
        NpcHandler.Instance.builderForWorker.ClearAllWork();
        //清楚所有NPC
        NpcHandler.Instance.builderForEvent.ClearNpc();
        //停止控制
        GameControlHandler.Instance.EndControl();

        //停止时间
        GameTimeHandler.Instance.SetTimeStatus(true);

        DialogBean dialogBean = new DialogBean();

        if (GameTimeHandler.Instance.GetDayStatus() == GameTimeHandler.DayEnum.Work)
        {
            dialogBean.content = TextHandler.Instance.manager.GetTextById(3006);
        }
        else if (GameTimeHandler.Instance.GetDayStatus() == GameTimeHandler.DayEnum.Rest)
        {
            dialogBean.content = TextHandler.Instance.manager.GetTextById(3014);
        }
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Text, this, dialogBean);
    }
Example #12
0
    public void OnClickForSelectCharacter()
    {
        DialogBean dialogData = new DialogBean();
        PickForCharacterDialogView pickForCharacterDialog = DialogHandler.Instance.CreateDialog <PickForCharacterDialogView>(DialogEnum.PickForCharacter, this, dialogData);

        pickForCharacterDialog.SetPickCharacterMax(1);
    }
Example #13
0
    public void Submit(DialogView dialogView, DialogBean dialogBean)
    {
        if (dialogView as PickForItemsDialogView)
        {
            PickForItemsDialogView pickForItemsDialog = dialogView as PickForItemsDialogView;
            pickForItemsDialog.GetSelectedItems(out ItemsInfoBean itemsInfo, out ItemBean itemData);
            //设置使用的物品
            uiComponent.miniGameData.SetRoundActionItemsId(itemsInfo.id);

            if (callBack != null)
            {
                callBack.PickItemsComplete(itemsInfo);
            }
        }
        else if (dialogView as PickForSkillDialogView)
        {
            PickForSkillDialogView pickForSkillDialog = dialogView as PickForSkillDialogView;
            pickForSkillDialog.GetSelectedSkill(out SkillInfoBean skillInfo);
            //设置使用的技能
            uiComponent.miniGameData.SetRoundActionSkill(skillInfo);

            if (callBack != null)
            {
                callBack.PickSkillComplete(skillInfo);
            }
        }
    }
Example #14
0
    public void OnClickForSubmit()
    {
        if (CheckUtil.StringIsNull(selectHair) &&
            CheckUtil.StringIsNull(selectEye) &&
            CheckUtil.StringIsNull(selectMouth) &&
            CheckUtil.StringIsNull(selectSkin))
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(7005));
            return;
        }
        DialogBean dialogData = new DialogBean();
        string     price      = "";

        if (priceL != 0)
        {
            price += priceL + TextHandler.Instance.manager.GetTextById(16);
        }
        if (priceM != 0)
        {
            price += priceM + TextHandler.Instance.manager.GetTextById(17);
        }
        if (priceS != 0)
        {
            price += priceS + TextHandler.Instance.manager.GetTextById(18);
        }
        dialogData.content = string.Format(TextHandler.Instance.manager.GetTextById(3104), price, characterData.baseInfo.name);
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
    //点击售卖
    public void OnClickForSell()
    {
        DialogBean dialogData = new DialogBean();

        dialogData.content = string.Format(TextHandler.Instance.manager.GetTextById(3102), tvName.text, sellNumber + "");
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
Example #16
0
    public void SetData(DialogBean dialogData)
    {
        if (dialogData == null)
        {
            return;
        }
        this.dialogData = dialogData;

        if (dialogData.title != null)
        {
            SetTitle(dialogData.title);
        }
        if (dialogData.content != null)
        {
            SetContent(dialogData.content);
        }
        if (dialogData.submitStr != null)
        {
            SetSubmitStr(dialogData.submitStr);
        }
        if (dialogData.cancelStr != null)
        {
            SetCancelStr(dialogData.cancelStr);
        }
    }
Example #17
0
 public override void Submit(DialogView dialogView, DialogBean dialogBean)
 {
     base.Submit(dialogView, dialogBean);
     if (dialogView as PickForMoneyDialogView)
     {
         //如果是金钱选择回调
         PickForMoneyDialogView pickForMoneyDialog = dialogView as PickForMoneyDialogView;
         pickForMoneyDialog.GetPickMoney(out pickMoneyL, out pickMoneyM, out pickMoneyS);
         ShowPickCharacter();
     }
     else if (dialogView as FindCharacterDialogView)
     {
         if (!CheckUtil.StringIsNull(dialogBean.remark) && dialogBean.remark.Equals("Continue"))
         {
             ShowPickCharacter();
         }
         else
         {
             //如果是招募回调
             GameDataBean            gameData            = GameDataHandler.Instance.manager.GetGameData();
             FindCharacterDialogView findCharacterDialog = dialogView as FindCharacterDialogView;
             gameData.listWorkerCharacter.Add(findCharacterDialog.characterData);
             ToastHandler.Instance.ToastHint(string.Format(TextHandler.Instance.manager.GetTextById(1053), findCharacterDialog.characterData.baseInfo.name));
         }
     }
 }
Example #18
0
    /// <summary>
    /// 提交按钮
    /// </summary>
    public void OnClickSubmit()
    {
        UIGameText   uiGameText = (UIGameText)uiComponent;
        GameDataBean gameData   = GameDataHandler.Instance.manager.GetGameData();

        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        //检测是否启用小游戏
        if (CheckUtil.StringIsNull(textData.pre_data_minigame))
        {
            List <PreTypeBean> listPre = PreTypeEnumTools.GetListPreData(textData.pre_data);
            foreach (PreTypeBean itemPreData in listPre)
            {
                PreTypeEnumTools.GetPreDetails(itemPreData, gameData);
                if (!itemPreData.isPre)
                {
                    ToastHandler.Instance.ToastHint(itemPreData.spPreIcon, itemPreData.preFailStr);
                    return;
                }
            }
            //完成前置条件
            PreTypeEnumTools.CompletePre(listPre, gameData);
            //完成所有奖励
            RewardTypeEnumTools.CompleteReward(null, textData.reward_data);
            uiGameText.SelectText(textData);
        }
        else
        {
            DialogBean dialogBean = new DialogBean();
            PickForCharacterDialogView dialogView = DialogHandler.Instance.CreateDialog <PickForCharacterDialogView>(DialogEnum.PickForCharacter, this, dialogBean);
            PreTypeForMiniGameEnumTools.GetPlayerNumber(textData.pre_data_minigame, out int playerNumber);
            dialogView.SetPickCharacterMax(playerNumber);
        }
    }
    /// <summary>
    /// 点击 取消
    /// </summary>
    public void OnClickForCancel()
    {
        DialogBean dialogData = new DialogBean();

        dialogData.content        = TextHandler.Instance.manager.GetTextById(3111);
        dialogData.dialogPosition = 0;
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
Example #20
0
    private void SelectMenu()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        DialogBean dialogData = new DialogBean();

        dialogData.content = string.Format(TextHandler.Instance.manager.GetTextById(3051), menuInfo.name);
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
 public void Submit(DialogView dialogView, DialogBean dialogBean)
 {
     if (dialogView as PickForCharacterDialogView)
     {
         PickForCharacterDialogView pickForCharacterDialog = dialogView as PickForCharacterDialogView;
         UserInfiniteTowersBean     infiniteTowersData     = new UserInfiniteTowersBean();
         List <CharacterBean>       listMembers            = pickForCharacterDialog.GetPickCharacter();
         GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();
         if (dialogBean.dialogPosition == 0)
         {
             //亲自
             infiniteTowersData.isSend = false;
             foreach (CharacterBean itemCharacter in listMembers)
             {
                 infiniteTowersData.listMembers.Add(itemCharacter.baseInfo.characterId);
             }
             gameData.AddInfinteTowersData(infiniteTowersData);
             //跳转场景
             GameCommonInfo.SetInfiniteTowersPrepareData(infiniteTowersData);
             GameScenesHandler.Instance.ChangeScene(ScenesEnum.GameInfiniteTowersScene);
         }
         else if (dialogBean.dialogPosition == 1)
         {
             //派遣
             infiniteTowersData.isSend = true;
             //检测
             foreach (CharacterBean itemCharacter in listMembers)
             {
                 WorkerStatusEnum workerStatusEnum = itemCharacter.baseInfo.GetWorkerStatus();
                 if (workerStatusEnum != WorkerStatusEnum.Rest && workerStatusEnum != WorkerStatusEnum.Work)
                 {
                     ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1142));
                     return;
                 }
             }
             //派遣
             foreach (CharacterBean itemCharacter in listMembers)
             {
                 infiniteTowersData.listMembers.Add(itemCharacter.baseInfo.characterId);
                 itemCharacter.baseInfo.SetWorkerStatus(WorkerStatusEnum.InfiniteTowers);
             }
             //计算每层攀登几率
             infiniteTowersData.InitSuccessRate(GameItemsHandler.Instance.manager, listMembers);
             gameData.AddInfinteTowersData(infiniteTowersData);
             RefreshUI();
         }
     }
     else
     {
         if (dialogBean.dialogPosition == 1)
         {
             //重置所有爬塔记录
             GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();
             gameData.CleanInfinteTowers();
             RefreshUI();
         }
     }
 }
Example #22
0
 public void Cancel(DialogView dialogView, DialogBean dialogBean)
 {
     if (dialogView as DialogForLevelUpView)
     {
         DialogForLevelUpView dialogForLevelUpView = dialogView as DialogForLevelUpView;
         handler_Game.LevelUpScene(1, dialogForLevelUpView.GetTimeForDelayGold());
     }
     RefreshUI();
 }
Example #23
0
 public void Submit(DialogView dialogView, DialogBean dialogBean)
 {
     if (dialogView as PickForMoneyDialogView)
     {
         PickForMoneyDialogView pickForMoneyDialog = dialogView as PickForMoneyDialogView;
         pickForMoneyDialog.GetPickMoney(out int moneyL, out int moneyM, out int moneyS);
         gambleHandler.BetMoney(moneyL, moneyM, moneyS);
     }
 }
Example #24
0
    public void OnClickForEdName()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        DialogBean dialogData = new DialogBean();

        //dialogData.content = buildBedData.bedName;
        dialogData.title = TextHandler.Instance.manager.GetTextById(8001);
        DialogHandler.Instance.CreateDialog <InputTextDialogView>(DialogEnum.InputText, this, dialogData);
    }
Example #25
0
    /// <summary>
    /// 删除数据
    /// </summary>
    public void GameDataDelete()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForBack);

        DialogBean dialogData = new DialogBean();

        dialogData.content = TextHandler.Instance.manager.GetTextById(3011);
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
Example #26
0
    public void BuyGoods()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        int        buyNumber  = int.Parse(etNumber.text);
        DialogBean dialogData = new DialogBean();

        dialogData.content = string.Format(TextHandler.Instance.manager.GetTextById(3009), tvPirce.text, buyNumber, goodsData.name);
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
Example #27
0
    /// <summary>
    /// 读档重来
    /// </summary>
    public void OnClickRestartDay()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        DialogBean dialogBean = new DialogBean();

        dialogBean.dialogPosition = 3;
        dialogBean.content        = TextHandler.Instance.manager.GetTextById(3083);
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogBean);
    }
    /// <summary>
    /// 重置所有
    /// </summary>
    public void OnClickForClean()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        DialogBean dialogData = new DialogBean();

        dialogData.dialogPosition = 1;
        dialogData.content        = TextHandler.Instance.manager.GetTextById(3112);
        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
Example #29
0
    /// <summary>
    /// 点击研究取消
    /// </summary>
    public void OnClickResearchCancel()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        DialogBean dialogData = new DialogBean
        {
            content = TextHandler.Instance.manager.GetTextById(3072)
        };

        DialogHandler.Instance.CreateDialog <DialogView>(DialogEnum.Normal, this, dialogData);
    }
Example #30
0
    /// <summary>
    ///  送礼
    /// </summary>
    public void SendGift()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        DialogBean dialogData = new DialogBean();
        // dialogData.content = string.Format(TextHandler.Instance.manager.GetTextById(3063), characterData.baseInfo.name);
        PickForItemsDialogView dialogView = DialogHandler.Instance.CreateDialog <PickForItemsDialogView>(DialogEnum.PickForItems, this, dialogData);

        dialogView.SetData(null, ItemsSelectionDialogView.SelectionTypeEnum.Gift);
        dialogView.SetSubmitDestroy(false);
    }