First commit, step 4 completed

This commit is contained in:
bepis
2026-10-15 14:27:00 +11:00
commit 9a30efa170
5378 changed files with 1136719 additions and 0 deletions
@@ -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);