First commit, step 4 completed
This commit is contained in:
+160
@@ -0,0 +1,160 @@
|
||||
local ItemInteractionUI =
|
||||
{
|
||||
Name = "ItemInteractionUI",
|
||||
Type = "System",
|
||||
Namespace = "C_ItemInteraction",
|
||||
Environment = "All",
|
||||
|
||||
Functions =
|
||||
{
|
||||
{
|
||||
Name = "ClearPendingItem",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "CloseUI",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "GetChargeInfo",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "chargeInfo", Type = "ItemInteractionChargeInfo", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetItemConversionCurrencyCost",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "item", Type = "ItemLocation", Mixin = "ItemLocationMixin", Nilable = false },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "conversionCost", Type = "ConversionCurrencyCost", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetItemInteractionInfo",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "info", Type = "ItemInteractionFrameInfo", Nilable = true },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "GetItemInteractionSpellId",
|
||||
Type = "Function",
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "spellId", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "InitializeFrame",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "PerformItemInteraction",
|
||||
Type = "Function",
|
||||
HasRestrictions = true,
|
||||
},
|
||||
{
|
||||
Name = "Reset",
|
||||
Type = "Function",
|
||||
},
|
||||
{
|
||||
Name = "SetPendingItem",
|
||||
Type = "Function",
|
||||
SecretArguments = "AllowedWhenUntainted",
|
||||
|
||||
Arguments =
|
||||
{
|
||||
{ Name = "item", Type = "ItemLocation", Mixin = "ItemLocationMixin", Nilable = true },
|
||||
},
|
||||
|
||||
Returns =
|
||||
{
|
||||
{ Name = "success", Type = "bool", Nilable = false },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Events =
|
||||
{
|
||||
{
|
||||
Name = "ItemInteractionChargeInfoUpdated",
|
||||
Type = "Event",
|
||||
LiteralName = "ITEM_INTERACTION_CHARGE_INFO_UPDATED",
|
||||
SynchronousEvent = true,
|
||||
},
|
||||
{
|
||||
Name = "ItemInteractionItemSelectionUpdated",
|
||||
Type = "Event",
|
||||
LiteralName = "ITEM_INTERACTION_ITEM_SELECTION_UPDATED",
|
||||
SynchronousEvent = true,
|
||||
Payload =
|
||||
{
|
||||
{ Name = "itemLocation", Type = "ItemLocation", Mixin = "ItemLocationMixin", Nilable = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Tables =
|
||||
{
|
||||
{
|
||||
Name = "ConversionCurrencyCost",
|
||||
Type = "Structure",
|
||||
Fields =
|
||||
{
|
||||
{ Name = "currencyID", Type = "number", Nilable = false },
|
||||
{ Name = "amount", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "ItemInteractionChargeInfo",
|
||||
Type = "Structure",
|
||||
Fields =
|
||||
{
|
||||
{ Name = "newChargeAmount", Type = "number", Nilable = false },
|
||||
{ Name = "rechargeRate", Type = "number", Nilable = false },
|
||||
{ Name = "timeToNextCharge", Type = "number", Nilable = false },
|
||||
},
|
||||
},
|
||||
{
|
||||
Name = "ItemInteractionFrameInfo",
|
||||
Type = "Structure",
|
||||
Fields =
|
||||
{
|
||||
{ Name = "textureKit", Type = "textureKit", Nilable = false },
|
||||
{ Name = "openSoundKitID", Type = "number", Nilable = false },
|
||||
{ Name = "closeSoundKitID", Type = "number", Nilable = false },
|
||||
{ Name = "titleText", Type = "string", Nilable = false },
|
||||
{ Name = "tutorialText", Type = "string", Nilable = false },
|
||||
{ Name = "buttonText", Type = "string", Nilable = false },
|
||||
{ Name = "interactionType", Type = "UIItemInteractionType", Nilable = false },
|
||||
{ Name = "flags", Type = "UIItemInteractionFlags", Nilable = false },
|
||||
{ Name = "description", Type = "string", Nilable = true },
|
||||
{ Name = "buttonTooltip", Type = "string", Nilable = true },
|
||||
{ Name = "confirmationDescription", Type = "string", Nilable = true },
|
||||
{ Name = "slotTooltip", Type = "string", Nilable = true },
|
||||
{ Name = "cost", Type = "number", Nilable = true },
|
||||
{ Name = "currencyTypeId", Type = "number", Nilable = true },
|
||||
{ Name = "dropInSlotSoundKitId", Type = "number", Nilable = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Predicates =
|
||||
{
|
||||
},
|
||||
};
|
||||
|
||||
APIDocumentation:AddDocumentationTable(ItemInteractionUI);
|
||||
Reference in New Issue
Block a user