BlankSlate.lua

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.

Functions

BlankSlate.GetImports(addon, ...)

Retrieves imported globals held by BlankSlate.

Parameters

Returns

  1. 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

[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