Inheritance: System.EventArgs
Beispiel #1
0
 public static void InvokeQuestGumpRequest(QuestGumpRequestArgs e)
 {
     if (QuestGumpRequest != null)
     {
         QuestGumpRequest(e);
     }
 }
		private static void EventSink_QuestGumpRequest( QuestGumpRequestArgs args )
		{
			PlayerMobile pm = args.Mobile as PlayerMobile;

			if( pm == null )
				return;

			QuestSystem qs = pm.Quest;

			if( qs != null )
				qs.ShowQuestLog();
		}
Beispiel #3
0
		public static void QuestButton(QuestGumpRequestArgs e)
		{
			if (e == null || e.Mobile == null) return;
			Mobile from = e.Mobile;

            from.CloseGump(typeof(XMLQuestLogGump));
			// bring up the quest status gump
            from.SendGump(new XMLQuestLogGump(from));

			// bring up the normal quest objectives gump
			//NormalQuestButton(from as PlayerMobile);
		}
Beispiel #4
0
 public static void InvokeQuestGumpRequest( QuestGumpRequestArgs e )
 {
     if( QuestGumpRequest != null )
         QuestGumpRequest( e );
 }
		public static void EventSink_QuestGumpRequest( QuestGumpRequestArgs args )
		{
			PlayerMobile pm = args.Mobile as PlayerMobile;

			if ( !Enabled || pm == null )
				return;

			pm.SendGump( new QuestLogGump( pm ) );
		}
Beispiel #6
0
 public static void InvokeQuestGumpRequest(QuestGumpRequestArgs e)
 {
     QuestGumpRequest?.Invoke(e);
 }
Beispiel #7
0
		public static void InvokeQuestGumpRequest(QuestGumpRequestArgs e)
		{
			if (QuestGumpRequest != null)
			{
				foreach (QuestGumpRequestHandler currentDelegate in QuestGumpRequest.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}