Beispiel #1
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));
         }
     }
 }
Beispiel #2
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);
     }
 }
Beispiel #3
0
 /// <summary>
 /// 点击下注
 /// </summary>
 public void OnClickBet()
 {
     AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
     if (gambleData.GetGambleStatus() == GambleStatusType.Prepare)
     {
         DialogBean dialogData = new DialogBean();
         dialogData.title = TextHandler.Instance.manager.GetTextById(611);
         PickForMoneyDialogView PickForMoneyDialog = DialogHandler.Instance.CreateDialog <PickForMoneyDialogView>(DialogEnum.PickForMoney, this, dialogData);
         PickForMoneyDialog.SetData((int)gambleData.betMaxForMoneyL / 10, (int)gambleData.betMaxForMoneyM / 10, (int)gambleData.betMaxForMoneyS / 10);
         PickForMoneyDialog.SetMaxMoney(gambleData.betMaxForMoneyL, gambleData.betMaxForMoneyM, gambleData.betMaxForMoneyS);
     }
 }
Beispiel #4
0
    /// <summary>
    /// 重金寻聘
    /// </summary>
    public void FindWorkerByMoney()
    {
        AudioHandler.Instance.PlaySound(AudioSoundEnum.ButtonForNormal);
        //检测是否超过人员上限
        GameDataBean gameData = GameDataHandler.Instance.manager.GetGameData();

        if (gameData.listWorkerCharacter.Count >= gameData.workerNumberLimit)
        {
            ToastHandler.Instance.ToastHint(TextHandler.Instance.manager.GetTextById(1051));
            return;
        }
        pickMoneyL = 0;
        pickMoneyM = 0;
        pickMoneyS = 0;
        DialogBean dialogData = new DialogBean();

        dialogData.title = TextHandler.Instance.manager.GetTextById(3062);
        PickForMoneyDialogView pickForMoneyDialog = DialogHandler.Instance.CreateDialog <PickForMoneyDialogView>(DialogEnum.PickForMoney, this, dialogData);

        pickForMoneyDialog.SetData(1, 1, 100);
        pickForMoneyDialog.SetMaxMoney(99999, 99999, 99999);
    }