예제 #1
0
 public MultiStringGossipMenuItem(GossipMenuIcon icon, string[] texts, GossipActionHandler callback, GossipMenu subMenu)
     : this(texts)
 {
     Icon    = icon;
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = subMenu;
 }
예제 #2
0
 public MultiStringGossipMenuItem(string[] texts, GossipActionHandler callback,
                                  params MultiStringGossipMenuItem[] items)
     : this(texts)
 {
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = new GossipMenu(items);
 }
예제 #3
0
 public MultiStringGossipMenuItem(string[] texts, GossipActionHandler callback,
                                  params MultiStringGossipMenuItem[] items)
     : this(texts)
 {
     this.Action  = (IGossipAction) new NonNavigatingGossipAction(callback);
     this.SubMenu = new GossipMenu((GossipMenuItemBase[])items);
 }
예제 #4
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, GossipActionHandler callback, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     this.Icon   = icon;
     this.Action = (IGossipAction) new NonNavigatingGossipAction(callback);
 }
예제 #5
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, GossipActionDecider decider,
                                RealmLangKey confirmLangKey, RealmLangKey msgKey, params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     this.ConfirmText = new TranslatableItem(confirmLangKey, new object[0]);
     this.Action      = (IGossipAction) new NonNavigatingDecidingGossipAction(callback, decider);
 }
예제 #6
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     this.Action  = (IGossipAction) new NonNavigatingGossipAction(callback);
     this.SubMenu = new GossipMenu((GossipMenuItemBase[])items);
 }
예제 #7
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                TranslatableItem confirmText)
     : this(text)
 {
     this.ConfirmText = confirmText;
     this.Action      = (IGossipAction) new NonNavigatingGossipAction(callback);
 }
예제 #8
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, GossipMenu subMenu, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = subMenu;
 }
예제 #9
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = new GossipMenu(items);
 }
예제 #10
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, RealmLangKey confirmLangKey, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     ConfirmText = new TranslatableItem(confirmLangKey);
     Action      = new NonNavigatingGossipAction(callback);
 }
예제 #11
0
 public QuitGossipMenuItem(RealmLangKey text, GossipActionHandler callback, params GossipMenuItem[] items)
     : base(text, (object[])items)
 {
     this.Action = (IGossipAction) new NonNavigatingGossipAction((GossipActionHandler)(convo =>
     {
         convo.Character.GossipConversation.StayOpen = false;
         callback(convo);
     }));
 }
예제 #12
0
 public QuitGossipMenuItem(RealmLangKey text, GossipActionHandler callback, params GossipMenuItem[] items)
     : base(text, items)
 {
     Action = new NonNavigatingGossipAction(convo =>
     {
         convo.Character.GossipConversation.StayOpen = false;
         callback(convo);
     });
 }
예제 #13
0
 public QuitGossipMenuItem(GossipMenuIcon icon, GossipActionHandler callback, RealmLangKey msg, params object[] args)
     : base(icon, msg, args)
 {
     Action = new NonNavigatingGossipAction((convo) =>
     {
         convo.Character.GossipConversation.StayOpen = false;
         callback(convo);
     });
 }
예제 #14
0
 public QuitGossipMenuItem(GossipActionHandler callback, GossipMenu subMenu, RealmLangKey msg,
                           params object[] args)
     : base(subMenu, msg, args)
 {
     this.Action = (IGossipAction) new NonNavigatingGossipAction((GossipActionHandler)(convo =>
     {
         convo.Character.GossipConversation.StayOpen = false;
         callback(convo);
     }));
 }
예제 #15
0
        public void AddGoBackItem(string text, GossipActionHandler callback)
        {
            NavigatingGossipAction navigatingGossipAction = new NavigatingGossipAction((GossipActionHandler)(convo =>
            {
                callback(convo);
                convo.Character.GossipConversation.GoBack();
            }));

            this.AddItem((GossipMenuItemBase) new GossipMenuItem(text, (IGossipAction)navigatingGossipAction));
        }
예제 #16
0
        public void AddGoBackItem(string text, GossipActionHandler callback)
        {
            var action = new NavigatingGossipAction(convo =>
            {
                callback(convo);
                convo.Character.GossipConversation.GoBack();
            });

            AddItem(new GossipMenuItem(text, action));
        }
