protected virtual void OnConfirmCreateBattle(GumpButton button)
        {
            if (Selected == null)
            {
                Close();
                return;
            }

            var battle = AutoPvP.CreateBattle(Selected);

            if (UseConfirmDialog)
            {
                Send(
                    new ConfirmDialogGump(
                        User,
                        Refresh(true),
                        title: "View New Battle?",
                        html: "Your new battle has been created.\nDo you want to view it now?",
                        onAccept: b => Send(new PvPBattleOverviewGump(User, Hide(true), battle))));
            }
            else
            {
                Send(new PvPBattleOverviewGump(User, Hide(true), battle));
            }
        }
Beispiel #2
0
        protected virtual void OnConfirmCreateBattle(GumpButton button)
        {
            if (Selected == null)
            {
                Close();
                return;
            }

            var battle = AutoPvP.CreateBattle(Selected);

            if (UseConfirmDialog)
            {
                new ConfirmDialogGump(User, Refresh(true))
                {
                    Title         = "View New Battle?",
                    Html          = "Your new battle has been created.\nDo you want to view it now?",
                    AcceptHandler = b => new PvPBattleOverviewGump(User, Hide(true), battle).Send(),
                    CancelHandler = Refresh
                }.Send();
            }
            else
            {
                new PvPBattleOverviewGump(User, Hide(true), battle).Send();
            }
        }
Beispiel #3
0
        protected virtual void OnConfirmCreateBattle(GumpButton button)
        {
            if (Selected == null)
            {
                Close();
                return;
            }

            var battle = AutoPvP.CreateBattle(Selected);

            Close(true);

            PvPBattlesUI.DisplayTo(User, battle, false);
        }