Exemplo n.º 1
0
		public QuitGossipMenuItem(string text)
			: base(text)
		{
			Action = new DefaultGossipAction((convo) => {
				convo.Character.GossipConversation.StayOpen = false;
			});
		}
Exemplo n.º 2
0
		public QuitGossipMenuItem(string text, GossipActionHandler callback, string confirmText)
			: base(text)
		{
			ConfirmText = confirmText;
			Action = new DefaultGossipAction((convo) => {
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
Exemplo n.º 3
0
		public LocalizedGossipMenuItem(string defaultLangText, GossipActionHandler callback, string confirmDefaultText)
			: this(defaultLangText)
		{
			DefaultConfirmText = confirmDefaultText;
			Action = new DefaultGossipAction(callback);
		}
Exemplo n.º 4
0
		public GossipMenuItem(GossipMenuIcon icon, string text, GossipActionHandler callback)
			: this(text)
		{
			Icon = icon;
			Action = new DefaultGossipAction(callback);
		}
Exemplo n.º 5
0
		public LocalizedGossipMenuItem(string[] texts, GossipActionHandler callback, string[] confirmTexts)
			: this(texts)
		{
			ConfirmTexts = confirmTexts;
			Action = new DefaultGossipAction(callback);
		}
Exemplo n.º 6
0
		public LocalizedGossipMenuItem(string[] texts, GossipActionHandler callback, GossipMenu subMenu)
			: this(texts)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = subMenu;
		}
Exemplo n.º 7
0
		public LocalizedGossipMenuItem(LangKey langKey, GossipActionHandler callback, GossipMenu subMenu)
			: this(langKey)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = subMenu;
		}
Exemplo n.º 8
0
		public QuitGossipMenuItem(GossipMenuIcon icon, string text, GossipActionHandler callback)
			: base(icon, text)
		{
			Action = new DefaultGossipAction((convo) => {
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
Exemplo n.º 9
0
		public LocalizedGossipMenuItem(LangKey langKey, GossipActionHandler callback, LangKey confirmLangKey)
			: this(langKey)
		{
			ConfirmTexts = RealmLocalizer.Instance.GetTranslations(confirmLangKey);
			Action = new DefaultGossipAction(callback);
		}
Exemplo n.º 10
0
		public LocalizedGossipMenuItem(LangKey langKey, GossipActionHandler callback, params LocalizedGossipMenuItem[] items)
			: this(langKey)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}
Exemplo n.º 11
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));
		}
Exemplo n.º 12
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, string defaultLangText, GossipActionHandler callback)
			: this(defaultLangText)
		{
			Icon = icon;
			Action = new DefaultGossipAction(callback);
		}
Exemplo n.º 13
0
		public LocalizedGossipMenuItem(string defaultLangText, GossipActionHandler callback, GossipMenu subMenu)
			: this(defaultLangText)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = subMenu;
		}
Exemplo n.º 14
0
		public QuitGossipMenuItem(string text, GossipActionHandler callback, GossipMenu subMenu)
			: base(text, subMenu)
		{
			Action = new DefaultGossipAction((convo) => {
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
Exemplo n.º 15
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, LangKey langKey, GossipActionHandler callback)
			: this(langKey)
		{
			Icon = icon;
			Action = new DefaultGossipAction(callback);
		}
Exemplo n.º 16
0
		public QuitGossipMenuItem(GossipMenuIcon icon, string text, params GossipMenuItem[] items)
			: base(icon, text, items)
		{
			Action = new DefaultGossipAction((convo) => {
				convo.Character.GossipConversation.StayOpen = false;
			});
		}
Exemplo n.º 17
0
		public GossipMenuItem(string text, GossipActionHandler callback, string confirmText)
			: this(text)
		{
			ConfirmText = confirmText;
			Action = new DefaultGossipAction(callback);
		}
Exemplo n.º 18
0
		public void SetAction(DefaultGossipAction action)
		{
			Action = action;
		}
Exemplo n.º 19
0
		public GossipMenuItem(string text, GossipActionHandler callback, params GossipMenuItem[] items)
			: this(text)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}
Exemplo n.º 20
0
		public LocalizedGossipMenuItem(string[] texts, GossipActionHandler callback, params LocalizedGossipMenuItem[] items)
			: this(texts)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}
Exemplo n.º 21
0
		public GossipMenuItem(string text, GossipActionHandler callback, GossipMenu subMenu)
			: this(text)
		{
			Action = new DefaultGossipAction(callback);
			SubMenu = subMenu;
		}
Exemplo n.º 22
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, string[] texts, GossipActionHandler callback)
			: this(texts)
		{
			Icon = icon;
			Action = new DefaultGossipAction(callback);
		}
Exemplo n.º 23
0
		public LocalizedGossipMenuItem(RealmLangKey langKey, GossipActionHandler callback)
			: this(langKey)
		{
			Action = new DefaultGossipAction(callback);
		}