示例#1
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     Icon    = icon;
     SubMenu = new GossipMenu(items);
 }
 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);
 }
示例#3
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, RealmLangKey confirmLangKey, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     ConfirmText = new TranslatableItem(confirmLangKey);
     Action      = new NonNavigatingGossipAction(callback);
 }
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     this.Action  = (IGossipAction) new NonNavigatingGossipAction(callback);
     this.SubMenu = new GossipMenu((GossipMenuItemBase[])items);
 }
示例#5
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = new GossipMenu(items);
 }
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     this.Icon    = icon;
     this.SubMenu = new GossipMenu((GossipMenuItemBase[])items);
 }
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                TranslatableItem confirmText)
     : this(text)
 {
     this.ConfirmText = confirmText;
     this.Action      = (IGossipAction) new NonNavigatingGossipAction(callback);
 }
示例#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;
        }
示例#9
0
			protected override void Initialize()
			{
				Init("Trigger", "T");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellTriggerParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdSpellTriggerDescription);
			}
示例#10
0
			protected override void Initialize()
			{
				Init("Add", "A");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellAddParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdSpellAddDescription);
			}
示例#11
0
			protected override void Initialize()
			{
				Init("Clear", "Purge");
				Description = new TranslatableItem(RealmLangKey.CmdSpellPurgeDescription);
			}
示例#12
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, params LocalizedGossipMenuItem[] items)
			: this(text)
		{
			Action = new NonNavigatingGossipAction(callback);
			SubMenu = new GossipMenu(items);
		}
示例#13
0
		protected override void Initialize()
		{
			Init("GetSpell", "SpellGet");
			Description = new TranslatableItem(RealmLangKey.CmdSpellGetDescription);
			ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellGetParamInfo);
		}
示例#14
0
		public LocalizedGossipMenuItem(TranslatableItem text, params LocalizedGossipMenuItem[] items)
			: this(text)
		{
			SubMenu = new GossipMenu(items);
		}
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, GossipMenu subMenu)
     : this(text)
 {
     this.Action  = (IGossipAction) new NonNavigatingGossipAction(callback);
     this.SubMenu = subMenu;
 }
示例#16
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, TranslatableItem confirmText)
			: this(text)
		{
			ConfirmText = confirmText;
			Action = new NonNavigatingGossipAction(callback);
		}
示例#17
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, GossipMenu subMenu)
			: this(text)
		{
			Action = new NonNavigatingGossipAction(callback);
			SubMenu = subMenu;
		}
示例#18
0
 protected override void Initialize()
 {
     Init("Learn", "L");
     ParamInfo = new TranslatableItem(RealmLangKey.CmdSkillLearnParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillLearnDescription);
 }
示例#19
0
 protected override void Initialize()
 {
     Init("Learn", "L");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdSkillLearnParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillLearnDescription);
 }
示例#20
0
 protected override void Initialize()
 {
     Init("Tier", "SetTier", "ST");
     ParamInfo = new TranslatableItem(RealmLangKey.CmdSkillTierParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillTierDescription); ;
 }
示例#21
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, IGossipAction action)
			: this(text)
		{
			Icon = icon;
			Action = action;
		}
示例#22
0
		public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, params LocalizedGossipMenuItem[] items)
			: this(text)
		{
			Icon = icon;
			SubMenu = new GossipMenu(items);
		}
示例#23
0
		protected override void Initialize()
		{
			Init("SpellVisual", "PlaySpellVisual", "SpellAnim");
			ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellVisualParamInfo);
			Description = new TranslatableItem(RealmLangKey.CmdSpellVisualDescription);
		}
示例#24
0
		public LocalizedGossipMenuItem(TranslatableItem text, GossipMenu subMenu)
			: this(text, (IGossipAction)null, subMenu)
		{
		}
示例#25
0
 protected override void Initialize()
 {
     base.Init("Skill", "Skills", "Sk");
     Description = new TranslatableItem(RealmLangKey.CmdSkillDescription);
 }
示例#26
0
		public LocalizedGossipMenuItem(TranslatableItem text, IGossipAction action, GossipMenu subMenu)
			: this(text)
		{
			Action = action;
			SubMenu = subMenu;
		}
示例#27
0
 protected override void Initialize()
 {
     Init("Map");
     EnglishParamInfo = "";
     Description      = new TranslatableItem(RealmLangKey.CmdMapDescription);
 }
示例#28
0
			protected override void Initialize()
			{
				Init("Clear");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdMapClearParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdMapClearDescription);
			}
示例#29
0
 protected override void Initialize()
 {
     Init("SetLocale", "Locale");
     ParamInfo = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription);
 }
示例#30
0
			protected override void Initialize()
			{
				Init("Updates", "Upd");
				EnglishParamInfo = "0|1";
				Description = new TranslatableItem(RealmLangKey.CmdMapUpdateDescription);
			}
