Exemplo n.º 1
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     Icon    = icon;
     SubMenu = new GossipMenu(items);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, RealmLangKey confirmLangKey, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     ConfirmText = new TranslatableItem(confirmLangKey);
     Action      = new NonNavigatingGossipAction(callback);
 }
Exemplo n.º 4
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     this.Action  = (IGossipAction) new NonNavigatingGossipAction(callback);
     this.SubMenu = new GossipMenu((GossipMenuItemBase[])items);
 }
Exemplo n.º 5
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = new GossipMenu(items);
 }
Exemplo n.º 6
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     this.Icon    = icon;
     this.SubMenu = new GossipMenu((GossipMenuItemBase[])items);
 }
Exemplo n.º 7
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                TranslatableItem confirmText)
     : this(text)
 {
     this.ConfirmText = confirmText;
     this.Action      = (IGossipAction) new NonNavigatingGossipAction(callback);
 }
Exemplo n.º 8
0
        private void elements_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e)
        {
            TranslatableItem item = _listViewItems[e.ItemIndex];
            ListViewItem     lvi  = new ListViewItem(item.AutoId.ToString());

            lvi.SubItems.Add(item.Alias);
            lvi.SubItems.Add(item.Original);
            lvi.SubItems.Add(item.Translate);
            e.Item = lvi;
        }
Exemplo n.º 9
0
			protected override void Initialize()
			{
				Init("Trigger", "T");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellTriggerParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdSpellTriggerDescription);
			}
Exemplo n.º 10
0
			protected override void Initialize()
			{
				Init("Add", "A");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellAddParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdSpellAddDescription);
			}
Exemplo n.º 11
0
			protected override void Initialize()
			{
				Init("Clear", "Purge");
				Description = new TranslatableItem(RealmLangKey.CmdSpellPurgeDescription);
			}
Exemplo n.º 12
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, params LocalizedGossipMenuItem[] items)
			: this(text)
		{
			Action = new NonNavigatingGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}
Exemplo n.º 13
0
		protected override void Initialize()
		{
			Init("GetSpell", "SpellGet");
			Description = new TranslatableItem(RealmLangKey.CmdSpellGetDescription);
			ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellGetParamInfo);
		}
Exemplo n.º 14
0
		public LocalizedGossipMenuItem(TranslatableItem text, params LocalizedGossipMenuItem[] items)
			: this(text)
		{
			SubMenu = new GossipMenu(items);
		}
Exemplo n.º 15
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, GossipMenu subMenu)
     : this(text)
 {
     this.Action  = (IGossipAction) new NonNavigatingGossipAction(callback);
     this.SubMenu = subMenu;
 }
Exemplo n.º 16
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, TranslatableItem confirmText)
			: this(text)
		{
			ConfirmText = confirmText;
			Action = new NonNavigatingGossipAction(callback);
		}
Exemplo n.º 17
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, GossipMenu subMenu)
			: this(text)
		{
			Action = new NonNavigatingGossipAction(callback);
			SubMenu = subMenu;
		}
Exemplo n.º 18
0
 protected override void Initialize()
 {
     Init("Learn", "L");
     ParamInfo = new TranslatableItem(RealmLangKey.CmdSkillLearnParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillLearnDescription);
 }
Exemplo n.º 19
0
 protected override void Initialize()
 {
     Init("Learn", "L");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdSkillLearnParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillLearnDescription);
 }
Exemplo n.º 20
0
 protected override void Initialize()
 {
     Init("Tier", "SetTier", "ST");
     ParamInfo = new TranslatableItem(RealmLangKey.CmdSkillTierParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillTierDescription); ;
 }
Exemplo n.º 21
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, IGossipAction action)
			: this(text)
		{
			Icon = icon;
			Action = action;
		}
Exemplo n.º 22
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, params LocalizedGossipMenuItem[] items)
			: this(text)
		{
			Icon = icon;
			SubMenu = new GossipMenu(items);
		}
Exemplo n.º 23
0
		protected override void Initialize()
		{
			Init("SpellVisual", "PlaySpellVisual", "SpellAnim");
			ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellVisualParamInfo);
			Description = new TranslatableItem(RealmLangKey.CmdSpellVisualDescription);
		}
Exemplo n.º 24
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipMenu subMenu)
			: this(text, (IGossipAction)null, subMenu)
		{
		}
Exemplo n.º 25
0
 protected override void Initialize()
 {
     base.Init("Skill", "Skills", "Sk");
     Description = new TranslatableItem(RealmLangKey.CmdSkillDescription);
 }
Exemplo n.º 26
0
		public LocalizedGossipMenuItem(TranslatableItem text, IGossipAction action, GossipMenu subMenu)
			: this(text)
		{
			Action = action;
			SubMenu = subMenu;
		}
Exemplo n.º 27
0
 protected override void Initialize()
 {
     Init("Map");
     EnglishParamInfo = "";
     Description      = new TranslatableItem(RealmLangKey.CmdMapDescription);
 }
Exemplo n.º 28
0
			protected override void Initialize()
			{
				Init("Clear");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdMapClearParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdMapClearDescription);
			}
Exemplo n.º 29
0
 protected override void Initialize()
 {
     Init("SetLocale", "Locale");
     ParamInfo = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription);
 }
Exemplo n.º 30
0
			protected override void Initialize()
			{
				Init("Updates", "Upd");
				EnglishParamInfo = "0|1";
				Description = new TranslatableItem(RealmLangKey.CmdMapUpdateDescription);
			}