예제 #17
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, GossipActionDecider decider, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     this.Action = (IGossipAction) new NonNavigatingDecidingGossipAction(callback, decider);
 }
예제 #18
0
		public void AddGoBackItem(string text, GossipActionHandler callback)
		{
			var action = new NavigatingGossipAction(convo =>
			{
				callback(convo);
				convo.Character.GossipConversation.GoBack();
			});
			AddItem(new GossipMenuItem(text, action));
		}
예제 #19
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, string[] texts, GossipActionHandler callback)
			: this(texts)
		{
			Icon = icon;
			Action = new DefaultGossipAction(callback);
		}
예제 #20
0
		public LocalizedGossipMenuItem(string[] texts, GossipActionHandler callback, params LocalizedGossipMenuItem[] items)
			: this(texts)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}
예제 #21
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, params LocalizedGossipMenuItem[] items)
			: this(text)
		{
			Action = new NonNavigatingGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}
예제 #22
0
 public PlayerRestrictedGossipAction(GossipActionHandler handler)
     : base(handler)
 {
 }
예제 #23
0
 public void AddQuitMenuItem(GossipActionHandler callback, RealmLangKey msg = RealmLangKey.Done, params object[] args)
 {
     AddItem(new QuitGossipMenuItem(callback, msg, args));
 }
예제 #24
0
 public StaffRestrictedGossipAction(GossipActionHandler handler)
     : base(handler)
 {
 }
예제 #25
0
 public LevelRestrictedGossipAction(uint level, GossipActionHandler handler)
     : base(handler)
 {
     m_level = level;
 }
예제 #26
0
		public DefaultGossipAction(GossipActionHandler handler)
		{
			m_Handler = handler;
		}
예제 #27
0
		public void AddQuitMenuItem(string text, GossipActionHandler callback)
		{
			var action = new DefaultGossipAction(convo => {
				callback(convo);
				convo.Character.GossipConversation.StayOpen = false;
			});
			AddItem(new GossipMenuItem(text, action));
		}
예제 #28
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, GossipMenu subMenu)
			: this(text)
		{
			Action = new NonNavigatingGossipAction(callback);
			SubMenu = subMenu;
		}
예제 #29
0
		public QuitGossipMenuItem(GossipMenuIcon icon, GossipActionHandler callback, RealmLangKey msg, params object[] args)
			: base(icon, msg, args)
		{
			Action = new NonNavigatingGossipAction((convo) =>
			{
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
예제 #30
0
 public GossipMenuItem(GossipMenuIcon icon, string text, GossipActionHandler callback)
     : this(text)
 {
     Icon   = icon;
     Action = new NonNavigatingGossipAction(callback);
 }
예제 #31
0
 public GossipMenuItem(string text, GossipActionHandler callback, params GossipMenuItem[] items)
     : this(text)
 {
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = new GossipMenu(items);
 }
예제 #32
0
 public PlayerRestrictedGossipAction(GossipActionHandler handler)
     : base(handler)
 {
 }
예제 #33
0
 public LevelRestrictedGossipAction(uint level, GossipActionHandler handler)
     : base(handler)
 {
     m_level = level;
 }
예제 #34
0
 public NonNavigatingDecidingGossipAction(GossipActionHandler handler, GossipActionDecider decider)
     : base(handler)
 {
     Decider = decider;
 }
예제 #35
0
 public NavigatingGossipAction(GossipActionHandler handler)
 {
     m_Handler = handler;
 }
예제 #36
0
 public NavigatingGossipAction(GossipActionHandler handler)
 {
     m_Handler = handler;
 }
예제 #37
0
		public LocalizedGossipMenuItem(string[] texts, GossipActionHandler callback, string[] confirmTexts)
			: this(texts)
		{
			ConfirmTexts = confirmTexts;
			Action = new DefaultGossipAction(callback);
		}
예제 #38
0
		public LocalizedGossipMenuItem(LangKey langKey, GossipActionHandler callback, LangKey confirmLangKey)
			: this(langKey)
		{
			ConfirmTexts = RealmLocalizer.Instance.GetTranslations(confirmLangKey);
			Action = new DefaultGossipAction(callback);
		}
예제 #39
0
		public LocalizedGossipMenuItem(string[] texts, GossipActionHandler callback, GossipMenu subMenu)
			: this(texts)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = subMenu;
		}
예제 #40
0
		public LocalizedGossipMenuItem(LangKey langKey, GossipActionHandler callback, params LocalizedGossipMenuItem[] items)
			: this(langKey)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}
예제 #41
0
		public void AddQuitMenuItem(GossipActionHandler callback, RealmLangKey msg = RealmLangKey.Done, params object[] args)
		{
			AddItem(new QuitGossipMenuItem(callback, msg, args));
		}
예제 #42
0
		public LocalizedGossipMenuItem(LangKey langKey, GossipActionHandler callback, GossipMenu subMenu)
			: this(langKey)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = subMenu;
		}
