Commit 4a7b23b5 authored by TOM_RUS's avatar TOM_RUS

WOW-35854patch9.0.2_Beta

parent 48c46ad8
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
...@@ -90,6 +90,7 @@ local AreaPoiInfo = ...@@ -90,6 +90,7 @@ local AreaPoiInfo =
{ Name = "textureIndex", Type = "number", Nilable = true }, { Name = "textureIndex", Type = "number", Nilable = true },
{ Name = "widgetSetID", Type = "number", Nilable = true }, { Name = "widgetSetID", Type = "number", Nilable = true },
{ Name = "atlasName", Type = "string", Nilable = true }, { Name = "atlasName", Type = "string", Nilable = true },
{ Name = "uiTextureKit", Type = "string", Nilable = true },
}, },
}, },
}, },
......
...@@ -59,6 +59,15 @@ local BarberShop = ...@@ -59,6 +59,15 @@ local BarberShop =
{ Name = "cost", Type = "number", Nilable = false }, { Name = "cost", Type = "number", Nilable = false },
}, },
}, },
{
Name = "HasAnyChanges",
Type = "Function",
Returns =
{
{ Name = "hasChanges", Type = "bool", Nilable = false },
},
},
{ {
Name = "IsViewingAlteredForm", Name = "IsViewingAlteredForm",
Type = "Function", Type = "Function",
......
...@@ -19,6 +19,7 @@ AdventureJournalDocumentation.lua ...@@ -19,6 +19,7 @@ AdventureJournalDocumentation.lua
AdventureMapDocumentation.lua AdventureMapDocumentation.lua
AlliedRacesFrameDocumentation.lua AlliedRacesFrameDocumentation.lua
AnimaDiversionUIDocumentation.lua AnimaDiversionUIDocumentation.lua
ArdenwealdGardeningDocumentation.lua
AreaPoiInfoDocumentation.lua AreaPoiInfoDocumentation.lua
ArtifactUIDocumentation.lua ArtifactUIDocumentation.lua
AuctionHouseDocumentation.lua AuctionHouseDocumentation.lua
......
...@@ -5,13 +5,14 @@ local ChatConstants = ...@@ -5,13 +5,14 @@ local ChatConstants =
{ {
Name = "ChatChannelRuleset", Name = "ChatChannelRuleset",
Type = "Enumeration", Type = "Enumeration",
NumValues = 2, NumValues = 3,
MinValue = 0, MinValue = 0,
MaxValue = 1, MaxValue = 2,
Fields = Fields =
{ {
{ Name = "None", Type = "ChatChannelRuleset", EnumValue = 0 }, { Name = "None", Type = "ChatChannelRuleset", EnumValue = 0 },
{ Name = "Mentor", Type = "ChatChannelRuleset", EnumValue = 1 }, { Name = "Mentor", Type = "ChatChannelRuleset", EnumValue = 1 },
{ Name = "Disabled", Type = "ChatChannelRuleset", EnumValue = 2 },
}, },
}, },
{ {
......
...@@ -52,6 +52,20 @@ local ChatInfo = ...@@ -52,6 +52,20 @@ local ChatInfo =
{ Name = "ruleset", Type = "ChatChannelRuleset", Nilable = false }, { 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", Name = "GetChannelShortcutForChannelID",
Type = "Function", Type = "Function",
......
...@@ -6,6 +6,15 @@ local CovenantSanctum = ...@@ -6,6 +6,15 @@ local CovenantSanctum =
Functions = Functions =
{ {
{
Name = "CanDepositAnima",
Type = "Function",
Returns =
{
{ Name = "canDeposit", Type = "bool", Nilable = false },
},
},
{ {
Name = "DepositAnima", Name = "DepositAnima",
Type = "Function", Type = "Function",
...@@ -46,6 +55,12 @@ local CovenantSanctum = ...@@ -46,6 +55,12 @@ local CovenantSanctum =
Name = "GetRenownMilestones", Name = "GetRenownMilestones",
Type = "Function", Type = "Function",
Arguments =
{
{ Name = "covenantID", Type = "number", Nilable = false },
{ Name = "renownLevel", Type = "number", Nilable = false },
},
Returns = Returns =
{ {
{ Name = "milestones", Type = "table", InnerType = "CovenantSanctumRenownMilestoneInfo", Nilable = false }, { Name = "milestones", Type = "table", InnerType = "CovenantSanctumRenownMilestoneInfo", Nilable = false },
...@@ -57,7 +72,8 @@ local CovenantSanctum = ...@@ -57,7 +72,8 @@ local CovenantSanctum =
Arguments = Arguments =
{ {
{ Name = "level", Type = "number", Nilable = false }, { Name = "covenantID", Type = "number", Nilable = false },
{ Name = "renownLevel", Type = "number", Nilable = false },
}, },
Returns = Returns =
...@@ -97,6 +113,16 @@ local CovenantSanctum = ...@@ -97,6 +113,16 @@ local CovenantSanctum =
Type = "Event", Type = "Event",
LiteralName = "COVENANT_SANCTUM_INTERACTION_STARTED", 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 = Tables =
...@@ -138,6 +164,7 @@ local CovenantSanctum = ...@@ -138,6 +164,7 @@ local CovenantSanctum =
{ Name = "icon", Type = "number", Nilable = true }, { Name = "icon", Type = "number", Nilable = true },
{ Name = "name", Type = "string", Nilable = true }, { Name = "name", Type = "string", Nilable = true },
{ Name = "description", Type = "string", Nilable = true }, { Name = "description", Type = "string", Nilable = true },
{ Name = "toastDescription", Type = "string", Nilable = true },
}, },
}, },
}, },
......
...@@ -804,6 +804,17 @@ local GarrisonInfo = ...@@ -804,6 +804,17 @@ local GarrisonInfo =
{ Name = "garrisonTalentTreeID", Type = "number", Nilable = false }, { 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", Name = "GarrisonTalentUpdate",
Type = "Event", Type = "Event",
......
...@@ -6,6 +6,20 @@ local Map = ...@@ -6,6 +6,20 @@ local Map =
Functions = Functions =
{ {
{
Name = "CanSetUserWaypointOnMap",
Type = "Function",
Arguments =
{
{ Name = "uiMapID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "canSet", Type = "bool", Nilable = false },
},
},
{ {
Name = "ClearUserWaypoint", Name = "ClearUserWaypoint",
Type = "Function", Type = "Function",
......
...@@ -15,6 +15,15 @@ local PlayerMentorship = ...@@ -15,6 +15,15 @@ local PlayerMentorship =
{ Name = "level", Type = "number", Nilable = true }, { Name = "level", Type = "number", Nilable = true },
}, },
}, },
{
Name = "GetMentorOptionalAchievementIDs",
Type = "Function",
Returns =
{
{ Name = "achievementIDs", Type = "table", InnerType = "number", Nilable = false },
},
},
{ {
Name = "GetMentorshipStatus", Name = "GetMentorshipStatus",
Type = "Function", Type = "Function",
......
...@@ -281,6 +281,24 @@ local QuestLog = ...@@ -281,6 +281,24 @@ local QuestLog =
{ Name = "numQuestWatches", Type = "number", Nilable = false }, { 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", Name = "GetQuestDetailsTheme",
Type = "Function", Type = "Function",
......
...@@ -20,6 +20,21 @@ local Spell = ...@@ -20,6 +20,21 @@ local Spell =
{ Name = "spellExists", Type = "bool", Nilable = false }, { 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", Name = "IsSpellDataCached",
Type = "Function", Type = "Function",
......
...@@ -6,6 +6,24 @@ local StableInfo = ...@@ -6,6 +6,24 @@ local StableInfo =
Functions = Functions =
{ {
{
Name = "GetNumActivePets",
Type = "Function",
Returns =
{
{ Name = "numActivePets", Type = "number", Nilable = false },
},
},
{
Name = "GetNumStablePets",
Type = "Function",
Returns =
{
{ Name = "numStablePets", Type = "number", Nilable = false },
},
},
}, },
Events = Events =
......
...@@ -13,6 +13,7 @@ local TransmogItems = ...@@ -13,6 +13,7 @@ local TransmogItems =
Arguments = Arguments =
{ {
{ Name = "appearanceID", Type = "number", Nilable = false }, { Name = "appearanceID", Type = "number", Nilable = false },
{ Name = "categoryID", Type = "number", Nilable = true },
}, },
Returns = Returns =
......
...@@ -932,6 +932,15 @@ local Unit = ...@@ -932,6 +932,15 @@ local Unit =
{ Name = "isConnected", Type = "bool", Nilable = false }, { Name = "isConnected", Type = "bool", Nilable = false },
}, },
}, },
{
Name = "UnitCtrOptions",
Type = "Event",
LiteralName = "UNIT_CTR_OPTIONS",
Payload =
{
{ Name = "unitTarget", Type = "string", Nilable = false },
},
},
{ {
Name = "UnitDamage", Name = "UnitDamage",
Type = "Event", Type = "Event",
......
...@@ -84,14 +84,15 @@ local VignetteInfo = ...@@ -84,14 +84,15 @@ local VignetteInfo =
{ {
Name = "VignetteType", Name = "VignetteType",
Type = "Enumeration", Type = "Enumeration",
NumValues = 3, NumValues = 4,
MinValue = 0, MinValue = 0,
MaxValue = 2, MaxValue = 3,
Fields = Fields =
{ {
{ Name = "Normal", Type = "VignetteType", EnumValue = 0 }, { Name = "Normal", Type = "VignetteType", EnumValue = 0 },
{ Name = "PvPBounty", Type = "VignetteType", EnumValue = 1 }, { Name = "PvPBounty", Type = "VignetteType", EnumValue = 1 },
{ Name = "Torghast", Type = "VignetteType", EnumValue = 2 }, { Name = "Torghast", Type = "VignetteType", EnumValue = 2 },
{ Name = "Treasure", Type = "VignetteType", EnumValue = 3 },
}, },
}, },
{ {
......
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
## Title: Blizzard Ardenweald Gardening
## Author: Blizzard Entertainment
## LoadOnDemand: 1
Blizzard_ArdenwealdGardening.xml
\ No newline at end of file
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Script file="Blizzard_ArdenwealdGardening.lua"/>
<Frame name="ArdenwealdGardeningPanelTemplate" virtual="true">
<Size x="350" y="200"/>
<Layers>
<Layer level="Background" textureSubLevel="1">
<Texture atlas="shadowlands-landingpage-divider" useAtlasSize="true">
<Anchors>
<Anchor point="TOPLEFT"/>
</Anchors>
</Texture>
</Layer>
<Layer level="Background" textureSubLevel="2">
<Texture atlas="queensconservatory-bg" useAtlasSize="true" alpha=".4">
<Anchors>
<Anchor point="CENTER" y="10"/>
</Anchors>
</Texture>
</Layer>
<Layer level="Overlay">
<FontString parentKey="Label" text="GARDENWEALD_LANDING_HEADER" inherits="GameFontHighlightLarge">
<Anchors>
<Anchor point="TOPLEFT" relativeKey="$parent.Background" x="45" y="-14"/>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="ArdenwealdGardeningButtonTemplate" mixin="ArdenwealdGardeningButtonMixin" enableMouse="true">