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

Public Member Functions

 RELWrapper ()
 
void Convert ()
 
void Constructor ()
 
void Destructor ()
 
void Unresolved ()
 
- 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 ConvertAction (object sender, EventArgs e)
 
static void ConstructorAction (object sender, EventArgs e)
 
static void DestructorAction (object sender, EventArgs e)
 
static void UnresolvedAction (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

◆ RELWrapper()

BrawlCrate.NodeWrappers.RELWrapper.RELWrapper ( )
inline
105 {
106 ContextMenuStrip = _menu;
107 }

Member Function Documentation

◆ Constructor()

void BrawlCrate.NodeWrappers.RELWrapper.Constructor ( )
inline
123 {
125
127
129 {
130 if (l._section == s)
131 {
132 l.Focus();
133 l.Position = r._prologOffset;
134 l.hexBox1.Focus();
135 return;
136 }
137 }
138
140 e.Show();
141 e.Position = r._prologOffset;
142 e.hexBox1.Focus();
143 }
ResourceNode _resource
Definition: BaseWrapper.cs:76
static List< SectionEditor > _openedSections
Definition: SectionEditor.cs:20
ModuleSectionNode _section
Definition: SectionEditor.cs:17
HexBox hexBox1
Definition: SectionEditor.Designer.cs:1154
Definition: ModuleDataNode.cs:8
Definition: RELSectionNode.cs:10
Definition: RELNode.cs:17
ModuleSectionNode[] Sections
Definition: RELNode.cs:23
byte _prologSection
Definition: RELNode.cs:52
uint _prologOffset
Definition: RELNode.cs:57

◆ ConstructorAction()

static void BrawlCrate.NodeWrappers.RELWrapper.ConstructorAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
66 {
67 GetInstance<RELWrapper>().Constructor();
68 }

◆ Convert()

void BrawlCrate.NodeWrappers.RELWrapper.Convert ( )
inline
110 {
112 {
113 dlg.Path = _resource.FilePath;
114 if (dlg.ShowDialog(null) == DialogResult.OK)
115 {
117 _resource.Name = dlg.OutputName;
118 }
119 }
120 }
Definition: StageModuleConverter.cs:13
unsafe FileMap ToFileMap()
Definition: StageModuleConverter.cs:546
new DialogResult ShowDialog(IWin32Window owner)
Definition: StageModuleConverter.cs:600
string OutputName
Definition: StageModuleConverter.cs:562
virtual void ReplaceRaw(VoidPtr address, int length)
Definition: ResourceNode.cs:847
string FilePath
Definition: ResourceNode.cs:162

◆ ConvertAction()

static void BrawlCrate.NodeWrappers.RELWrapper.ConvertAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
61 {
62 GetInstance<RELWrapper>().Convert();
63 }

◆ Destructor()

void BrawlCrate.NodeWrappers.RELWrapper.Destructor ( )
inline
146 {
148
150
152 {
153 if (l._section == s)
154 {
155 l.Focus();
156 l.Position = r._epilogOffset;
157 l.hexBox1.Focus();
158 return;
159 }
160 }
161
163 e.Show();
164 e.Position = r._epilogOffset;
165 e.hexBox1.Focus();
166 }
uint _epilogOffset
Definition: RELNode.cs:58
byte _epilogSection
Definition: RELNode.cs:53

◆ DestructorAction()

static void BrawlCrate.NodeWrappers.RELWrapper.DestructorAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
71 {
72 GetInstance<RELWrapper>().Destructor();
73 }

◆ Unresolved()

void BrawlCrate.NodeWrappers.RELWrapper.Unresolved ( )
inline
169 {
171
173
175 {
176 if (l._section == s)
177 {
178 l.Focus();
179 l.Position = r._unresolvedOffset;
180 l.hexBox1.Focus();
181 return;
182 }
183 }
184
186 e.Show();
187 e.Position = r._unresolvedOffset;
188 e.hexBox1.Focus();
189 }
uint _unresolvedOffset
Definition: RELNode.cs:59
byte _unresolvedSection
Definition: RELNode.cs:54

◆ UnresolvedAction()

static void BrawlCrate.NodeWrappers.RELWrapper.UnresolvedAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
76 {
77 GetInstance<RELWrapper>().Unresolved();
78 }

Property Documentation

◆ ExportFilter

override string BrawlCrate.NodeWrappers.RELWrapper.ExportFilter
get

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