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

Public Member Functions

 MRGWrapper ()
 
MRGNode NewMRG ()
 
BRRESNode NewBRES ()
 
MSBinNode NewMSBin ()
 
void ImportARC ()
 
void ImportBRES ()
 
void ImportMSBin ()
 
void ExportAll ()
 
void ReplaceAll ()
 
- 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 NewBRESAction (object sender, EventArgs e)
 
static void NewARCAction (object sender, EventArgs e)
 
static void NewMSBinAction (object sender, EventArgs e)
 
static void ImportBRESAction (object sender, EventArgs e)
 
static void ImportARCAction (object sender, EventArgs e)
 
static void ImportMSBinAction (object sender, EventArgs e)
 
static void ExportAllAction (object sender, EventArgs e)
 
static void ReplaceAllAction (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 > ()
 

Properties

override string ExportFilter [get]
 
override string ImportFilter [get]
 
- 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]
 

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()
 

Constructor & Destructor Documentation

◆ MRGWrapper()

BrawlCrate.NodeWrappers.MRGWrapper.MRGWrapper ( )
inline
134 {
135 ContextMenuStrip = _menu;
136 }

Member Function Documentation

◆ ExportAll()

void BrawlCrate.NodeWrappers.MRGWrapper.ExportAll ( )
inline
196 {
197 string path = Program.ChooseFolder();
198 if (path == null)
199 {
200 return;
201 }
202
203 ((MRGNode) _resource).ExtractToFolder(path);
204 }
ResourceNode _resource
Definition: BaseWrapper.cs:76
Definition: MRGNode.cs:9

◆ ExportAllAction()

static void BrawlCrate.NodeWrappers.MRGWrapper.ExportAllAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
97 {
98 GetInstance<ARCWrapper>().ExportAll();
99 }

◆ ImportARC()

void BrawlCrate.NodeWrappers.MRGWrapper.ImportARC ( )
inline
172 {
173 if (Program.OpenFile(FileFilters.MRGImport, out string path))
174 {
175 NewMRG().Replace(path);
176 }
177 }
MRGNode NewMRG()
Definition: MRGWrapper.cs:138
Definition: FileFilters.cs:8
static string MRGImport
Definition: FileFilters.cs:19
virtual void Replace(string fileName)
Definition: ResourceNode.cs:829

◆ ImportARCAction()

static void BrawlCrate.NodeWrappers.MRGWrapper.ImportARCAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
87 {
88 GetInstance<ARCWrapper>().ImportARC();
89 }

◆ ImportBRES()

void BrawlCrate.NodeWrappers.MRGWrapper.ImportBRES ( )
inline
180 {
181 if (Program.OpenFile(FileFilters.BRES, out string path))
182 {
183 NewBRES().Replace(path);
184 }
185 }
BRRESNode NewBRES()
Definition: MRGWrapper.cs:149
static string BRES
Definition: FileFilters.cs:28

◆ ImportBRESAction()

static void BrawlCrate.NodeWrappers.MRGWrapper.ImportBRESAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
82 {
83 GetInstance<ARCWrapper>().ImportBRES();
84 }

◆ ImportMSBin()

void BrawlCrate.NodeWrappers.MRGWrapper.ImportMSBin ( )
inline
188 {
189 if (Program.OpenFile(FileFilters.MSBin, out string path))
190 {
191 NewMSBin().Replace(path);
192 }
193 }
MSBinNode NewMSBin()
Definition: MRGWrapper.cs:160
static string MSBin
Definition: FileFilters.cs:68
override void Replace(string fileName)
Definition: MSBinNode.cs:120

◆ ImportMSBinAction()

static void BrawlCrate.NodeWrappers.MRGWrapper.ImportMSBinAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
92 {
93 GetInstance<ARCWrapper>().ImportMSBin();
94 }

◆ NewARCAction()

static void BrawlCrate.NodeWrappers.MRGWrapper.NewARCAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
72 {
73 GetInstance<ARCWrapper>().NewARC();
74 }

◆ NewBRES()

BRRESNode BrawlCrate.NodeWrappers.MRGWrapper.NewBRES ( )
inline
150 {
151 BRRESNode node = new BRRESNode {FileType = ARCFileType.MiscData};
152 _resource.AddChild(node);
153
154 BaseWrapper w = FindResource(node, false);
155 w.EnsureVisible();
156 w.TreeView.SelectedNode = w;
157 return node;
158 }
BaseWrapper()
Definition: BaseWrapper.cs:79
Definition: BRRESNode.cs:19
virtual void AddChild(ResourceNode child)
Definition: ResourceNode.cs:757
ARCFileType
Definition: ARC.cs:144

◆ NewBRESAction()

static void BrawlCrate.NodeWrappers.MRGWrapper.NewBRESAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
67 {
68 GetInstance<ARCWrapper>().NewBRES();
69 }

◆ NewMRG()

MRGNode BrawlCrate.NodeWrappers.MRGWrapper.NewMRG ( )
inline
139 {
140 MRGNode node = new MRGNode {Name = _resource.FindName("NewMRG")};
141 _resource.AddChild(node);
142
143 BaseWrapper w = FindResource(node, false);
144 w.EnsureVisible();
145 w.TreeView.SelectedNode = w;
146 return node;
147 }
unsafe string FindName(string name)
Definition: ResourceNode.cs:1578

◆ NewMSBin()

MSBinNode BrawlCrate.NodeWrappers.MRGWrapper.NewMSBin ( )
inline
161 {
162 MSBinNode node = new MSBinNode {FileType = ARCFileType.MiscData};
163 _resource.AddChild(node);
164
165 BaseWrapper w = FindResource(node, false);
166 w.EnsureVisible();
167 w.TreeView.SelectedNode = w;
168 return node;
169 }
Definition: MSBinNode.cs:9

◆ NewMSBinAction()

static void BrawlCrate.NodeWrappers.MRGWrapper.NewMSBinAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
77 {
78 GetInstance<ARCWrapper>().NewMSBin();
79 }

◆ ReplaceAll()

void BrawlCrate.NodeWrappers.MRGWrapper.ReplaceAll ( )
inline
207 {
208 string path = Program.ChooseFolder();
209 if (path == null)
210 {
211 return;
212 }
213
214 ((MRGNode) _resource).ReplaceFromFolder(path);
215 }

◆ ReplaceAllAction()

static void BrawlCrate.NodeWrappers.MRGWrapper.ReplaceAllAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
102 {
103 GetInstance<ARCWrapper>().ReplaceAll();
104 }

Property Documentation

◆ ExportFilter

override string BrawlCrate.NodeWrappers.MRGWrapper.ExportFilter
get

◆ ImportFilter

override string BrawlCrate.NodeWrappers.MRGWrapper.ImportFilter
get

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