Exemple #1
0
            public SimpleConfirmGump(YesNoCallback callback, Mobile callingPlayer, String msg, bool dragable)
                : base(300, 300)
            {
                _CallBack      = callback;
                _CallingPlayer = callingPlayer;

                Disposable = false;
                Dragable   = dragable;

                AddPage(0);

                AddImage(0, 0, 0x816);
                AddButton(20, 74, 0x81A, 0x81B, 1, GumpButtonType.Reply, 0);   // OK
                AddButton(88, 74, 0x995, 0x996, 0, GumpButtonType.Reply, 0);   // Cancel

                //string msg = "Are you sure?";
                AddLabel(42, 25, 63, msg);
            }
Exemple #2
0
            public YesNoGump(YesNoCallback callback, Mobile callingPlayer, string queryTitle, string theQuestion, string yesString, string noString, bool dragable)
                : base(100, 100)
            {
                _CallBack      = callback;
                _CallingPlayer = callingPlayer;

                Disposable = false;
                Dragable   = dragable;

                AddPage(0);
                AddBackground(0, 0, 400, 360, 0x13BE);
                AddHtml(10, 10, 380, 20, "<basefont color=#FFFFFF size=5><center>" + queryTitle + "</center></basefont>", false, false);
                AddHtml(10, 60, 380, 170, theQuestion, true, true);

                AddButton(20, 245, 0x7538, 0x7539, 0xffff, GumpButtonType.Reply, 0);
                AddLabel(40, 240, 1150, yesString);
                AddButton(20, 265, 0x7538, 0x7539, 0, GumpButtonType.Reply, 0);
                AddLabel(40, 260, 1150, noString);
            }
Exemple #3
0
 public static void AskYesNo(YesNoCallback callback, Mobile callingPlayer, string queryTitle, string theQuestion, string yesString, string noString, bool dragable)
 {
     callingPlayer.SendGump(new YesNoGump(callback, callingPlayer, queryTitle, theQuestion, yesString, noString, dragable));
 }
Exemple #4
0
 public static void AskYesNo(YesNoCallback callback, Mobile callingPlayer, string queryTitle, string theQuestion, bool dragable)
 {
     AskYesNo(callback, callingPlayer, queryTitle, theQuestion, "Yes", "No", dragable);
 }
Exemple #5
0
 public static void SimpleConfirmMsg(YesNoCallback callback, Mobile callingPlayer, String msg, bool dragable)
 {
     callingPlayer.SendGump(new SimpleConfirmGump(callback, callingPlayer, msg, dragable));
 }
Exemple #6
0
 public static void SimpleConfirm(YesNoCallback callback, Mobile callingPlayer, bool dragable)
 {
     SimpleConfirmMsg(callback, callingPlayer, "Are you sure?", dragable);
 }