Exemplo n.º 31
0
		protected override void Initialize()
		{
			Init("Map");
			EnglishParamInfo = "";
			Description = new TranslatableItem(RealmLangKey.CmdMapDescription);
		}
Exemplo n.º 32
0
			protected override void Initialize()
			{
				Init("List", "L");
				Description = new TranslatableItem(RealmLangKey.CmdMapListDescription);
			}
Exemplo n.º 33
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipMenu subMenu)
     : this(text, (IGossipAction)null, subMenu)
 {
 }
Exemplo n.º 34
0
			protected override void Initialize()
			{
				Init("Spawn", "S");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdMapSpawnParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdMapSpawnDescription);
			}
Exemplo n.º 35
0
 public LocalizedGossipMenuItem(TranslatableItem text, IGossipAction action, GossipMenu subMenu)
     : this(text)
 {
     this.Action  = action;
     this.SubMenu = subMenu;
 }
Exemplo n.º 36
0
 public static string Translate(this CmdTrigger <RealmServerCmdArgs> trigger, TranslatableItem item)
 {
     return(RealmLocalizer.Instance.Translate(trigger.GetLocale(), item));
 }
Exemplo n.º 37
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, IGossipAction action)
     : this(text)
 {
     this.Icon   = icon;
     this.Action = action;
 }
Exemplo n.º 38
0
 protected override void Initialize()
 {
     Init("Reload", "Resync");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription);
 }
Exemplo n.º 39
0
		protected override void Initialize()
		{
			Init("Spell", "Spells", "Sp");
			Description = new TranslatableItem(RealmLangKey.CmdSpellDescription);
		}
Exemplo n.º 40
0
 protected override void Initialize()
 {
     Init("SetLocale", "Locale");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription);
 }
Exemplo n.º 41
0
			protected override void Initialize()
			{
				Init("Remove", "R");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellRemoveParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdSpellRemoveDescription);
			}
Exemplo n.º 42
0
 protected override void Initialize()
 {
     Init("Localizer", "Lang");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerDescription);
 }
Exemplo n.º 43
0
		protected override void Initialize()
		{
			Init("ClearCooldowns");
			Description = new TranslatableItem(RealmLangKey.CmdSpellClearDescription);
		}
Exemplo n.º 44
0
		public static string Translate(this CmdTrigger<RealmServerCmdArgs> trigger, TranslatableItem item)
		{
			return RealmLocalizer.Instance.Translate(trigger.GetLocale(), item);
		}
Exemplo n.º 45
0
		protected override void Initialize()
		{
			Init("Pushback");
			ParamInfo = new TranslatableItem(RealmLangKey.CmdPushbackParams);
			Description = new TranslatableItem(RealmLangKey.CmdPushbackDescription);
		}
Exemplo n.º 46
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, GossipActionHandler callback)
     : this(text)
 {
     this.Icon   = icon;
     this.Action = (IGossipAction) new NonNavigatingGossipAction(callback);
 }
Exemplo n.º 47
0
 protected override void Initialize()
 {
     Init("Tier", "SetTier", "ST");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdSkillTierParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillTierDescription);;
 }
Exemplo n.º 48
0
 public LocalizedGossipMenuItem(IGossipAction action, RealmLangKey confirmLangKey, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(action, msgKey, msgArgs)
 {
     this.ConfirmText = new TranslatableItem(confirmLangKey, new object[0]);
 }
Exemplo n.º 49
0
 protected override void Initialize()
 {
     Init("Set", "S");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdSkillSetParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillSetDescription);
 }
Exemplo n.º 50
0
 protected override void Initialize()
 {
     Init("List", "L");
     Description = new TranslatableItem(RealmLangKey.CmdMapListDescription);
 }
Exemplo n.º 51
0
 protected override void Initialize()
 {
     Init("Clear");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdMapClearParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdMapClearDescription);
 }
Exemplo n.º 52
0
		/// <summary>
		/// Sends a system message.
		/// TODO: Improve performance
		/// </summary>
		/// <param name="targets">an enumerable collection of players to send the message to</param>
		/// <param name="message">the message to send</param>
		public static void SendSystemMessage(this IEnumerable<Character> targets, TranslatableItem item)
		{
			SendSystemMessage(targets, item.Key, item.Args);
		}
Exemplo n.º 53
0
 protected override void Initialize()
 {
     Init("Updates", "Upd");
     EnglishParamInfo = "0|1";
     Description      = new TranslatableItem(RealmLangKey.CmdMapUpdateDescription);
 }
Exemplo n.º 54
0
		public LocalizedGossipMenuItem(TranslatableItem text, IGossipAction action)
			: this(text)
		{
			Action = action;
		}
Exemplo n.º 55
0
 protected override void Initialize()
 {
     Init("Spawn", "S");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdMapSpawnParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdMapSpawnDescription);
 }
Exemplo n.º 56
0
 public LocalizedGossipMenuItem(GossipMenuIcon type, TranslatableItem text)
 {
     this.Icon = type;
     this.Text = text;
 }
Exemplo n.º 57
0
 protected override void Initialize()
 {
     Init("Reload", "Resync");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription);
 }
Exemplo n.º 58
0
 public LocalizedGossipMenuItem(TranslatableItem text)
     : this(GossipMenuIcon.Talk, text)
 {
 }
Exemplo n.º 59
0
 protected override void Initialize()
 {
     Init("Localizer", "Lang");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerDescription);
 }
Exemplo n.º 60
0
 public LocalizedGossipMenuItem(RealmLangKey msgKey)
 {
     this.Text = new TranslatableItem(msgKey, new object[0]);
 }