예제 #43
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, GossipActionHandler callback)
     : this(text)
 {
     this.Icon   = icon;
     this.Action = (IGossipAction) new NonNavigatingGossipAction(callback);
 }
예제 #44
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, LangKey langKey, GossipActionHandler callback)
			: this(langKey)
		{
			Icon = icon;
			Action = new DefaultGossipAction(callback);
		}
예제 #45
0
		public GossipMenuItem(GossipMenuIcon icon, string text, GossipActionHandler callback)
			: this(text)
		{
			Icon = icon;
			Action = new NonNavigatingGossipAction(callback);
		}
예제 #46
0
 public MultiStringGossipMenuItem(string[] texts, GossipActionHandler callback, string[] confirmTexts)
     : this(texts)
 {
     ConfirmTexts = confirmTexts;
     Action       = new NonNavigatingGossipAction(callback);
 }
예제 #47
0
 public GossipMenuItem(string text, GossipActionHandler callback, GossipMenu subMenu)
     : this(text)
 {
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = subMenu;
 }
예제 #48
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, TranslatableItem confirmText)
			: this(text)
		{
			ConfirmText = confirmText;
			Action = new NonNavigatingGossipAction(callback);
		}
예제 #49
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, GossipMenu subMenu)
     : this(text)
 {
     this.Action  = (IGossipAction) new NonNavigatingGossipAction(callback);
     this.SubMenu = subMenu;
 }
예제 #50
0
		public GossipMenuItem(string text, GossipActionHandler callback, GossipMenu subMenu)
			: this(text)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = subMenu;
		}
예제 #51
0
		public GossipMenuItem(GossipMenuIcon icon, string text, GossipActionHandler callback)
			: this(text)
		{
			Icon = icon;
			Action = new DefaultGossipAction(callback);
		}
예제 #52
0
		public QuitGossipMenuItem(string text, GossipActionHandler callback, string confirmText)
			: base(text)
		{
			ConfirmText = confirmText;
			Action = new DefaultGossipAction((convo) => {
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
예제 #53
0
 public StaffRestrictedGossipAction(GossipActionHandler handler)
     : base(handler)
 {
 }
예제 #54
0
		public QuitGossipMenuItem(string text, GossipActionHandler callback, GossipMenu subMenu)
			: base(text, subMenu)
		{
			Action = new DefaultGossipAction((convo) => {
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
예제 #55
0
 public NonNavigatingDecidingGossipAction(GossipActionHandler handler, GossipActionDecider decider) : base(handler)
 {
     Decider = decider;
 }
예제 #56
0
		public QuitGossipMenuItem(GossipMenuIcon icon, string text, GossipActionHandler callback)
			: base(icon, text)
		{
			Action = new DefaultGossipAction((convo) => {
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
예제 #57
0
 public MultiStringGossipMenuItem(string[] texts, GossipActionHandler callback)
     : this(texts)
 {
     Action = new NonNavigatingGossipAction(callback);
 }
예제 #58
0
		public QuitGossipMenuItem(RealmLangKey text, GossipActionHandler callback, params GossipMenuItem[] items)
			: base(text, items)
		{
			Action = new NonNavigatingGossipAction((convo) =>
			{
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
예제 #59
0
		public GossipMenuItem(string text, GossipActionHandler callback, string confirmText)
			: this(text)
		{
			ConfirmText = confirmText;
			Action = new DefaultGossipAction(callback);
		}
예제 #60
0
		public GossipMenuItem(string text, GossipActionHandler callback, params GossipMenuItem[] items)
			: this(text)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}