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 =
{ Name = "textureIndex", Type = "number", Nilable = true },
{ Name = "widgetSetID", Type = "number", Nilable = true },
{ Name = "atlasName", Type = "string", Nilable = true },
{ Name = "uiTextureKit", Type = "string", Nilable = true },
},
},
},
......
......@@ -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",
......
......@@ -19,6 +19,7 @@ AdventureJournalDocumentation.lua
AdventureMapDocumentation.lua
AlliedRacesFrameDocumentation.lua
AnimaDiversionUIDocumentation.lua
ArdenwealdGardeningDocumentation.lua
AreaPoiInfoDocumentation.lua
ArtifactUIDocumentation.lua
AuctionHouseDocumentation.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 },
},
},
{
......
......@@ -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",
......
......@@ -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 },
},
},
},
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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",
......
......@@ -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 =
......
......@@ -13,6 +13,7 @@ local TransmogItems =
Arguments =
{
{ Name = "appearanceID", Type = "number", Nilable = false },
{ Name = "categoryID", Type = "number", Nilable = true },
},
Returns =
......
......@@ -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",
......
......@@ -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 },
},
},
{
......
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">
<Size x="79" y="79"/>
<Anchors>
<Anchor point="CENTER" x="9" y="25"/>
</Anchors>
<Layers>
<Layer level="Background" textureSubLevel="1">
<Texture parentKey="Icon" file="Interface/Icons/Sanctum_Features_Gardenweald">
<Size x="64" y="64"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
<Layer level="Background" textureSubLevel="1">
<Texture parentKey="Icon2" file="Interface/Icons/Sanctum_Features_Gardenweald" alphaMode="ADD" alpha=".18" hidden="true">
<Size x="64" y="64"/>
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
</Texture>
</Layer>
<Layer level="Overlay" textureSubLevel="1">
<Texture parentKey="Border" atlas="queensconservatory-seedborder" useAtlasSize="true"/>
</Layer>
<Layer level="Overlay" textureSubLevel="2">
<Texture parentKey="Highlight" atlas="queensconservatory-seedborder" useAtlasSize="true" alphaMode="ADD" alpha=".50" hidden="true">
<Size x="79" y="79"/>
</Texture>
<FontString parentKey="Label" inherits="SystemFont_Shadow_Med1">
<Anchors>
<Anchor point="LEFT" x="24"/>
</Anchors>
</FontString>
<MaskTexture atlas="CircleMaskScalable" hWrapMode="CLAMPTOBLACKADDITIVE" vWrapMode="CLAMPTOBLACKADDITIVE">
<Size x="65" y="65"/>
<Anchors>
<Anchor point="CENTER" relativeKey="$parent.Icon"/>
</Anchors>
<MaskedTextures>
<MaskedTexture childKey="Icon"/>
<MaskedTexture childKey="Icon2"/>
</MaskedTextures>
</MaskTexture>
</Layer>
</Layers>
<Scripts>
<OnEnter method="OnEnter"/>
<OnLeave method="OnLeave"/>
</Scripts>
</Button>
</Frames>
</Frame>
</Ui>
......@@ -35,6 +35,8 @@ function BarberShopMixin:OnShow()
UIErrorsFrame:ClearAllPoints();
UIErrorsFrame:SetPoint("TOP", self.Sexes, "BOTTOM", 0, 0);
ActionStatus:SetParent(self);
self:UpdateSex();
local reset = true;
......@@ -59,6 +61,7 @@ function BarberShopMixin:UpdateSex()
end
self.Sexes:MarkDirty();
self.Sexes:Show();
end
function BarberShopMixin:OnHide()
......@@ -66,13 +69,16 @@ function BarberShopMixin:OnHide()
UIErrorsFrame:SetFrameStrata(