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

Public Member Functions

void NewEntry ()
 
 MasqueradeWrapper ()
 
- 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 NewEntryAction (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]
 
- 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

◆ MasqueradeWrapper()

BrawlCrate.NodeWrappers.MasqueradeWrapper.MasqueradeWrapper ( )
inline
125 {
126 ContextMenuStrip = _menu;
127 }

Member Function Documentation

◆ NewEntry()

void BrawlCrate.NodeWrappers.MasqueradeWrapper.NewEntry ( )
inline
93 {
95 if (_resource.Children.Count >= m.Size/2)
96 {
97 return;
98 }
99
101 {
102 _colorID = 0x0B
103 };
105 {
106 byte nextID =
107 (byte) (((MasqueradeEntryNode) _resource.Children[_resource.Children.Count - 1])._costumeID + 1);
108 if (((MasqueradeNode) _resource)._cosmeticSlot == 21 && (
109 nextID == 15 ||
110 nextID == 31 ||
111 nextID == 47 ||
112 nextID == 63))
113 {
114 ++nextID; // Prevent wario edge cases
115 }
116
117 node._costumeID = nextID;
118 }
119
120 _resource.AddChild(node);
121 node.regenName();
122 }
ResourceNode _resource
Definition: BaseWrapper.cs:76
Definition: MasqueradeNode.cs:171
void regenName()
Definition: MasqueradeNode.cs:253
Definition: MasqueradeNode.cs:12
int Size
Definition: MasqueradeNode.cs:18
virtual bool HasChildren
Definition: ResourceNode.cs:185
virtual void AddChild(ResourceNode child)
Definition: ResourceNode.cs:757
List< ResourceNode > Children
Definition: ResourceNode.cs:262

◆ NewEntryAction()

static void BrawlCrate.NodeWrappers.MasqueradeWrapper.NewEntryAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
61 {
62 GetInstance<MasqueradeWrapper>().NewEntry();
63 }

Property Documentation

◆ ExportFilter

override string BrawlCrate.NodeWrappers.MasqueradeWrapper.ExportFilter
get

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