BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Protected Member Functions | List of all members
BrawlCrate.NodeWrappers.MDefEventWrapper Class Reference
Inheritance diagram for BrawlCrate.NodeWrappers.MDefEventWrapper:
BrawlCrate.NodeWrappers.GenericWrapper BrawlCrate.NodeWrappers.BaseWrapper BrawlCrate.NodeWrappers.MultiSelectableWrapper

Public Member Functions

 MDefEventWrapper ()
 
void EditDictionaryName ()
 
void EditDictionaryDescription ()
 
void EditDictionarySyntax ()
 
- Public Member Functions inherited from BrawlCrate.NodeWrappers.GenericWrapper
 GenericWrapper (IWin32Window owner)
 
 GenericWrapper ()
 
virtual void Sort ()
 
void MoveUp ()
 
virtual void MoveUp (bool select)
 
void MoveDown ()
 
virtual void MoveDown (bool select)
 
void DeleteSelected ()
 
void ExportSelected ()
 
virtual string Export ()
 
virtual void OnExport (string outPath)
 
virtual void Replace ()
 
virtual void OnReplace (string inStream)
 
void Restore ()
 
virtual void Delete ()
 
void Rename ()
 
virtual ResourceNode Duplicate ()
 
virtual ResourceNode Duplicate (bool changeName)
 
- Public Member Functions inherited from BrawlCrate.NodeWrappers.BaseWrapper
void Link (ResourceNode res)
 
void Unlink ()
 

Static Protected Member Functions

static void EditDictionaryName (object sender, EventArgs e)
 
static void EditDictionaryDescription (object sender, EventArgs e)
 
static void EditDictionarySyntax (object sender, EventArgs e)
 
- Static Protected Member Functions inherited from BrawlCrate.NodeWrappers.GenericWrapper
static void MoveUpAction (object sender, EventArgs e)
 
static void MoveDownAction (object sender, EventArgs e)
 
static void ExportAction (object sender, EventArgs e)
 
static void ExportSelectedAction (object sender, EventArgs e)
 
static void DeleteSelectedAction (object sender, EventArgs e)
 
static void DuplicateAction (object sender, EventArgs e)
 
static void ReplaceAction (object sender, EventArgs e)
 
static void RestoreAction (object sender, EventArgs e)
 
static void DeleteAction (object sender, EventArgs e)
 
static void RenameAction (object sender, EventArgs e)
 
static void SortAction (object sender, EventArgs e)
 
- Static Protected Member Functions inherited from BrawlCrate.NodeWrappers.BaseWrapper
static T GetInstance< T > ()
 
static IEnumerable< T > GetInstances< T > ()
 

Additional Inherited Members

- Static Public Member Functions inherited from BrawlCrate.NodeWrappers.BaseWrapper
static BaseWrapper[] GetAllNodes (BaseWrapper root)
 
static BaseWrapper Wrap (ResourceNode node)
 
static BaseWrapper Wrap (IWin32Window owner, ResourceNode node)
 
- Static Public Attributes inherited from BrawlCrate.NodeWrappers.BaseWrapper
static IWin32Window _owner
 
- Protected Member Functions inherited from BrawlCrate.NodeWrappers.BaseWrapper
 BaseWrapper ()
 
- Protected Attributes inherited from BrawlCrate.NodeWrappers.BaseWrapper
bool _discovered
 
ResourceNode _resource
 
- Static Protected Attributes inherited from BrawlCrate.NodeWrappers.BaseWrapper
static readonly ContextMenuStrip _emptyMenu = new ContextMenuStrip()
 
- Properties inherited from BrawlCrate.NodeWrappers.GenericWrapper
virtual ContextMenuStrip MultiSelectMenuStrip [get]
 
virtual string DefaultName [get]
 
virtual string ExportFilter [get]
 
virtual string ImportFilter [get]
 
virtual string ReplaceFilter [get]
 
- Properties inherited from BrawlCrate.NodeWrappers.BaseWrapper
ResourceNode Resource [get]
 
virtual ? Color DefaultBackColor [get]
 
virtual ? Color DefaultForeColor [get]
 
- Properties inherited from BrawlCrate.NodeWrappers.MultiSelectableWrapper
ContextMenuStrip MultiSelectMenuStrip [get]
 

Constructor & Destructor Documentation

◆ MDefEventWrapper()

BrawlCrate.NodeWrappers.MDefEventWrapper.MDefEventWrapper ( )
inline
723 {
724 ContextMenuStrip = _menu;
725 }

Member Function Documentation

◆ EditDictionaryDescription() [1/2]

