diff --git a/Interface/AddOns/Blizzard_APIDocumentation/ArdenwealdGardeningDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/ArdenwealdGardeningDocumentation.lua new file mode 100644 index 0000000000000000000000000000000000000000..3b9c0b16b7c7f2d499efbd8c872e4371359e505c --- /dev/null +++ b/Interface/AddOns/Blizzard_APIDocumentation/ArdenwealdGardeningDocumentation.lua @@ -0,0 +1,48 @@ +local ArdenwealdGardening = +{ + Name = "ArdenwealdGardening", + Type = "System", + Namespace = "C_ArdenwealdGardening", + + Functions = + { + { + Name = "GetGardenData", + Type = "Function", + + Returns = + { + { Name = "data", Type = "ArdenwealdGardenData", Nilable = false }, + }, + }, + { + Name = "IsGardenAccessible", + Type = "Function", + + Returns = + { + { Name = "accessible", Type = "bool", Nilable = false }, + }, + }, + }, + + Events = + { + }, + + Tables = + { + { + Name = "ArdenwealdGardenData", + Type = "Structure", + Fields = + { + { Name = "active", Type = "number", Nilable = false }, + { Name = "ready", Type = "number", Nilable = false }, + { Name = "remainingSeconds", Type = "number", Nilable = false }, + }, + }, + }, +}; + +APIDocumentation:AddDocumentationTable(ArdenwealdGardening); \ No newline at end of file diff --git a/Interface/AddOns/Blizzard_APIDocumentation/AreaPoiInfoDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/AreaPoiInfoDocumentation.lua index bd50861363d02035296e1624e5c070d257485de5..d1f84e830842d99085c640102ca53508d694e887 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/AreaPoiInfoDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/AreaPoiInfoDocumentation.lua @@ -90,6 +90,7 @@ local AreaPoiInfo = { Name = "textureIndex", Type = "number", Nilable = true }, { Name = "widgetSetID", Type = "number", Nilable = true }, { Name = "atlasName", Type = "string", Nilable = true }, + { Name = "uiTextureKit", Type = "string", Nilable = true }, }, }, }, diff --git a/Interface/AddOns/Blizzard_APIDocumentation/BarberShopDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/BarberShopDocumentation.lua index e49e8619e5965c75908137633b97a1bb7a240d99..43f9556e84484e7740694d7ee13dd7f01dd275e2 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/BarberShopDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/BarberShopDocumentation.lua @@ -59,6 +59,15 @@ local BarberShop = { Name = "cost", Type = "number", Nilable = false }, }, }, + { + Name = "HasAnyChanges", + Type = "Function", + + Returns = + { + { Name = "hasChanges", Type = "bool", Nilable = false }, + }, + }, { Name = "IsViewingAlteredForm", Type = "Function", diff --git a/Interface/AddOns/Blizzard_APIDocumentation/Blizzard_APIDocumentation.toc b/Interface/AddOns/Blizzard_APIDocumentation/Blizzard_APIDocumentation.toc index 9c792088b1c4c0ca85f6e6fd983ec0c73f981d70..296b54e7b59538e271227d1bfea0fb911a2293c6 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/Blizzard_APIDocumentation.toc +++ b/Interface/AddOns/Blizzard_APIDocumentation/Blizzard_APIDocumentation.toc @@ -19,6 +19,7 @@ AdventureJournalDocumentation.lua AdventureMapDocumentation.lua AlliedRacesFrameDocumentation.lua AnimaDiversionUIDocumentation.lua +ArdenwealdGardeningDocumentation.lua AreaPoiInfoDocumentation.lua ArtifactUIDocumentation.lua AuctionHouseDocumentation.lua diff --git a/Interface/AddOns/Blizzard_APIDocumentation/ChatConstantsDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/ChatConstantsDocumentation.lua index b918b05c920f132f2e3c8a0e13f9b20a0430fa71..f71a5223e313a287a822629de4fc1ea7f8f7ef78 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/ChatConstantsDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/ChatConstantsDocumentation.lua @@ -5,13 +5,14 @@ local ChatConstants = { Name = "ChatChannelRuleset", Type = "Enumeration", - NumValues = 2, + NumValues = 3, MinValue = 0, - MaxValue = 1, + MaxValue = 2, Fields = { { Name = "None", Type = "ChatChannelRuleset", EnumValue = 0 }, { Name = "Mentor", Type = "ChatChannelRuleset", EnumValue = 1 }, + { Name = "Disabled", Type = "ChatChannelRuleset", EnumValue = 2 }, }, }, { diff --git a/Interface/AddOns/Blizzard_APIDocumentation/ChatInfoDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/ChatInfoDocumentation.lua index 1b94948a96d67066f3023ffc1c61a3cdd98ec2c2..8e379236f55c8dfeaf3f505ef1285ebb78e267aa 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/ChatInfoDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/ChatInfoDocumentation.lua @@ -52,6 +52,20 @@ local ChatInfo = { Name = "ruleset", Type = "ChatChannelRuleset", Nilable = false }, }, }, + { + Name = "GetChannelShortcut", + Type = "Function", + + Arguments = + { + { Name = "channelIndex", Type = "number", Nilable = false }, + }, + + Returns = + { + { Name = "shortcut", Type = "string", Nilable = false }, + }, + }, { Name = "GetChannelShortcutForChannelID", Type = "Function", diff --git a/Interface/AddOns/Blizzard_APIDocumentation/CovenantSanctumDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/CovenantSanctumDocumentation.lua index 8380cec933c3e00a6f68eefd50f4ff46dab4060d..d61fb87d0eaba217718c67a61fe9f7a9ba98a737 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/CovenantSanctumDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/CovenantSanctumDocumentation.lua @@ -6,6 +6,15 @@ local CovenantSanctum = Functions = { + { + Name = "CanDepositAnima", + Type = "Function", + + Returns = + { + { Name = "canDeposit", Type = "bool", Nilable = false }, + }, + }, { Name = "DepositAnima", Type = "Function", @@ -46,6 +55,12 @@ local CovenantSanctum = Name = "GetRenownMilestones", Type = "Function", + Arguments = + { + { Name = "covenantID", Type = "number", Nilable = false }, + { Name = "renownLevel", Type = "number", Nilable = false }, + }, + Returns = { { Name = "milestones", Type = "table", InnerType = "CovenantSanctumRenownMilestoneInfo", Nilable = false }, @@ -57,7 +72,8 @@ local CovenantSanctum = Arguments = { - { Name = "level", Type = "number", Nilable = false }, + { Name = "covenantID", Type = "number", Nilable = false }, + { Name = "renownLevel", Type = "number", Nilable = false }, }, Returns = @@ -97,6 +113,16 @@ local CovenantSanctum = Type = "Event", LiteralName = "COVENANT_SANCTUM_INTERACTION_STARTED", }, + { + Name = "CovenantSanctumRenownLevelChanged", + Type = "Event", + LiteralName = "COVENANT_SANCTUM_RENOWN_LEVEL_CHANGED", + Payload = + { + { Name = "newRenownLevel", Type = "number", Nilable = false }, + { Name = "oldRenownLevel", Type = "number", Nilable = false }, + }, + }, }, Tables = @@ -138,6 +164,7 @@ local CovenantSanctum = { Name = "icon", Type = "number", Nilable = true }, { Name = "name", Type = "string", Nilable = true }, { Name = "description", Type = "string", Nilable = true }, + { Name = "toastDescription", Type = "string", Nilable = true }, }, }, }, diff --git a/Interface/AddOns/Blizzard_APIDocumentation/GarrisonInfoDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/GarrisonInfoDocumentation.lua index d70ee0a8f3f1169bb509a79019a3f34c7e632b9f..2152123af6ddce728749203db50a22ba97c5b154 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/GarrisonInfoDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/GarrisonInfoDocumentation.lua @@ -804,6 +804,17 @@ local GarrisonInfo = { Name = "garrisonTalentTreeID", Type = "number", Nilable = false }, }, }, + { + Name = "GarrisonTalentResearchStarted", + Type = "Event", + LiteralName = "GARRISON_TALENT_RESEARCH_STARTED", + Payload = + { + { Name = "garrTypeID", Type = "number", Nilable = false }, + { Name = "garrisonTalentTreeID", Type = "number", Nilable = false }, + { Name = "garrTalentID", Type = "number", Nilable = false }, + }, + }, { Name = "GarrisonTalentUpdate", Type = "Event", diff --git a/Interface/AddOns/Blizzard_APIDocumentation/MapDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/MapDocumentation.lua index 0d66eb79693ba84536e070ee5ba7e5b6c606b94a..c0e35e3d03e1303003fefbb5d79fcc64715bf8a0 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/MapDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/MapDocumentation.lua @@ -6,6 +6,20 @@ local Map = Functions = { + { + Name = "CanSetUserWaypointOnMap", + Type = "Function", + + Arguments = + { + { Name = "uiMapID", Type = "number", Nilable = false }, + }, + + Returns = + { + { Name = "canSet", Type = "bool", Nilable = false }, + }, + }, { Name = "ClearUserWaypoint", Type = "Function", diff --git a/Interface/AddOns/Blizzard_APIDocumentation/PlayerMentorshipDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/PlayerMentorshipDocumentation.lua index 25c3d367b99af22569464e10ca34758316865557..efeec24eff60c86bb92972d75b8c36ca83890de8 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/PlayerMentorshipDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/PlayerMentorshipDocumentation.lua @@ -15,6 +15,15 @@ local PlayerMentorship = { Name = "level", Type = "number", Nilable = true }, }, }, + { + Name = "GetMentorOptionalAchievementIDs", + Type = "Function", + + Returns = + { + { Name = "achievementIDs", Type = "table", InnerType = "number", Nilable = false }, + }, + }, { Name = "GetMentorshipStatus", Type = "Function", diff --git a/Interface/AddOns/Blizzard_APIDocumentation/QuestLogDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/QuestLogDocumentation.lua index 17ffc814c03f87b14d300057eac079adc1511d7c..62edd82e02bd182a4223140750bbec8690e0ae96 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/QuestLogDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/QuestLogDocumentation.lua @@ -281,6 +281,24 @@ local QuestLog = { Name = "numQuestWatches", Type = "number", Nilable = false }, }, }, + { + Name = "GetQuestAdditionalHighlights", + Type = "Function", + + Arguments = + { + { Name = "questID", Type = "number", Nilable = false }, + }, + + Returns = + { + { Name = "uiMapID", Type = "number", Nilable = false }, + { Name = "worldQuests", Type = "bool", Nilable = false }, + { Name = "worldQuestsElite", Type = "bool", Nilable = false }, + { Name = "dungeons", Type = "bool", Nilable = false }, + { Name = "treasures", Type = "bool", Nilable = false }, + }, + }, { Name = "GetQuestDetailsTheme", Type = "Function", diff --git a/Interface/AddOns/Blizzard_APIDocumentation/SpellDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/SpellDocumentation.lua index f736f1fa6dbcc3964845ab560070a8c7f65ede04..790bb134e8a37d7e20dfbcb39066956dcfa0c52b 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/SpellDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/SpellDocumentation.lua @@ -20,6 +20,21 @@ local Spell = { Name = "spellExists", Type = "bool", Nilable = false }, }, }, + { + Name = "GetMawPowerRarityStringAndBorderAtlasBySpellID", + Type = "Function", + + Arguments = + { + { Name = "spellID", Type = "number", Nilable = false }, + }, + + Returns = + { + { Name = "rarityString", Type = "string", Nilable = false }, + { Name = "rarityBorderAtlas", Type = "string", Nilable = false }, + }, + }, { Name = "IsSpellDataCached", Type = "Function", diff --git a/Interface/AddOns/Blizzard_APIDocumentation/StableInfoDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/StableInfoDocumentation.lua index 2d6fa6c04a3a383e061966dce986d920a989e0ec..e71c0e182d727d645158f56d3471d5769fe8891a 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/StableInfoDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/StableInfoDocumentation.lua @@ -6,6 +6,24 @@ local StableInfo = Functions = { + { + Name = "GetNumActivePets", + Type = "Function", + + Returns = + { + { Name = "numActivePets", Type = "number", Nilable = false }, + }, + }, + { + Name = "GetNumStablePets", + Type = "Function", + + Returns = + { + { Name = "numStablePets", Type = "number", Nilable = false }, + }, + }, }, Events = diff --git a/Interface/AddOns/Blizzard_APIDocumentation/TransmogItemsDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/TransmogItemsDocumentation.lua index 32255ea9e83235fc0e587cf0fa79a2782c50ee4d..be709f707b0a9ac425074a92cf0b516f0cc8d5fa 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/TransmogItemsDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/TransmogItemsDocumentation.lua @@ -13,6 +13,7 @@ local TransmogItems = Arguments = { { Name = "appearanceID", Type = "number", Nilable = false }, + { Name = "categoryID", Type = "number", Nilable = true }, }, Returns = diff --git a/Interface/AddOns/Blizzard_APIDocumentation/UnitDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/UnitDocumentation.lua index 713534ffafebe1f9ab0119852d4fa5c40d2ffc86..c4021396b81d6aa3b28bcec65dbb311457836d7c 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/UnitDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/UnitDocumentation.lua @@ -932,6 +932,15 @@ local Unit = { Name = "isConnected", Type = "bool", Nilable = false }, }, }, + { + Name = "UnitCtrOptions", + Type = "Event", + LiteralName = "UNIT_CTR_OPTIONS", + Payload = + { + { Name = "unitTarget", Type = "string", Nilable = false }, + }, + }, { Name = "UnitDamage", Type = "Event", diff --git a/Interface/AddOns/Blizzard_APIDocumentation/VignetteInfoDocumentation.lua b/Interface/AddOns/Blizzard_APIDocumentation/VignetteInfoDocumentation.lua index 311c7bb09a7bfbf0e2c6f54111d4560996bcafa4..64d7c85da53a16d926ddb98a9fe1821ba4e476e2 100644 --- a/Interface/AddOns/Blizzard_APIDocumentation/VignetteInfoDocumentation.lua +++ b/Interface/AddOns/Blizzard_APIDocumentation/VignetteInfoDocumentation.lua @@ -84,14 +84,15 @@ local VignetteInfo = { Name = "VignetteType", Type = "Enumeration", - NumValues = 3, + NumValues = 4, MinValue = 0, - MaxValue = 2, + MaxValue = 3, Fields = { { Name = "Normal", Type = "VignetteType", EnumValue = 0 }, { Name = "PvPBounty", Type = "VignetteType", EnumValue = 1 }, { Name = "Torghast", Type = "VignetteType", EnumValue = 2 }, + { Name = "Treasure", Type = "VignetteType", EnumValue = 3 }, }, }, { diff --git a/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.lua b/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.lua new file mode 100644 index 0000000000000000000000000000000000000000..681a9bb5497cd1337eb2356b64e7e5f60b3ce9e8 --- /dev/null +++ b/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.lua @@ -0,0 +1,51 @@ +local ArdenwealdGardeningSecondsFormatter = CreateFromMixins(SecondsFormatterMixin); +ArdenwealdGardeningSecondsFormatter:Init(SECONDS_PER_MIN, SecondsFormatter.Abbreviation.None, true, true); + +function ArdenwealdGardeningSecondsFormatter:GetDesiredUnitCount(seconds) + return 1; +end + +function ArdenwealdGardeningSecondsFormatter:GetMinInterval(seconds) + return SecondsFormatter.Interval.Minutes; +end + +ArdenwealdGardening = {} + +function ArdenwealdGardening.Create(parent) + return CreateFrame("Frame", nil, parent, "ArdenwealdGardeningPanelTemplate"); +end + +ArdenwealdGardeningButtonMixin = {} + +function ArdenwealdGardeningButtonMixin:OnEnter() + GameTooltip:SetOwner(self, "ANCHOR_RIGHT", 0, 0); + GameTooltip_SetTitle(GameTooltip, GARDENWEALD_STATUS_HEADER); + + local data = C_ArdenwealdGardening.GetGardenData(); + local hasActive = data.active > 0; + if hasActive then + local time = ArdenwealdGardeningSecondsFormatter:Format(data.remainingSeconds); + GameTooltip_AddNormalLine(GameTooltip, GARDENWEALD_STATUS_ACTIVE_COUNT:format(data.active, time)); + end + + if data.ready > 0 then + if hasActive then + GameTooltip_AddBlankLineToTooltip(GameTooltip); + end + GameTooltip_AddNormalLine(GameTooltip, GARDENWEALD_STATUS_READY_COUNT:format(data.ready)); + elseif not hasActive then + GameTooltip_AddNormalLine(GameTooltip, GARDENWEALD_STATUS_DORMANT); + end + + GameTooltip:Show(); + + self.Highlight:Show(); + self.Icon2:Show(); +end + +function ArdenwealdGardeningButtonMixin:OnLeave() + GameTooltip_Hide(); + + self.Highlight:Hide(); + self.Icon2:Hide(); +end \ No newline at end of file diff --git a/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.toc b/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.toc new file mode 100644 index 0000000000000000000000000000000000000000..4106a2aa6508d1acf5414f32b4467222b31bd3e1 --- /dev/null +++ b/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.toc @@ -0,0 +1,5 @@ +## Title: Blizzard Ardenweald Gardening +## Author: Blizzard Entertainment +## LoadOnDemand: 1 + +Blizzard_ArdenwealdGardening.xml \ No newline at end of file diff --git a/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.xml b/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.xml new file mode 100644 index 0000000000000000000000000000000000000000..15ee88edef4a24f0db1ecd4e1d3cac30c9dc153b --- /dev/null +++ b/Interface/AddOns/Blizzard_ArdenwealdGardening/Blizzard_ArdenwealdGardening.xml @@ -0,0 +1,84 @@ + +