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); }
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); }
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); }
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; }
protected override void Initialize() { Init("Trigger", "T"); ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellTriggerParamInfo); Description = new TranslatableItem(RealmLangKey.CmdSpellTriggerDescription); }
protected override void Initialize() { Init("Add", "A"); ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellAddParamInfo); Description = new TranslatableItem(RealmLangKey.CmdSpellAddDescription); }
protected override void Initialize() { Init("Clear", "Purge"); Description = new TranslatableItem(RealmLangKey.CmdSpellPurgeDescription); }
protected override void Initialize() { Init("GetSpell", "SpellGet"); Description = new TranslatableItem(RealmLangKey.CmdSpellGetDescription); ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellGetParamInfo); }
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; }
public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, TranslatableItem confirmText) : this(text) { ConfirmText = confirmText; Action = new NonNavigatingGossipAction(callback); }
public LocalizedGossipMenuItem(TranslatableItem text, GossipActionHandler callback, GossipMenu subMenu) : this(text) { Action = new NonNavigatingGossipAction(callback); SubMenu = subMenu; }
protected override void Initialize() { Init("Learn", "L"); ParamInfo = new TranslatableItem(RealmLangKey.CmdSkillLearnParamInfo); Description = new TranslatableItem(RealmLangKey.CmdSkillLearnDescription); }
protected override void Initialize() { Init("Tier", "SetTier", "ST"); ParamInfo = new TranslatableItem(RealmLangKey.CmdSkillTierParamInfo); Description = new TranslatableItem(RealmLangKey.CmdSkillTierDescription); ; }
public LocalizedGossipMenuItem(GossipMenuIcon icon, TranslatableItem text, IGossipAction action) : this(text) { Icon = icon; Action = action; }
protected override void Initialize() { Init("SpellVisual", "PlaySpellVisual", "SpellAnim"); ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellVisualParamInfo); Description = new TranslatableItem(RealmLangKey.CmdSpellVisualDescription); }
public LocalizedGossipMenuItem(TranslatableItem text, GossipMenu subMenu) : this(text, (IGossipAction)null, subMenu) { }
protected override void Initialize() { base.Init("Skill", "Skills", "Sk"); Description = new TranslatableItem(RealmLangKey.CmdSkillDescription); }
public LocalizedGossipMenuItem(TranslatableItem text, IGossipAction action, GossipMenu subMenu) : this(text) { Action = action; SubMenu = subMenu; }
protected override void Initialize() { Init("Map"); EnglishParamInfo = ""; Description = new TranslatableItem(RealmLangKey.CmdMapDescription); }
protected override void Initialize() { Init("Clear"); ParamInfo = new TranslatableItem(RealmLangKey.CmdMapClearParamInfo); Description = new TranslatableItem(RealmLangKey.CmdMapClearDescription); }
protected override void Initialize() { Init("SetLocale", "Locale"); ParamInfo = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleParamInfo); Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription); }
protected override void Initialize() { Init("Updates", "Upd"); EnglishParamInfo = "0|1"; Description = new TranslatableItem(RealmLangKey.CmdMapUpdateDescription); }
protected override void Initialize() { Init("List", "L"); Description = new TranslatableItem(RealmLangKey.CmdMapListDescription); }
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; }
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; }
protected override void Initialize() { Init("Reload", "Resync"); Description = new TranslatableItem(RealmLangKey.CmdLocalizerSetLocaleDescription); }
protected override void Initialize() { Init("Spell", "Spells", "Sp"); Description = new TranslatableItem(RealmLangKey.CmdSpellDescription); }
protected override void Initialize() { Init("Remove", "R"); ParamInfo = new TranslatableItem(RealmLangKey.CmdSpellRemoveParamInfo); Description = new TranslatableItem(RealmLangKey.CmdSpellRemoveDescription); }
protected override void Initialize() { Init("Localizer", "Lang"); Description = new TranslatableItem(RealmLangKey.CmdLocalizerDescription); }
protected override void Initialize() { Init("ClearCooldowns"); Description = new TranslatableItem(RealmLangKey.CmdSpellClearDescription); }
public static string Translate(this CmdTrigger<RealmServerCmdArgs> trigger, TranslatableItem item) { return RealmLocalizer.Instance.Translate(trigger.GetLocale(), item); }
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); }
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]); }
protected override void Initialize() { Init("Set", "S"); ParamInfo = new TranslatableItem(RealmLangKey.CmdSkillSetParamInfo); Description = new TranslatableItem(RealmLangKey.CmdSkillSetDescription); }
/// <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); }
public LocalizedGossipMenuItem(TranslatableItem text, IGossipAction action) : this(text) { Action = action; }
public LocalizedGossipMenuItem(GossipMenuIcon type, TranslatableItem text) { this.Icon = type; this.Text = text; }
public LocalizedGossipMenuItem(TranslatableItem text) : this(GossipMenuIcon.Talk, text) { }
public LocalizedGossipMenuItem(RealmLangKey msgKey) { this.Text = new TranslatableItem(msgKey, new object[0]); }