150 lines
3.1 KiB
Lua
150 lines
3.1 KiB
Lua
local MerchantFrame =
|
|
{
|
|
Name = "MerchantFrame",
|
|
Type = "System",
|
|
Namespace = "C_MerchantFrame",
|
|
Environment = "All",
|
|
|
|
Functions =
|
|
{
|
|
{
|
|
Name = "GetBuybackItemID",
|
|
Type = "Function",
|
|
MayReturnNothing = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "buybackSlotIndex", Type = "luaIndex", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "buybackItemID", Type = "number", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetItemInfo",
|
|
Type = "Function",
|
|
MayReturnNothing = true,
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "index", Type = "luaIndex", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "info", Type = "MerchantItemInfo", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetMerchantCurrencies",
|
|
Type = "Function",
|
|
MayReturnNothing = true,
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "currencies", Type = "table", InnerType = "number", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "GetNumJunkItems",
|
|
Type = "Function",
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "numJunkItems", Type = "number", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "IsMerchantItemRefundable",
|
|
Type = "Function",
|
|
SecretArguments = "AllowedWhenUntainted",
|
|
|
|
Arguments =
|
|
{
|
|
{ Name = "index", Type = "luaIndex", Nilable = false },
|
|
},
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "refundable", Type = "bool", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "IsSellAllJunkEnabled",
|
|
Type = "Function",
|
|
|
|
Returns =
|
|
{
|
|
{ Name = "enabled", Type = "bool", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "SellAllJunkItems",
|
|
Type = "Function",
|
|
},
|
|
},
|
|
|
|
Events =
|
|
{
|
|
{
|
|
Name = "MerchantClosed",
|
|
Type = "Event",
|
|
LiteralName = "MERCHANT_CLOSED",
|
|
SynchronousEvent = true,
|
|
},
|
|
{
|
|
Name = "MerchantFilterItemUpdate",
|
|
Type = "Event",
|
|
LiteralName = "MERCHANT_FILTER_ITEM_UPDATE",
|
|
SynchronousEvent = true,
|
|
Payload =
|
|
{
|
|
{ Name = "itemID", Type = "number", Nilable = false },
|
|
},
|
|
},
|
|
{
|
|
Name = "MerchantShow",
|
|
Type = "Event",
|
|
LiteralName = "MERCHANT_SHOW",
|
|
SynchronousEvent = true,
|
|
},
|
|
{
|
|
Name = "MerchantUpdate",
|
|
Type = "Event",
|
|
LiteralName = "MERCHANT_UPDATE",
|
|
SynchronousEvent = true,
|
|
},
|
|
},
|
|
|
|
Tables =
|
|
{
|
|
{
|
|
Name = "MerchantItemInfo",
|
|
Type = "Structure",
|
|
Fields =
|
|
{
|
|
{ Name = "name", Type = "string", Nilable = true },
|
|
{ Name = "texture", Type = "fileID", Nilable = false },
|
|
{ Name = "price", Type = "number", Nilable = false, Default = 0 },
|
|
{ Name = "stackCount", Type = "number", Nilable = false, Default = 0 },
|
|
{ Name = "numAvailable", Type = "number", Nilable = false, Default = 0 },
|
|
{ Name = "isPurchasable", Type = "bool", Nilable = false, Default = false },
|
|
{ Name = "isUsable", Type = "bool", Nilable = false, Default = false },
|
|
{ Name = "hasExtendedCost", Type = "bool", Nilable = false, Default = false },
|
|
{ Name = "currencyID", Type = "number", Nilable = true },
|
|
{ Name = "spellID", Type = "number", Nilable = true },
|
|
{ Name = "isQuestStartItem", Type = "bool", Nilable = false, Default = false },
|
|
},
|
|
},
|
|
},
|
|
|
|
Predicates =
|
|
{
|
|
},
|
|
};
|
|
|
|
APIDocumentation:AddDocumentationTable(MerchantFrame); |