Ejemplo n.º 1
0
            public SimpleConfirmStateGump(YesNoCallbackState callback, Mobile callingPlayer, String msg, bool dragable, object[] state)
                : base(300, 300)
            {
                _CallBack      = callback;
                _CallingPlayer = callingPlayer;
                _State         = state;

                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);
            }
Ejemplo n.º 2
0
 public static void SimpleConfirmMsg(YesNoCallbackState callback, Mobile callingPlayer, String msg, bool dragable, object[] state)
 {
     callingPlayer.SendGump(new SimpleConfirmStateGump(callback, callingPlayer, msg, dragable, state));
 }
Ejemplo n.º 3
0
 public static void SimpleConfirm(YesNoCallbackState callback, Mobile callingPlayer, bool dragable, object[] state)
 {
     SimpleConfirmMsg(callback, callingPlayer, "Are you sure?", dragable, state);
 }