First commit, step 4 completed
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
local UIMacros =
|
||||
{
|
||||
Name = "UIMacros",
|
||||
Type = "System",
|
||||
Namespace = "C_Macro",
|
||||
Environment = "All",
|
||||
|
||||
Functions =
|
||||
{
|
||||
{
|
||||
Name = "GetMacroName",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "macroId", Type = "luaIndex", Nilable = false },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "name", Type = "cstring", Nilable = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetSelectedMacroIcon",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "macroId", Type = "luaIndex", Nilable = false },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "textureNum", Type = "fileID", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "RunMacroText",
|
||||
Type = "Function",
|
||||
HasRestrictions = true,
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "text", Type = "cstring", Nilable = false },
|
||||
{ Name = "button", Type = "cstring", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "SetMacroExecuteLineCallback",
|
||||
Type = "Function",
|
||||
HasRestrictions = true,
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "cb", Type = "MacroExecuteLineCallback", Nilable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Events =
|
||||
{
|
||||
{
|
||||
Name = "UpdateMacros",
|
||||
Type = "Event",
|
||||
LiteralName = "UPDATE_MACROS",
|
||||
SynchronousEvent = true,
|
||||
},
|
||||
},
|
||||
|
||||
Tables =
|
||||
{
|
||||
{
|
||||
Name = "MacroExecuteLineCallback",
|
||||
Type = "CallbackType",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "macroLine", Type = "cstring", Nilable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Predicates =
|
||||
{
|
||||
},
|
||||
};
|
||||
|
||||
APIDocumentation:AddDocumentationTable(UIMacros);
|
||||
Reference in New Issue
Block a user