349 lines
7.5 KiB
Lua
349 lines
7.5 KiB
Lua
local SimpleHTMLAPI =
|
|
{
|
|
Name = "SimpleHTMLAPI",
|
|
Type = "ScriptObject",
|
|
Environment = "All",
|
|
|
|
Functions =
|
|
{
|
|
{
|
|
Name = "GetContentHeight",
|
|
Type = "Function",
|
|
|
|
Arguments =
|
|
{
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "height", Type = "uiUnit", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetFont",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "fontFile", Type = "cstring", Nilable = false },
|
|
{ Name = "height", Type = "uiFontHeight", Nilable = false },
|
|
{ Name = "flags", Type = "TBFFlags", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetFontObject",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "font", Type = "SimpleFont", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetHyperlinkFormat",
|
|
Type = "Function",
|
|
|
|
Arguments =
|
|
{
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "format", Type = "cstring", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetIndentedWordWrap",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "wordWrap", Type = "bool", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetJustifyH",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "justifyH", Type = "JustifyHorizontal", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetJustifyV",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "justifyV", Type = "JustifyVertical", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetShadowColor",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "colorR", Type = "number", Nilable = false },
|
|
{ Name = "colorG", Type = "number", Nilable = false },
|
|
{ Name = "colorB", Type = "number", Nilable = false },
|
|
{ Name = "colorA", Type = "number", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetShadowOffset",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "offsetX", Type = "number", Nilable = false },
|
|
{ Name = "offsetY", Type = "number", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetSpacing",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "spacing", Type = "uiUnit", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetTextColor",
|
|
Type = "Function",
|
|
ConstSecretAccessor = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "colorR", Type = "number", Nilable = false },
|
|
{ Name = "colorG", Type = "number", Nilable = false },
|
|
{ Name = "colorB", Type = "number", Nilable = false },
|
|
{ Name = "colorA", Type = "number", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetTextData",
|
|
Type = "Function",
|
|
SecretReturnsForAspect = { Enum.SecretAspect.Text },
|
|
|
|
Arguments =
|
|
{
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "content", Type = "table", InnerType = "HTMLContentNode", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetFont",
|
|
Type = "Function",
|
|
RequiresValidFontAsset = true,
|
|
RequiresValidFontHeight = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "fontFile", Type = "cstring", Nilable = false },
|
|
{ Name = "height", Type = "uiFontHeight", Nilable = false },
|
|
{ Name = "flags", Type = "TBFFlags", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetFontObject",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "font", Type = "SimpleFont", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetHyperlinkFormat",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "format", Type = "cstring", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetIndentedWordWrap",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "wordWrap", Type = "bool", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetJustifyH",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "justifyH", Type = "JustifyHorizontal", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetJustifyV",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "justifyV", Type = "JustifyVertical", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetShadowColor",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "colorR", Type = "number", Nilable = false },
|
|
{ Name = "colorG", Type = "number", Nilable = false },
|
|
{ Name = "colorB", Type = "number", Nilable = false },
|
|
{ Name = "a", Type = "SingleColorValue", Nilable = true },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetShadowOffset",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "offsetX", Type = "number", Nilable = false },
|
|
{ Name = "offsetY", Type = "number", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetSpacing",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "spacing", Type = "uiUnit", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetText",
|
|
Type = "Function",
|
|
SecretArgumentsAddAspect = { Enum.SecretAspect.Text },
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "text", Type = "cstring", Nilable = false },
|
|
{ Name = "ignoreMarkup", Type = "bool", Nilable = false, Default = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SetTextColor",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "textType", Type = "HTMLTextType", Nilable = false },
|
|
{ Name = "colorR", Type = "number", Nilable = false },
|
|
{ Name = "colorG", Type = "number", Nilable = false },
|
|
{ Name = "colorB", Type = "number", Nilable = false },
|
|
{ Name = "a", Type = "SingleColorValue", Nilable = true },
|
|
},
|
|
},
|
|
},
|
|
|
|
Events =
|
|
{
|
|
},
|
|
|
|
Tables =
|
|
{
|
|
},
|
|
|
|
Predicates =
|
|
{
|
|
},
|
|
};
|
|
|
|
APIDocumentation:AddDocumentationTable(SimpleHTMLAPI); |