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

Public Member Functions

 CHR0Wrapper ()
 
void NewBone ()
 
void Merge ()
 
void Resize ()
 
void Append ()
 
void Loop (int timesToLoop)
 
void Reverse (bool appendReverse)
 
- 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 Public Member Functions

static void EditAll (IEnumerable< BaseWrapper > wrappers)
 
- 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 Protected Member Functions

static void NewBoneAction (object sender, EventArgs e)
 
static void MergeAction (object sender, EventArgs e)
 
static void AppendAction (object sender, EventArgs e)
 
static void ResizeAction (object sender, EventArgs e)
 
static void EditAllAction (object sender, EventArgs e)
 
static void LoopAction (object sender, EventArgs e)
 
static void ReverseAction (object sender, EventArgs e)
 
static void ReverseLoopAction (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]
 
override ContextMenuStrip MultiSelectMenuStrip [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 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

◆ CHR0Wrapper()

BrawlCrate.NodeWrappers.CHR0Wrapper.CHR0Wrapper ( )
inline
171 {
172 ContextMenuStrip = _menu;
173 }

Member Function Documentation

◆ Append()

void BrawlCrate.NodeWrappers.CHR0Wrapper.Append ( )
inline
218 {
219 ((CHR0Node) _resource).Append();
220 BaseWrapper res = FindResource(_resource, false);
221 res.EnsureVisible();
222 res.TreeView.SelectedNode = res;
223 }
ResourceNode _resource
Definition: BaseWrapper.cs:76
BaseWrapper()
Definition: BaseWrapper.cs:79
Definition: CHR0Node.cs:17

◆ AppendAction()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.AppendAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
94 {
95 GetInstance<CHR0Wrapper>().Append();
96 }

◆ EditAll()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.EditAll ( IEnumerable< BaseWrapper wrappers)
inlinestatic
234 {
235 EditAllDialog ctd = new EditAllDialog();
236 ctd.ShowDialog(_owner, wrappers.Select(n => n.Resource));
237 }
static IWin32Window _owner
Definition: BaseWrapper.cs:398
Definition: EditAllDialog.cs:11
void ShowDialog(IWin32Window owner, ResourceNode resource)
Definition: EditAllDialog.cs:109

◆ EditAllAction()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.EditAllAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
104 {
105 EditAll(GetInstances<CHR0Wrapper>());
106 }
static void EditAll(IEnumerable< BaseWrapper > wrappers)
Definition: CHR0Wrapper.cs:233

◆ Loop()

void BrawlCrate.NodeWrappers.CHR0Wrapper.Loop ( int  timesToLoop)
inline
226 {
227 ((CHR0Node) _resource).Append((CHR0Node) _resource, timesToLoop);
228 BaseWrapper res = FindResource(_resource, false);
229 res.EnsureVisible();
230 res.TreeView.SelectedNode = res;
231 }

◆ LoopAction()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.LoopAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
109 {
110 NumericInputForm entryCount = new NumericInputForm();
111 if (entryCount.ShowDialog("Animation Looper", "Number of runthroughs:") == DialogResult.OK)
112 {
113 GetInstance<CHR0Wrapper>().Loop(entryCount.NewValue - 1);
114 }
115 }
Definition: NumericInputForm.cs:7
new DialogResult ShowDialog()
Definition: NumericInputForm.cs:20
int NewValue
Definition: NumericInputForm.cs:16

◆ Merge()

void BrawlCrate.NodeWrappers.CHR0Wrapper.Merge ( )
inline
189 {
190 OpenFileDialog o = new OpenFileDialog
191 {
192 Filter = ImportFilter,
193 Title = "Please select an animation to merge with."
194 };
195 if (o.ShowDialog() == DialogResult.OK)
196 {
197 CHR0Node external;
198 if ((external = CHR0Node.FromFile(o.FileName)) != null)
199 {
200 ((CHR0Node) _resource).MergeWith(external);
201 }
202 }
203
204 BaseWrapper res = FindResource(_resource, false);
205 res.EnsureVisible();
206 res.TreeView.SelectedNode = res;
207 }
override string ImportFilter
Definition: CHR0Wrapper.cs:176
static CHR0Node FromFile(string path)
Definition: CHR0Node.cs:212
void MergeWith()
Definition: CHR0Node.cs:401

◆ MergeAction()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.MergeAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
89 {
90 GetInstance<CHR0Wrapper>().Merge();
91 }

◆ NewBone()

void BrawlCrate.NodeWrappers.CHR0Wrapper.NewBone ( )
inline
181 {
182 CHR0EntryNode node = ((CHR0Node) _resource).CreateEntry();
183 BaseWrapper res = FindResource(node, false);
184 res.EnsureVisible();
185 res.TreeView.SelectedNode = res;
186 }
Definition: CHR0Node.cs:909

◆ NewBoneAction()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.NewBoneAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
84 {
85 GetInstance<CHR0Wrapper>().NewBone();
86 }

◆ Resize()

void BrawlCrate.NodeWrappers.CHR0Wrapper.Resize ( )
inline
210 {
211 ((CHR0Node) _resource).Resize();
212 BaseWrapper res = FindResource(_resource, false);
213 res.EnsureVisible();
214 res.TreeView.SelectedNode = res;
215 }

◆ ResizeAction()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.ResizeAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
99 {
100 GetInstance<CHR0Wrapper>().Resize();
101 }

◆ Reverse()

void BrawlCrate.NodeWrappers.CHR0Wrapper.Reverse ( bool  appendReverse)
inline
240 {
241 _resource = ((CHR0Node) _resource).Reverse(appendReverse);
242 BaseWrapper res = FindResource(_resource, false);
243 res.EnsureVisible();
244 res.TreeView.SelectedNode = res;
245 }

◆ ReverseAction()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.ReverseAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
118 {
119 GetInstance<CHR0Wrapper>().Reverse(false);
120 }

◆ ReverseLoopAction()

static void BrawlCrate.NodeWrappers.CHR0Wrapper.ReverseLoopAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
123 {
124 GetInstance<CHR0Wrapper>().Reverse(true);
125 }

Property Documentation

◆ ExportFilter

override string BrawlCrate.NodeWrappers.CHR0Wrapper.ExportFilter
get

◆ ImportFilter

override string BrawlCrate.NodeWrappers.CHR0Wrapper.ImportFilter
get

◆ MultiSelectMenuStrip

override ContextMenuStrip BrawlCrate.NodeWrappers.CHR0Wrapper.MultiSelectMenuStrip
get

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