예제 #1
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     Icon    = icon;
     SubMenu = new GossipMenu(items);
 }
예제 #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);
 }
예제 #3
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, RealmLangKey confirmLangKey, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     ConfirmText = new TranslatableItem(confirmLangKey);
     Action      = new NonNavigatingGossipAction(callback);
 }
예제 #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);
 }
예제 #5
0
 public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     Action  = new NonNavigatingGossipAction(callback);
     SubMenu = new GossipMenu(items);
 }
예제 #6
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text,
                                params LocalizedGossipMenuItem[] items)
     : this(text)
 {
     this.Icon    = icon;
     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
        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);
		}
예제 #15
0
 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);
			}
예제 #33
0
 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);
			}
예제 #35
0
 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));
 }
예제 #37
0
 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);
		}
예제 #46
0
 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);;
 }
예제 #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]);
 }
예제 #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);
 }
예제 #56
0
 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);
 }
예제 #58
0
 public LocalizedGossipMenuItem(TranslatableItem text)
     : this(GossipMenuIcon.Talk, text)
 {
 }
예제 #59
0
 protected override void Initialize()
 {
     Init("Localizer", "Lang");
     Description = new TranslatableItem(RealmLangKey.CmdLocalizerDescription);
 }
예제 #60
0
 public LocalizedGossipMenuItem(RealmLangKey msgKey)
 {
     this.Text = new TranslatableItem(msgKey, new object[0]);
 }