BlankSlate
TOC data
- Interface
- 60200
- Title
- Blank Slate
- Notes
- Wipes out the default UI, leaving a clean Lua environment for addons.
- Author
- Predicate
- X-BlankSlate-Keep
- BlankSlate, print
Function Summary
- BlankSlate.GetImports(addon, ...)
- Retrieves imported globals held by BlankSlate.
- [TOC] X-BlankSlate-Import(...)
- A TOC metadata field allowing addons to request a copy of a default UI global to be held by BlankSlate.
- [TOC] X-BlankSlate-Keep(...)
- A TOC metadata field allowing addons to request that certain globals be kept.
- error(msg)
- A basic error handler that outputs debugging information to the developer console.
- print(...)
- Prints to the developer console.
Functions
BlankSlate.GetImports(addon, ...)
Retrieves imported globals held by BlankSlate.
Parameters
addon
: Name of the addon requesting the globals....
: Names of globals to retrieve.
Returns
- The requested globals.
[TOC] X-BlankSlate-Import(...)
A TOC metadata field allowing addons to request a copy of a default UI global to be held by BlankSlate. This is intended for situations where an addon makes use of default UI data such as localized strings or texture paths that are not available from C API. The data will not remain in the global environment (for that, use X-BlankSlate-Keep) and will not be accessible to other addons unless they request it themselves. If you need more variables than you can fit in one TOC field, continue your list in X-BlankSlate-Import2, X-BlankSlate-Import3, etc.
Parameters
...
: List of global variable names. May be separated by any characters which cannot be part of a Lua identifier (e.g. commas or whitespace).
[TOC] X-BlankSlate-Keep(...)
A TOC metadata field allowing addons to request that certain globals be kept. This is intended for situations where the globals must be accessible to default UI code, such as the use of secure templates. This should not be used unless absolutely necessary, as it will pollute the global environment. If you need more variables than you can fit in one TOC field, continue your list in X-BlankSlate-Keep2, X-BlankSlate-Keep3, etc.
Parameters
...
: List of global variable names. May be separated by any characters which cannot be part of a Lua identifier (e.g. commas or whitespace).
error(msg)
A basic error handler that outputs debugging information to the developer console. This replaces the default error handler, which loads a Blizzard addon that is broken by BlankSlate. BlankSlate-aware error handling addons should OptDep BlankSlate and use seterrorhandler() to override this.
Parameters
msg
: Error message.