void BrawlCrate.NodeWrappers.MDefEventWrapper.EditDictionaryDescription ( )
inline
776 {
777 DialogResult res;
779 long ev = e._event;
781 if (MoveDefNode.EventDictionary.ContainsKey(ev))
782 {
783 temp.Name = MoveDefNode.EventDictionary[ev]._description;
784 }
785 else
786 {
787 temp.Name = "";
788 }
789
790 using (RenameDialog dlg = new RenameDialog())
791 {
792 res = dlg.ShowDialog(MainForm.Instance, temp);
793 }
794
795 if (res == DialogResult.OK)
796 {
797 if (MoveDefNode.EventDictionary.ContainsKey(ev))
798 {
799 MoveDefNode.EventDictionary[ev]._description = temp.Name;
800 }
801 else
802 {
805 {
806 Params = new string[_resource.Children.Count],
807 pDescs = new string[_resource.Children.Count], _description = temp.Name,
808 idNumber = ev
809 });
810 }
811
812 MoveDefNode._dictionaryChanged = true;
813 }
814
815 temp.Dispose();
816 temp = null;
817 }
ResourceNode _resource
Definition: BaseWrapper.cs:76
Definition: MainForm.cs:34
static MainForm Instance
Definition: MainForm.cs:36
Definition: ActionEventInfo.cs:7
DialogResult ShowDialog(IWin32Window owner, ResourceNode node)
Definition: RenameDialog.cs:16
Definition: MoveDefNode.cs:16
Definition: ActionEventNode.cs:11
uint _event
Definition: ActionEventNode.cs:52
Definition: MoveDefNode.cs:287
static SortedDictionary< long, ActionEventInfo > EventDictionary
Definition: MoveDefNode.cs:305
virtual void Dispose()
Definition: ResourceNode.cs:430
virtual string Name
Definition: ResourceNode.cs:223
List< ResourceNode > Children
Definition: ResourceNode.cs:262

◆ EditDictionaryDescription() [2/2]

static void BrawlCrate.NodeWrappers.MDefEventWrapper.EditDictionaryDescription ( object  sender,
EventArgs  e 
)
inlinestaticprotected
698 {
699 GetInstance<MDefEventWrapper>().EditDictionaryDescription();
700 }

◆ EditDictionaryName() [1/2]

void BrawlCrate.NodeWrappers.MDefEventWrapper.EditDictionaryName ( )
inline
728 {
729 DialogResult res;
731 uint ev = e._event;
733 if (MoveDefNode.EventDictionary.ContainsKey(ev))
734 {
735 temp.Name = MoveDefNode.EventDictionary[ev]._name;
736 }
737 else
738 {
739 temp.Name = "";
740 }
741
742 using (RenameDialog dlg = new RenameDialog())
743 {
744 res = dlg.ShowDialog(MainForm.Instance, temp);
745 }
746
747 if (res == DialogResult.OK)
748 {
749 if (MoveDefNode.EventDictionary.ContainsKey(ev))
750 {
751 MoveDefNode.EventDictionary[ev]._name = temp.Name;
752 }
753 else
754 {
757 {
758 Params = new string[_resource.Children.Count],
759 pDescs = new string[_resource.Children.Count], _name = temp.Name, idNumber = ev
760 });
761 }
762
763 MoveDefNode._dictionaryChanged = true;
764 foreach (MoveDefEventNode n in e.Root._events[ev])
765 {
766 n.Name = temp.Name;
767 n.HasChanged = false;
768 }
769 }
770
771 temp.Dispose();
772 temp = null;
773 }
MoveDefNode Root
Definition: MoveDefNode.cs:48
Dictionary< uint, List< MoveDefEventNode > > _events
Definition: MoveDefNode.cs:3433

◆ EditDictionaryName() [2/2]

static void BrawlCrate.NodeWrappers.MDefEventWrapper.EditDictionaryName ( object  sender,
EventArgs  e 
)
inlinestaticprotected
693 {
694 GetInstance<MDefEventWrapper>().EditDictionaryName();
695 }

◆ EditDictionarySyntax() [1/2]

void BrawlCrate.NodeWrappers.MDefEventWrapper.EditDictionarySyntax ( )
inline
820 {
821 DialogResult res;
823 long ev = e._event;
825 if (MoveDefNode.EventDictionary.ContainsKey(ev))
826 {
827 temp.Name = MoveDefNode.EventDictionary[ev]._syntax;
828 }
829 else
830 {
831 temp.Name = "";
832 }
833
834 using (RenameDialog dlg = new RenameDialog())
835 {
836 res = dlg.ShowDialog(MainForm.Instance, temp);
837 }
838
839 if (res == DialogResult.OK)
840 {
841 if (MoveDefNode.EventDictionary.ContainsKey(ev))
842 {
843 MoveDefNode.EventDictionary[ev]._syntax = temp.Name;
844 }
845 else
846 {
849 {
850 Params = new string[_resource.Children.Count],
851 pDescs = new string[_resource.Children.Count], _syntax = temp.Name,
852 idNumber = ev
853 });
854 }
855
856 MoveDefNode._dictionaryChanged = true;
857 }
858
859 temp.Dispose();
860 temp = null;
861 }

◆ EditDictionarySyntax() [2/2]

static void BrawlCrate.NodeWrappers.MDefEventWrapper.EditDictionarySyntax ( object  sender,
EventArgs  e 
)
inlinestaticprotected
703 {
704 GetInstance<MDefEventWrapper>().EditDictionarySyntax();
705 }

The documentation for this class was generated from the following file: