Commit ffbd8a3f authored by TOM_RUS's avatar TOM_RUS

WOW-32414patch8.3.0_PTR

parent 97a8ce98
......@@ -227,6 +227,7 @@ local AuctionHouse =
Arguments =
{
{ Name = "itemKey", Type = "ItemKey", Nilable = false },
{ Name = "restrictQualityToFilter", Type = "bool", Nilable = false, Default = false },
},
Returns =
......@@ -1016,24 +1017,6 @@ local AuctionHouse =
{ Name = "newAuctionID", Type = "number", Nilable = true },
},
},
{
Name = "OwnedAuctionAdded",
Type = "Event",
LiteralName = "OWNED_AUCTION_ADDED",
Payload =
{
{ Name = "ownedAuctionID", Type = "number", Nilable = false },
},
},
{
Name = "OwnedAuctionExpired",
Type = "Event",
LiteralName = "OWNED_AUCTION_EXPIRED",
Payload =
{
{ Name = "ownedAuctionID", Type = "number", Nilable = false },
},
},
{
Name = "OwnedAuctionsUpdated",
Type = "Event",
......@@ -1166,6 +1149,7 @@ local AuctionHouse =
{ Name = "timeLeftSeconds", Type = "number", Nilable = true },
{ Name = "numOwnerItems", Type = "number", Nilable = false },
{ Name = "containsOwnerItem", Type = "bool", Nilable = false },
{ Name = "containsAccountItem", Type = "bool", Nilable = false },
},
},
{
......@@ -1185,6 +1169,7 @@ local AuctionHouse =
Fields =
{
{ Name = "itemName", Type = "string", Nilable = false },
{ Name = "battlePetLink", Type = "string", Nilable = true },
{ Name = "quality", Type = "number", Nilable = false },
{ Name = "iconFileID", Type = "number", Nilable = false },
{ Name = "isPet", Type = "bool", Nilable = false },
......@@ -1204,6 +1189,7 @@ local AuctionHouse =
{ Name = "quantity", Type = "number", Nilable = false },
{ Name = "itemLink", Type = "string", Nilable = true },
{ Name = "containsOwnerItem", Type = "bool", Nilable = false },
{ Name = "containsAccountItem", Type = "bool", Nilable = false },
{ Name = "containsSocketedItem", Type = "bool", Nilable = false },
{ Name = "bidder", Type = "string", Nilable = true },
{ Name = "minBid", Type = "number", Nilable = true },
......
......@@ -72,6 +72,7 @@ InvasionInfoDocumentation.lua
IslandsInfoDocumentation.lua
IslandsQueueUIDocumentation.lua
ItemDocumentation.lua
ItemInteractionUIDocumentation.lua
ItemSocketInfoDocumentation.lua
ItemTextDocumentation.lua
ItemUpgradeDocumentation.lua
......
......@@ -183,6 +183,20 @@ local ClubFinder =
{ Name = "clubInfo", Type = "RecruitingClubInfo", Nilable = false },
},
},
{
Name = "GetStatusOfPostingFromClubId",
Type = "Function",
Arguments =
{
{ Name = "postingID", Type = "string", Nilable = false },
},
Returns =
{
{ Name = "postingFlags", Type = "table", InnerType = "ClubFinderClubPostingStatusFlags", Nilable = false },
},
},
{
Name = "GetTotalMatchingCommunityListSize",
Type = "Function",
......@@ -215,6 +229,20 @@ local ClubFinder =
{ Name = "hasAlreadyApplied", Type = "bool", Nilable = false },
},
},
{
Name = "HasPostingBeenDelisted",
Type = "Function",
Arguments =
{
{ Name = "postingID", Type = "string", Nilable = false },
},
Returns =
{
{ Name = "postingDelisted", Type = "bool", Nilable = false },
},
},
{
Name = "IsEnabled",
Type = "Function",
......@@ -238,6 +266,20 @@ local ClubFinder =
{ Name = "isListed", Type = "bool", Nilable = false },
},
},
{
Name = "IsPostingBanned",
Type = "Function",
Arguments =
{
{ Name = "postingID", Type = "string", Nilable = false },
},
Returns =
{
{ Name = "postingBanned", Type = "bool", Nilable = false },
},
},
{
Name = "LookupClubPostingFromClubFinderGUID",
Type = "Function",
......@@ -622,6 +664,25 @@ local ClubFinder =
{ Name = "Cancel", Type = "ClubFinderApplicationUpdateType", EnumValue = 3 },
},
},
{
Name = "ClubFinderClubPostingStatusFlags",
Type = "Enumeration",
NumValues = 9,
MinValue = 0,
MaxValue = 8,
Fields =
{
{ Name = "None", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 0 },
{ Name = "NeedsCacheUpdate", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 1 },
{ Name = "ForceDescriptionChange", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 2 },
{ Name = "ForceNameChange", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 3 },
{ Name = "UnderReview", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 4 },
{ Name = "Banned", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 5 },
{ Name = "FakePost", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 6 },
{ Name = "PendingDelete", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 7 },
{ Name = "PostDelisted", Type = "ClubFinderClubPostingStatusFlags", EnumValue = 8 },
},
},
{
Name = "ClubFinderDisableReason",
Type = "Enumeration",
......
......@@ -66,6 +66,20 @@ local GarrisonInfo =
{ Name = "garrTalentTreeType", Type = "number", Nilable = false },
},
},
{
Name = "GetTalentPointsSpentInTalentTree",
Type = "Function",
Arguments =
{
{ Name = "garrTalentTreeID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "talentPoints", Type = "number", Nilable = false },
},
},
{
Name = "GetTalentTreeIDsByClassID",
Type = "Function",
......@@ -81,6 +95,25 @@ local GarrisonInfo =
{ Name = "treeIDs", Type = "table", InnerType = "number", Nilable = false },
},
},
{
Name = "GetTalentTreeTalentPointResearchInfo",
Type = "Function",
Arguments =
{
{ Name = "garrTalentTreeID", Type = "number", Nilable = false },
{ Name = "talentPointIndex", Type = "number", Nilable = false },
{ Name = "isRespec", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "goldCost", Type = "number", Nilable = false },
{ Name = "currencyType", Type = "number", Nilable = false },
{ Name = "currencyCost", Type = "number", Nilable = false },
{ Name = "durationSecs", Type = "number", Nilable = false },
},
},
{
Name = "IsAtGarrisonMissionNPC",
Type = "Function",
......
local ItemInteractionUI =
{
Name = "ItemInteractionUI",
Type = "System",
Namespace = "C_ItemInteraction",
Functions =
{
{
Name = "ClearPendingItem",
Type = "Function",
},
{
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",
},
{
Name = "Reset",
Type = "Function",
},
{
Name = "SetCorruptionReforgerItemTooltip",
Type = "Function",
},
{
Name = "SetPendingItem",
Type = "Function",
Arguments =
{
{ Name = "item", Type = "table", Mixin = "ItemLocationMixin", Nilable = true },
},
Returns =
{
{ Name = "success", Type = "bool", Nilable = false },
},
},
},
Events =
{
{
Name = "ItemInteractionClose",
Type = "Event",
LiteralName = "ITEM_INTERACTION_CLOSE",
},
{
Name = "ItemInteractionItemSelectionUpdated",
Type = "Event",
LiteralName = "ITEM_INTERACTION_ITEM_SELECTION_UPDATED",
Payload =
{
{ Name = "itemLocation", Type = "table", Mixin = "ItemLocationMixin", Nilable = true },
},
},
{
Name = "ItemInteractionOpen",
Type = "Event",
LiteralName = "ITEM_INTERACTION_OPEN",
},
},
Tables =
{
{
Name = "ItemInteractionFrameType",
Type = "Enumeration",
NumValues = 1,
MinValue = 0,
MaxValue = 0,
Fields =
{
{ Name = "CleanseCorruption", Type = "ItemInteractionFrameType", EnumValue = 0 },
},
},
{
Name = "ItemInteractionFrameInfo",
Type = "Structure",
Fields =
{
{ Name = "textureKitID", Type = "number", 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 = "frameType", Type = "ItemInteractionFrameType", Nilable = false },
{ Name = "description", Type = "string", Nilable = true },
{ Name = "cost", Type = "number", Nilable = true },
{ Name = "currencyTypeId", Type = "number", Nilable = true },
},
},
},
};
APIDocumentation:AddDocumentationTable(ItemInteractionUI);
\ No newline at end of file
......@@ -6,6 +6,16 @@ local MailInfo =
Functions =
{
{
Name = "CanCheckInbox",
Type = "Function",
Returns =
{
{ Name = "canCheckInbox", Type = "bool", Nilable = false },
{ Name = "secondsUntilAllowed", Type = "number", Nilable = false },
},
},
{
Name = "HasInboxMoney",
Type = "Function",
......
......@@ -5,6 +5,105 @@ local Unit =
Functions =
{
{
Name = "GetUnitPowerBarInfo",
Type = "Function",
Arguments =
{
{ Name = "unitToken", Type = "string", Nilable = false },
},
Returns =
{
{ Name = "info", Type = "UnitPowerBarInfo", Nilable = false },
},
},
{
Name = "GetUnitPowerBarInfoByID",
Type = "Function",
Arguments =
{
{ Name = "barID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "info", Type = "UnitPowerBarInfo", Nilable = false },
},
},
{
Name = "GetUnitPowerBarStrings",
Type = "Function",
Arguments =
{
{ Name = "unitToken", Type = "string", Nilable = false },
},
Returns =
{
{ Name = "name", Type = "string", Nilable = true },
{ Name = "tooltip", Type = "string", Nilable = true },
{ Name = "cost", Type = "string", Nilable = true },
},
},
{
Name = "GetUnitPowerBarStringsByID",
Type = "Function",
Arguments =
{
{ Name = "barID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "name", Type = "string", Nilable = true },
{ Name = "tooltip", Type = "string", Nilable = true },
{ Name = "cost", Type = "string", Nilable = true },
},
},
{
Name = "GetUnitPowerBarTextureInfo",
Type = "Function",
Arguments =
{
{ Name = "unitToken", Type = "string", Nilable = false },
{ Name = "textureIndex", Type = "number", Nilable = false },
{ Name = "timerIndex", Type = "number", Nilable = true },
},
Returns =
{
{ Name = "texture", Type = "number", Nilable = false },
{ 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 = "GetUnitPowerBarTextureInfoByID",
Type = "Function",
Arguments =
{
{ Name = "barID", Type = "number", Nilable = false },
{ Name = "textureIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "texture", Type = "number", Nilable = false },
{ 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 = "PlayerVehicleHasComboPoints",
Type = "Function",
......@@ -167,6 +266,20 @@ local Unit =
{ Name = "power", Type = "number", Nilable = false },
},
},
{
Name = "UnitPowerBarID",
Type = "Function",
Arguments =
{
{ Name = "unitToken", Type = "string", Nilable = false },
},
Returns =
{
{ Name = "barID", Type = "number", Nilable = false },
},
},
{
Name = "UnitPowerDisplayMod",
Type = "Function",
......@@ -1277,6 +1390,29 @@ local Unit =
{ Name = "OrbCarrierPurple", Type = "PvpUnitClassification", EnumValue = 10 },
},
},
{
Name = "UnitPowerBarInfo",
Type = "Structure",
Fields =
{
{ Name = "ID", Type = "number", Nilable = false },
{ Name = "barType", Type = "number", Nilable = false },
{ Name = "minPower", Type = "number", Nilable = false },
{ Name = "startInset", Type = "number", Nilable = false },
{ Name = "endInset", Type = "number", Nilable = false },
{ Name = "smooth", Type = "bool", Nilable = false },
{ Name = "hideFromOthers", Type = "bool", Nilable = false },
{ Name = "showOnRaid", Type = "bool", Nilable = false },
{ Name = "opaqueSpark", Type = "bool", Nilable = false },
{ Name = "opaqueFlash", Type = "bool", Nilable = false },
{ Name = "anchorTop", Type = "bool", Nilable = false },
{ Name = "forcePercentage", Type = "bool", Nilable = false },
{ Name = "sparkUnderFrame", Type = "bool", Nilable = false },
{ Name = "flashAtMinPower", Type = "bool", Nilable = false },
{ Name = "fractionalCounter", Type = "bool", Nilable = false },
{ Name = "animateNumbers", Type = "bool", Nilable = false },
},
},
},
};
......
......@@ -3653,13 +3653,15 @@ function AchievementFrame_FindDisplayedAchievement(baseAchievementID)
end
function AchievementFrame_HideSearchPreview()
AchievementFrame.searchPreviewContainer:Hide();
local searchPreviewContainer = AchievementFrame.searchPreviewContainer;
local searchPreviews = searchPreviewContainer.searchPreviews;
searchPreviewContainer:Hide();
for index = 1, ACHIEVEMENT_FRAME_NUM_SEARCH_PREVIEWS do
AchievementFrame.searchPreview[index]:Hide();
searchPreviews[index]:Hide();
end
AchievementFrame.showAllSearchResults:Hide();
searchPreviewContainer.showAllSearchResults:Hide();
AchievementFrame.searchProgressBar:Hide();
end
......@@ -3696,15 +3698,17 @@ function AchievementFrameSearchBox_OnUpdate (self, elapsed)
if ( AchievementFrame.searchProgressBar:GetScript("OnUpdate") == nil ) then
AchievementFrame.searchProgressBar:SetScript("OnUpdate", AchievementFrameSearchProgressBar_OnUpdate);
local searchPreviewContainer = AchievementFrame.searchPreviewContainer;
local searchPreviews = searchPreviewContainer.searchPreviews;
for index = 1, ACHIEVEMENT_FRAME_NUM_SEARCH_PREVIEWS do
AchievementFrame.searchPreview[index]:Hide();
searchPreviews[index]:Hide();
end
AchievementFrame.showAllSearchResults:Hide();
searchPreviewContainer.showAllSearchResults:Hide();
AchievementFrame.searchPreviewContainer.borderAnchor:SetPoint("BOTTOM", 0, -5);
AchievementFrame.searchPreviewContainer.background:Show();
AchievementFrame.searchPreviewContainer:Show();
searchPreviewContainer.borderAnchor:SetPoint("BOTTOM", 0, -5);
searchPreviewContainer.background:Show();
searchPreviewContainer:Show();
AchievementFrame.searchProgressBar:Show();
return;
......@@ -3737,9 +3741,11 @@ function AchievementFrame_ShowSearchPreviewResults()
AchievementFrame_SetSearchPreviewSelection(1);
end
local searchPreviewContainer = AchievementFrame.searchPreviewContainer;
local searchPreviews = searchPreviewContainer.searchPreviews;
local lastButton;
for index = 1, ACHIEVEMENT_FRAME_NUM_SEARCH_PREVIEWS do
local searchPreview = AchievementFrame.searchPreview[index];
local searchPreview = searchPreviews[index];
if ( index <= numResults ) then
local achievementID = GetFilteredAchievementID(index);
local _, name, _, _, _, _, _, description, _, icon, _, _, _, _ = GetAchievementInfo(achievementID);
......@@ -3755,19 +3761,19 @@ function AchievementFrame_ShowSearchPreviewResults()
end
if ( numResults > 5 ) then
AchievementFrame.showAllSearchResults:Show();
lastButton = AchievementFrame.showAllSearchResults;
AchievementFrame.showAllSearchResults.text:SetText(string.format(ENCOUNTER_JOURNAL_SHOW_SEARCH_RESULTS, numResults));
searchPreviewContainer.showAllSearchResults:Show();
lastButton = searchPreviewContainer.showAllSearchResults;
searchPreviewContainer.showAllSearchResults.text:SetText(string.format(ENCOUNTER_JOURNAL_SHOW_SEARCH_RESULTS, numResults));
else
AchievementFrame.showAllSearchResults:Hide();
searchPreviewContainer.showAllSearchResults:Hide();
end
if (lastButton) then
AchievementFrame.searchPreviewContainer.borderAnchor:SetPoint("BOTTOM", lastButton, "BOTTOM", 0, -5);
AchievementFrame.searchPreviewContainer.background:Hide();
AchievementFrame.searchPreviewContainer:Show();