public InteractionAction() : base() { Properties["Entry"] = new MetaProp("Entry", typeof(uint), new EditorAttribute(typeof(PropertyBag.EntryEditor), typeof(UITypeEditor))); Properties["InteractDelay"] = new MetaProp("InteractDelay", typeof(uint)); Properties["InteractType"] = new MetaProp("InteractType", typeof(InteractActionType), new DisplayNameAttribute("Interact Type")); Properties["GameObjectType"] = new MetaProp("GameObjectType", typeof(WoWGameObjectType), new DisplayNameAttribute("GameObject Type")); Properties["SpellFocus"] = new MetaProp("SpellFocus", typeof(WoWSpellFocus), new DisplayNameAttribute("SpellFocus")); InteractDelay=Entry = 0u; InteractType = InteractActionType.GameObject; GameObjectType = WoWGameObjectType.Mailbox; SpellFocus = WoWSpellFocus.Anvil; Properties["SpellFocus"].Show = false; Properties["InteractType"].PropertyChanged += new EventHandler(InteractionAction_PropertyChanged); Properties["GameObjectType"].PropertyChanged += InteractionAction_PropertyChanged; }
public InteractionAction() : base() { Properties["Entry"] = new MetaProp("Entry", typeof(uint), new EditorAttribute(typeof(PropertyBag.EntryEditor), typeof(UITypeEditor))); Properties["InteractDelay"] = new MetaProp("InteractDelay", typeof(uint)); Properties["InteractType"] = new MetaProp("InteractType", typeof(InteractActionType), new DisplayNameAttribute("Interact Type")); Properties["GameObjectType"] = new MetaProp("GameObjectType", typeof(WoWGameObjectType), new DisplayNameAttribute("GameObject Type")); Properties["SpellFocus"] = new MetaProp("SpellFocus", typeof(WoWSpellFocus), new DisplayNameAttribute("SpellFocus")); InteractDelay = Entry = 0u; InteractType = InteractActionType.GameObject; GameObjectType = WoWGameObjectType.Mailbox; SpellFocus = WoWSpellFocus.Anvil; Properties["SpellFocus"].Show = false; Properties["InteractType"].PropertyChanged += new EventHandler(InteractionAction_PropertyChanged); Properties["GameObjectType"].PropertyChanged += InteractionAction_PropertyChanged; }