BrawlCrate v0.41
Wii File Editor
|
Static Public Member Functions | |
static List< T > | NodeListOfType< T > () |
Returns a full list of all nodes of a given type in the open file. More... | |
static List< T > | NodeWrapperListOfType< T > () |
Returns a full list of all node wrappers of a given type in the open file. More... | |
static void | ShowMessage (string msg, string title) |
Shows a MessageBox with the given message and title, and the default "OK" option. More... | |
static void | ShowWarning (string msg, string title) |
Shows a MessageBox with the given message and title, the default "OK" option, and a Warning symbol. More... | |
static void | ShowError (string msg, string title) |
Shows a MessageBox with the given message and title, the default "OK" option, and an Error symbol. More... | |
static bool | ShowYesNoPrompt (string msg, string title) |
Shows a MessageBox with the given message and title, with options for "Yes" or "No". More... | |
static bool | ShowYesNoWarning (string msg, string title) |
Shows a MessageBox with the given message and title, "Yes/No" options, and a Warning symbol. More... | |
static bool | ShowYesNoError (string msg, string title) |
Shows a MessageBox with the given message and title, "Yes/No" options, and an Error symbol. More... | |
static bool | ShowOKCancelPrompt (string msg, string title) |
Shows a MessageBox with the given message and title, with options for "OK" or "Cancel". More... | |
static bool | ShowOKCancelWarning (string msg, string title) |
Shows a MessageBox with the given message and title, "OK/Cancel" options, and a Warning symbol. More... | |
static bool | ShowOKCancelError (string msg, string title) |
Shows a MessageBox with the given message and title, "OK/Cancel" options, and an Error symbol. More... | |
static string | OpenFileDialog () |
Opens an open file dialog, prompting the user to select a file. More... | |
static string | OpenFileDialog (string title) |
Opens an open file dialog, prompting the user to select a file. More... | |
static string | OpenFileDialog (string title, string filter) |
Opens an open file dialog, prompting the user to select a file. More... | |
static string[] | OpenMultiFileDialog () |
Opens an open file dialog, prompting the user to select multiple files More... | |
static string[] | OpenMultiFileDialog (string title) |
Opens an open file dialog, prompting the user to select multiple files More... | |
static string[] | OpenMultiFileDialog (string title, string filter) |
Opens an open file dialog, prompting the user to select multiple files More... | |
static string | OpenFolderDialog () |
Opens an Open Folder Dialog, prompting the user to select a folder. More... | |
static string | OpenFolderDialog (string description) |
Opens an Open Folder Dialog, prompting the user to select a folder. More... | |
static string | SaveFileDialog () |
Opens a save file dialog, prompting the user to save a file. More... | |
static string | SaveFileDialog (string title) |
Opens a save file dialog, prompting the user to save a file. More... | |
static string | SaveFileDialog (string title, string filter) |
Opens a save file dialog, prompting the user to save a file. More... | |
static string | UserStringInput () |
Prompts the user to input a string, with a default title and the last BrawlAPI-entered string as the default value. More... | |
static string | UserStringInput (string title) |
Prompts the user to input a string, with the last BrawlAPI-entered string as the default value. More... | |
static string | UserStringInput (string title, string defaultText) |
Prompts the user to input a string with a default starting value. More... | |
static int | UserIntegerInput () |
Prompts the user to input an integer. More... | |
static int | UserIntegerInput (string title) |
Prompts the user to input an integer. More... | |
static int | UserIntegerInput (string title, string description) |
Prompts the user to input an integer. More... | |
static int | UserIntegerInput (string title, string description, int defaultValue) |
Prompts the user to input an integer. More... | |
static int | UserIntegerInput (string title, string description, int defaultValue, int minimumValue) |
Prompts the user to input an integer. More... | |
static int | UserIntegerInput (string title, string description, int defaultValue, int minimumValue, int maximumValue) |
Prompts the user to input an integer. More... | |
static float | UserFloatInput (string title) |
Prompts the user to input a float. More... | |
static float | UserFloatInput (string title, string description) |
Prompts the user to input a float. More... | |
static float | UserFloatInput (string title, string description, float defaultValue) |
Prompts the user to input a float. More... | |
static float | UserFloatInput (string title, string description, float defaultValue, float minimumValue) |
Prompts the user to input a float. More... | |
static float | UserFloatInput (string title, string description, float defaultValue, float minimumValue, float maximumValue) |
Prompts the user to input a float. More... | |
static void | AddContextMenuItem (Type wrapper, params ToolStripMenuItem[] items) |
To be called by API, adds context menu items to a wrapper. More... | |
static void | AddContextMenuItem (Type wrapper, string subMenuName, string description, EventHandler conditional, params ToolStripMenuItem[] items) |
To be called by API, adds context menu items to a wrapper with additional options. More... | |
static void | AddMultiSelectContextMenuItem (Type wrapper, params ToolStripMenuItem[] items) |
To be called by API, adds context menu items to a wrapper's multi-selection menu. More... | |
static void | AddMultiSelectContextMenuItem (Type wrapper, string subMenuName, string description, EventHandler conditional, params ToolStripMenuItem[] items) |
To be called by API, adds context menu items to a wrapper's multi-selection menu with additional options. More... | |
static bool | New< T > () |
Creates a new ResourceNode of type T and attempts to set it as the root node. More... | |
static bool | OpenFile (string path) |
Attempts to open the file using a given path. More... | |
static bool | OpenFileNoErrors (string path) |
Attempts to open the file using a given path. Any error messages (including "file not found") are not shown to the user. More... | |
static bool | OpenTemplate (string path) |
Attempts to open the file as a template using a given path. More... | |
static bool | OpenTemplateNoErrors (string path) |
Attempts to open the file using a given path. Any error messages (including "file not found") are not shown to the user. More... | |
static bool | SaveFile () |
Attempts to save the opened file. More... | |
static bool | SaveFileAs () |
Prompts the user to save the open file to a directory. More... | |
static bool | SaveFileAs (string path) |
Attempts to save the opened file to a given path. More... | |
static bool | CloseFile () |
Closes the open file, leaving the editor on the idle screen. More... | |
static bool | ForceCloseFile () |
Closes the open file, leaving the editor on the idle screen. More... | |
static void | RefreshPreview () |
Refreshes the preview on the main window. More... | |
static void | Wait (int milliseconds) |
Causes the current thread to sleep for a number of milliseconds. More... | |
static void | AddResourceParser (PluginResourceParser resourceParser) |
Adds parsing for a specific user-defined file type. More... | |
static void | AddWrapper (ResourceType resourceType, PluginWrapper wrapper) |
Adds a wrapper for a specific user-defined file type. More... | |
static void | AddWrapper< TypeNode > (PluginWrapper wrapper) |
Adds a wrapper for a specific user-defined node type. More... | |
static void | WriteToConsole (string msg) |
Writes a message to the the console and debug log (if debugging) and the Trace log (if enabled). More... | |
Properties | |
static ResourceNode | RootNode [get] |
The root node of the opened file. More... | |
static ResourceNode | SelectedNode [get] |
The currently selected node on the Main Form. Useful for context menu items. More... | |
static List< ResourceNode > | SelectedNodes [get] |
The currently selected nodes on the Main Form. More... | |
static List< ResourceNode > | NodeList [get] |
Returns a full list of all nodes in the open file. More... | |
static BaseWrapper | RootNodeWrapper [get] |
The wrapper for the root node of the opened file. More... | |
static BaseWrapper | SelectedNodeWrapper [get] |
The wrapper for the currently selected node on the Main Form. Useful for context menu items. More... | |
static List< BaseWrapper > | SelectedNodeWrappers [get] |
The wrappers for the currently selected nodes on the Main Form. More... | |
static List< BaseWrapper > | NodeWrapperList [get] |
Returns a full list of all node wrappers in the open file. More... | |
static string | AppPath [get] |
The folder in which the BrawlCrate installation is located. More... | |
static string | APIPath [get] |
The folder in which the API folders are located. More... | |
static string | LibPath [get] |
The folder in which API libraries are located. More... | |
static string | PluginPath [get] |
The folder in which plugins are located. More... | |
static string | LoaderPath [get] |
The folder in which loaders are located. More... | |
static string | ResourcesPath [get] |
The folder in which API resources are located. More... | |
|
inlinestatic |
To be called by API, adds context menu items to a wrapper.
This is kept for compatibility purposes, the second definition for this function offers far more extensibility.
wrapper | The wrapper which new items will be added to. |
items | One or more ToolStrip menu items that will be added to the context menu. These should be defined as much as possible in the script itself. |
|
inlinestatic |
To be called by API, adds context menu items to a wrapper with additional options.
wrapper | The wrapper which new items will be added to. |
subMenuName | (Optional) If not null or empty, a submenu which nodes will be defined under. |
description | (Optional) If not null or empty, a string that will appear on mouseover. Will be added to the menu if the items are in a submenu, or added to all items otherwise. |
conditional | (Optional) If not null, a function that will be run every time the dropdown is activated. Most useful to change an item's enabled state. |
items | One or more ToolStrip menu items that will be added to the context menu. These should be defined as much as possible in the script itself. |
|
inlinestatic |
To be called by API, adds context menu items to a wrapper's multi-selection menu.
The second definition for this function offers far more extensibility.
wrapper | The wrapper which new items will be added to. |
items | One or more ToolStrip menu items that will be added to the context menu. These should be defined as much as possible in the script itself. |
|
inlinestatic |
To be called by API, adds context menu items to a wrapper's multi-selection menu with additional options.
wrapper | The wrapper which new items will be added to. |
subMenuName | (Optional) If not null or empty, a submenu which nodes will be defined under. |
description | (Optional) If not null or empty, a string that will appear on mouseover. Will be added to the menu if the items are in a submenu, or added to all items otherwise. |
conditional | (Optional) If not null, a function that will be run every time the dropdown is activated. Most useful to change an item's enabled state. |
items | One or more ToolStrip menu items that will be added to the context menu. These should be defined as much as possible in the script itself. |
|
inlinestatic |
Adds parsing for a specific user-defined file type.
In bboxapi, this was originally "AddLoader"
resourceParser | The PluginResourceParser to be added. |
|
inlinestatic |
Adds a wrapper for a specific user-defined file type.
This variation requires reference to a pre-existing ResourceType. Will overwrite pre-existing ResourceType-based wrappers.
resourceType | The resource file type to attach the wrapper to. |
wrapper | The wrapper to be used. |
|
inlinestatic |
Adds a wrapper for a specific user-defined node type.
This variation bases wrappers off of the type of the resource node, offering more flexibility for new types. Will overwrite pre-existing Type-based wrappers. Type-based wrappers take priority over ResourceType-based wrappers.
TypeNode | The ResourceNode type to attach the wrapper to. |
wrapper | The wrapper to be used. |
TypeNode | : | ResourceNode |
|
inlinestatic |
Closes the open file, leaving the editor on the idle screen.
If the open file has unsaved changes, prompts the user to save them.
Returns true if the file is successfully closed, and false otherwise.
|
inlinestatic |
Closes the open file, leaving the editor on the idle screen.
Will close regardless of unsaved changes.
Returns true if the file is successfully closed, and false otherwise.
|
inlinestatic |
Creates a new ResourceNode of type T and attempts to set it as the root node.
T | The type of ResourceNode to create. |
T | : | ResourceNode |
|
inlinestatic |
Returns a full list of all nodes of a given type in the open file.
Returns an empty list if there is no open file
T | : | ResourceNode |
|
inlinestatic |
Returns a full list of all node wrappers of a given type in the open file.
Returns an empty list if there is no open file
T | : | BaseWrapper |
|
inlinestatic |
Attempts to open the file using a given path.
path | The path of the file that is to be opened. |
|
inlinestatic |
Opens an open file dialog, prompting the user to select a file.
Returns the path of the file that the user chose, or an empty string if the dialog was cancelled.
|
inlinestatic |
Opens an open file dialog, prompting the user to select a file.
Returns the path of the file that the user chose, or an empty string if the dialog was cancelled.
title | The title text that will show in the TitleBar of the form. |
|
inlinestatic |
Opens an open file dialog, prompting the user to select a file.
Returns the path of the file that the user chose, or an empty string if the dialog was cancelled.
title | The title text that will show in the TitleBar of the form. |
filter | The file filter to use for the open file dialog. Use the formatting found here: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.filedialog.filter |
You can also reference the pre-programmed filters from FileFilters.cs
|
inlinestatic |
Attempts to open the file using a given path. Any error messages (including "file not found") are not shown to the user.
path | The path of the file that is to be opened. |
|
inlinestatic |
Opens an Open Folder Dialog, prompting the user to select a folder.
Returns the path of the folder that the user chose, or an empty string if the dialog was cancelled.
|
inlinestatic |
Opens an Open Folder Dialog, prompting the user to select a folder.
Returns the path of the folder that the user chose, or an empty string if the dialog was cancelled.
description | The description of the folder dialog. |
For Windows-based devices, this will appear as the title of the window. For others, this will appear as a description box.
|
inlinestatic |
Opens an open file dialog, prompting the user to select multiple files
Returns the paths of the files that the user chose, or null if the dialog was cancelled.
|
inlinestatic |
Opens an open file dialog, prompting the user to select multiple files
Returns the paths of the files that the user chose, or null if the dialog was cancelled.
title | The title text that will show in the TitleBar of the form. |
|
inlinestatic |
Opens an open file dialog, prompting the user to select multiple files
Returns the paths of the files that the user chose, or null if the dialog was cancelled.
title | The title text that will show in the TitleBar of the form. |
filter | The file filter to use for the open file dialog. Use the formatting found here: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.filedialog.filter |
You can also reference the pre-programmed filters from FileFilters.cs
|
inlinestatic |
Attempts to open the file as a template using a given path.
Templates do not set the save path, meaning that the user will be prompted for "Save As" on first save.
Returns true if the file is successfully loaded, and false otherwise.
path | The path of the template file that is to be opened. |
|
inlinestatic |
Attempts to open the file using a given path. Any error messages (including "file not found") are not shown to the user.
Templates do not set the save path, meaning that the user will be prompted for "Save As" on first save.
Returns true if the file is successfully loaded, and false otherwise.
path | The path of the template file that is to be opened. |
|
inlinestatic |
Refreshes the preview on the main window.
|
inlinestatic |
Attempts to save the opened file.
Returns true if the file is successfully saved, and false otherwise.
|
inlinestatic |
Prompts the user to save the open file to a directory.
Returns true if the file is successfully saved, and false otherwise.
|
inlinestatic |
Attempts to save the opened file to a given path.
Returns true if the file is successfully saved, and false otherwise.
path | The path to which the file should be saved |
|
inlinestatic |
Opens a save file dialog, prompting the user to save a file.
DOES NOT ACTUALLY SAVE ANYTHING BY ITSELF! Additional scripting must be done if you want to actually save anything.
Returns the save path that the user chose, or an empty string if the dialog was cancelled.
|
inlinestatic |
Opens a save file dialog, prompting the user to save a file.
DOES NOT ACTUALLY SAVE ANYTHING BY ITSELF! Additional scripting must be done if you want to actually save anything.
Returns the save path that the user chose, or an empty string if the dialog was cancelled.
title | The title text that will show in the TitleBar of the form. |
|
inlinestatic |
Opens a save file dialog, prompting the user to save a file.
DOES NOT ACTUALLY SAVE ANYTHING BY ITSELF! Additional scripting must be done if you want to actually save anything.
Returns the save path that the user chose, or an empty string if the dialog was cancelled.
title | The title text that will show in the TitleBar of the form. |
filter | The file filter to use for the open file dialog. Use the formatting found here: https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.filedialog.filter |
You can also reference the pre-programmed filters from FileFilters.cs
|
inlinestatic |
Shows a MessageBox with the given message and title, the default "OK" option, and an Error symbol.
Doesn't return a value, and is just used to show the user messages.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Shows a MessageBox with the given message and title, and the default "OK" option.
Doesn't return a value, and is just used to show the user messages.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Shows a MessageBox with the given message and title, "OK/Cancel" options, and an Error symbol.
Returns true if "OK" is clicked, and false otherwise.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Shows a MessageBox with the given message and title, with options for "OK" or "Cancel".
Returns true if "OK" is clicked, and false otherwise.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Shows a MessageBox with the given message and title, "OK/Cancel" options, and a Warning symbol.
Returns true if "OK" is clicked, and false otherwise.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Shows a MessageBox with the given message and title, the default "OK" option, and a Warning symbol.
Doesn't return a value, and is just used to show the user messages.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Shows a MessageBox with the given message and title, "Yes/No" options, and an Error symbol.
Returns true if "Yes" is clicked, and false otherwise.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Shows a MessageBox with the given message and title, with options for "Yes" or "No".
Returns true if "Yes" is clicked, and false otherwise.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Shows a MessageBox with the given message and title, "Yes/No" options, and a Warning symbol.
Returns true if "Yes" is clicked, and false otherwise.
msg | The message that will appear in the body of the MessageBox. |
title | The title text that will show in the TitleBar of the MessageBox. |
|
inlinestatic |
Prompts the user to input a float.
title | The title of the dialog box |
|
inlinestatic |
Prompts the user to input a float.
title | The title of the dialog box |
description | A short description printed next to the NumericEntryBox |
|
inlinestatic |
Prompts the user to input a float.
title | The title of the dialog box |
description | A short description printed next to the NumericEntryBox |
defaultValue | The default value that the NumericInputBox will be set to |
|
inlinestatic |
Prompts the user to input a float.
title | The title of the dialog box |
description | A short description printed next to the NumericEntryBox |
defaultValue | The default value that the NumericInputBox will be set to |
minimumValue | The lowest possible number allowed |
|
inlinestatic |
Prompts the user to input a float.
title | The title of the dialog box |
description | A short description printed next to the NumericEntryBox |
defaultValue | The default value that the NumericInputBox will be set to |
minimumValue | The lowest possible number allowed |
maximumValue | The highest possible number allowed |
|
inlinestatic |
Prompts the user to input an integer.
|
inlinestatic |
Prompts the user to input an integer.
title | The title of the dialog box |
|
inlinestatic |
Prompts the user to input an integer.
title | The title of the dialog box |
description | A short description printed next to the NumericEntryBox |
|
inlinestatic |
Prompts the user to input an integer.
title | The title of the dialog box |
description | A short description printed next to the NumericEntryBox |
defaultValue | The default value that the NumericInputBox will be set to |
|
inlinestatic |
Prompts the user to input an integer.
title | The title of the dialog box |
description | A short description printed next to the NumericEntryBox |
defaultValue | The default value that the NumericInputBox will be set to |
minimumValue | The lowest possible number allowed |
|
inlinestatic |
Prompts the user to input an integer.
title | The title of the dialog box |
description | A short description printed next to the NumericEntryBox |
defaultValue | The default value that the NumericInputBox will be set to |
minimumValue | The lowest possible number allowed |
maximumValue | The highest possible number allowed |
|
inlinestatic |
Prompts the user to input a string, with a default title and the last BrawlAPI-entered string as the default value.
|
inlinestatic |
Prompts the user to input a string, with the last BrawlAPI-entered string as the default value.
title | The title of the string input dialog box |
|
inlinestatic |
Prompts the user to input a string with a default starting value.
title | The title of the string input dialog box |
defaultText | The default text to use for the input |
|
inlinestatic |
Causes the current thread to sleep for a number of milliseconds.
milliseconds | The amount of time to wait, in milliseconds |
|
inlinestatic |
Writes a message to the the console and debug log (if debugging) and the Trace log (if enabled).
To be used for debugging purposes only. This function call will do nothing in release builds. For compatibility purposes, this function will still be callable in release builds.
msg | The string to be written to the console. |
|
staticget |
The folder in which the API folders are located.
|
staticget |
The folder in which the BrawlCrate installation is located.
|
staticget |
The folder in which API libraries are located.
|
staticget |
The folder in which loaders are located.
|
staticget |
Returns a full list of all nodes in the open file.
Returns an empty list if there is no open file.
|
staticget |
Returns a full list of all node wrappers in the open file.
Note that this function is generally slow due to the implementation of ResourceTrees; for general usage, NodeList works best.
Returns an empty list if there is no open file.
|
staticget |
The folder in which plugins are located.
|
staticget |
The folder in which API resources are located.
|
staticget |
The root node of the opened file.
|
staticget |
The wrapper for the root node of the opened file.
Returns null if there is no open file.
|
staticget |
The currently selected node on the Main Form. Useful for context menu items.
|
staticget |
The currently selected nodes on the Main Form.
|
staticget |
The wrapper for the currently selected node on the Main Form. Useful for context menu items.
Returns null if there is no selected node.
|
staticget |
The wrappers for the currently selected nodes on the Main Form.
Returns null if there are no selected nodes.