示例#31
0
		protected override void Initialize()
		{
			Init("Map");
			EnglishParamInfo = "";
			Description = new TranslatableItem(RealmLangKey.CmdMapDescription);
		}
示例#32
0
			protected override void Initialize()
			{
				Init("List", "L");
				Description = new TranslatableItem(RealmLangKey.CmdMapListDescription);
			}
 public LocalizedGossipMenuItem(TranslatableItem text, GossipMenu subMenu)
     : this(text, (IGossipAction)null, subMenu)
 {
 }
示例#34
0
			protected override void Initialize()
			{
				Init("Spawn", "S");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdMapSpawnParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdMapSpawnDescription);
			}
 public LocalizedGossipMenuItem(TranslatableItem text, IGossipAction action, GossipMenu subMenu)
     : this(text)
 {
     this.Action  = action;
     this.SubMenu = subMenu;
 }
示例#36
0
 public static string Translate(this CmdTrigger <RealmServerCmdArgs> trigger, TranslatableItem item)
 {
     return(RealmLocalizer.Instance.Translate(trigger.GetLocale(), item));
 }
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, IGossipAction action)
     : this(text)
 {
     this.Icon   = icon;
     this.Action = action;
 }
示例#38
0
 protected override void Initialize()
 {
     Init("Reload", "Resync");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription);
 }
示例#39
0
		protected override void Initialize()
		{
			Init("Spell", "Spells", "Sp");
			Description = new TranslatableItem(RealmLangKey.CmdSpellDescription);
		}
示例#40
0
 protected override void Initialize()
 {
     Init("SetLocale", "Locale");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription);
 }
示例#41
0
			protected override void Initialize()
			{
				Init("Remove", "R");
				ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellRemoveParamInfo);
				Description = new TranslatableItem(RealmLangKey.CmdSpellRemoveDescription);
			}
示例#42
0
 protected override void Initialize()
 {
     Init("Localizer", "Lang");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerDescription);
 }
示例#43
0
		protected override void Initialize()
		{
			Init("ClearCooldowns");
			Description = new TranslatableItem(RealmLangKey.CmdSpellClearDescription);
		}
示例#44
0
		public static string Translate(this CmdTrigger<RealmServerCmdArgs> trigger, TranslatableItem item)
		{
			return RealmLocalizer.Instance.Translate(trigger.GetLocale(), item);
		}
示例#45
0
		protected override void Initialize()
		{
			Init("Pushback");
			ParamInfo = new TranslatableItem(RealmLangKey.CmdPushbackParams);
			Description = new TranslatableItem(RealmLangKey.CmdPushbackDescription);
		}
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, GossipActionHandler callback)
     : this(text)
 {
     this.Icon   = icon;
     this.Action = (IGossipAction) new NonNavigatingGossipAction(callback);
 }
示例#47
0
 protected override void Initialize()
 {
     Init("Tier", "SetTier", "ST");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdSkillTierParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillTierDescription);;
 }
 public LocalizedGossipMenuItem(IGossipAction action, RealmLangKey confirmLangKey, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(action, msgKey, msgArgs)
 {
     this.ConfirmText = new TranslatableItem(confirmLangKey, new object[0]);
 }
示例#49
0
 protected override void Initialize()
 {
     Init("Set", "S");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdSkillSetParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdSkillSetDescription);
 }
示例#50
0
 protected override void Initialize()
 {
     Init("List", "L");
     Description = new TranslatableItem(RealmLangKey.CmdMapListDescription);
 }
示例#51
0
 protected override void Initialize()
 {
     Init("Clear");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdMapClearParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdMapClearDescription);
 }
示例#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);
		}
示例#53
0
 protected override void Initialize()
 {
     Init("Updates", "Upd");
     EnglishParamInfo = "0|1";
     Description      = new TranslatableItem(RealmLangKey.CmdMapUpdateDescription);
 }
示例#54
0
		public LocalizedGossipMenuItem(TranslatableItem text, IGossipAction action)
			: this(text)
		{
			Action = action;
		}
示例#55
0
 protected override void Initialize()
 {
     Init("Spawn", "S");
     ParamInfo   = new TranslatableItem(RealmLangKey.CmdMapSpawnParamInfo);
     Description = new TranslatableItem(RealmLangKey.CmdMapSpawnDescription);
 }
 public LocalizedGossipMenuItem(GossipMenuIcon type, TranslatableItem text)
 {
     this.Icon = type;
     this.Text = text;
 }
示例#57
0
 protected override void Initialize()
 {
     Init("Reload", "Resync");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription);
 }
 public LocalizedGossipMenuItem(TranslatableItem text)
     : this(GossipMenuIcon.Talk, text)
 {
 }
示例#59
0
 protected override void Initialize()
 {
     Init("Localizer", "Lang");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerDescription);
 }
 public LocalizedGossipMenuItem(RealmLangKey msgKey)
 {
     this.Text = new TranslatableItem(msgKey, new object[0]);
 }