Commit 484923d0 authored by TOM_RUS's avatar TOM_RUS

WOW-35167patch9.0.1_Beta

parent ba6cd7d2
......@@ -76,6 +76,10 @@ local AdventureJournal =
Name = "AjRefreshDisplay",
Type = "Event",
LiteralName = "AJ_REFRESH_DISPLAY",
Payload =
{
{ Name = "newAdventureNotice", Type = "bool", Nilable = false },
},
},
{
Name = "AjRewardDataReceived",
......
......@@ -6,6 +6,10 @@ local AnimaDiversionUI =
Functions =
{
{
Name = "CloseUI",
Type = "Function",
},
{
Name = "GetAnimaDiversionNodes",
Type = "Function",
......@@ -15,6 +19,15 @@ local AnimaDiversionUI =
{ Name = "animaNodes", Type = "table", InnerType = "AnimaDiversionNodeInfo", Nilable = false },
},
},
{
Name = "GetOriginPosition",
Type = "Function",
Returns =
{
{ Name = "normalizedPosition", Type = "table", Mixin = "Vector2DMixin", Nilable = true },
},
},
{
Name = "GetReinforceProgress",
Type = "Function",
......
......@@ -66,6 +66,7 @@ ExpansionDocumentation.lua
FogOfWarDocumentation.lua
FriendListDocumentation.lua
GMTicketInfoDocumentation.lua
GamePadDocumentation.lua
GarrisonInfoDocumentation.lua
GlyphInfoDocumentation.lua
GossipInfoDocumentation.lua
......@@ -193,6 +194,7 @@ ItemConstantsDocumentation.lua
ItemLocationSharedDocumentation.lua
ItemSharedDocumentation.lua
LegendaryCraftingTypesDocumentation.lua
LevelConstantsDocumentation.lua
ModelSceneDocumentation.lua
NamePlateDocumentation.lua
PetScalingConstantsDocumentation.lua
......
......@@ -6,6 +6,58 @@ local LossOfControl =
Functions =
{
{
Name = "GetActiveLossOfControlData",
Type = "Function",
Arguments =
{
{ Name = "index", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "event", Type = "LossOfControlData", Nilable = true },
},
},
{
Name = "GetActiveLossOfControlDataByUnit",
Type = "Function",
Arguments =
{
{ Name = "unitToken", Type = "string", Nilable = false },
{ Name = "index", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "event", Type = "LossOfControlData", Nilable = true },
},
},
{
Name = "GetActiveLossOfControlDataCount",
Type = "Function",
Returns =
{
{ Name = "count", Type = "number", Nilable = false },
},
},
{
Name = "GetActiveLossOfControlDataCountByUnit",
Type = "Function",
Arguments =
{
{ Name = "unitToken", Type = "string", Nilable = false },
},
Returns =
{
{ Name = "count", Type = "number", Nilable = false },
},
},
},
Events =
......@@ -19,6 +71,25 @@ local LossOfControl =
{ Name = "effectIndex", Type = "number", Nilable = false },
},
},
{
Name = "LossOfControlCommentatorAdded",
Type = "Event",
LiteralName = "LOSS_OF_CONTROL_COMMENTATOR_ADDED",
Payload =
{
{ Name = "victim", Type = "string", Nilable = false },
{ Name = "effectIndex", Type = "number", Nilable = false },
},
},
{
Name = "LossOfControlCommentatorUpdate",
Type = "Event",
LiteralName = "LOSS_OF_CONTROL_COMMENTATOR_UPDATE",
Payload =
{
{ Name = "victim", Type = "string", Nilable = false },
},
},
{
Name = "LossOfControlUpdate",
Type = "Event",
......@@ -38,6 +109,23 @@ local LossOfControl =
Tables =
{
{
Name = "LossOfControlData",
Type = "Structure",
Fields =
{
{ Name = "locType", Type = "string", Nilable = false },
{ Name = "spellID", Type = "number", Nilable = false },
{ Name = "displayText", Type = "string", Nilable = false },
{ Name = "iconTexture", Type = "number", Nilable = false },
{ Name = "startTime", Type = "number", Nilable = true },
{ Name = "timeRemaining", Type = "number", Nilable = true },
{ Name = "duration", Type = "number", Nilable = true },
{ Name = "lockoutSchool", Type = "number", Nilable = false },
{ Name = "priority", Type = "number", Nilable = false },
{ Name = "displayType", Type = "number", Nilable = false },
},
},
},
};
......
......@@ -319,15 +319,6 @@ local MountJournal =
{ Name = "isApplied", Type = "bool", Nilable = false },
},
},
{
Name = "IsMountEquipmentUnlocked",
Type = "Function",
Returns =
{
{ Name = "isUnlocked", Type = "bool", Nilable = false },
},
},
{
Name = "IsSourceChecked",
Type = "Function",
......
......@@ -6,6 +6,26 @@ local PlayerInfo =
Functions =
{
{
Name = "CanPlayerUseAreaLoot",
Type = "Function",
Returns =
{
{ Name = "canUseAreaLoot", Type = "bool", Nilable = false },
{ Name = "failureReason", Type = "string", Nilable = false },
},
},
{
Name = "CanPlayerUseMountEquipment",
Type = "Function",
Returns =
{
{ Name = "canUseMountEquipment", Type = "bool", Nilable = false },
{ Name = "failureReason", Type = "string", Nilable = false },
},
},
{
Name = "GetContentDifficultyCreatureForPlayer",
Type = "Function",
......
......@@ -6,10 +6,6 @@ local PlayerMentorship =
Functions =
{
{
Name = "ApplyForMentorshipStatus",
Type = "Function",
},
{
Name = "GetMentorshipStatus",
Type = "Function",
......@@ -24,23 +20,10 @@ local PlayerMentorship =
{ Name = "status", Type = "PlayerMentorshipStatus", Nilable = false },
},
},
{
Name = "RelinquishMentorshipStatus",
Type = "Function",
},
},
Events =
{
{
Name = "MentorshipApplicationResult",
Type = "Event",
LiteralName = "MENTORSHIP_APPLICATION_RESULT",
Payload =
{
{ Name = "result", Type = "PlayerMentorshipApplicationResult", Nilable = false },
},
},
},
Tables =
......
......@@ -51,6 +51,15 @@ local QuestSession =
{ Name = "command", Type = "QuestSessionCommand", Nilable = false },
},
},
{
Name = "GetProposedMaxLevelForSession",
Type = "Function",
Returns =
{
{ Name = "proposedMaxLevel", Type = "number", Nilable = false },
},
},
{
Name = "GetSessionBeginDetails",
Type = "Function",
......
......@@ -62,6 +62,15 @@ local Soulbinds =
{ Name = "spellID", Type = "number", Nilable = false },
},
},
{
Name = "GetFoundationIndex",
Type = "Function",
Returns =
{
{ Name = "index", Type = "number", Nilable = false },
},
},
{
Name = "GetItemConduitType",
Type = "Function",
......@@ -144,7 +153,7 @@ local Soulbinds =
Returns =
{
{ Name = "result", Type = "bool", Nilable = false },
{ Name = "result", Type = "SoulbindConduitInstallResult", Nilable = false },
},
},
{
......@@ -188,6 +197,15 @@ local Soulbinds =
{ Name = "soulbindID", Type = "number", Nilable = false },
},
},
{
Name = "SetFoundationIndex",
Type = "Function",
Arguments =
{
{ Name = "index", Type = "number", Nilable = false },
},
},
{
Name = "UninstallConduitInSlot",
Type = "Function",
......
......@@ -5,14 +5,15 @@ local SuperTrackManagerShared =
{
Name = "SuperTrackingType",
Type = "Enumeration",
NumValues = 3,
NumValues = 4,
MinValue = 0,
MaxValue = 2,
MaxValue = 3,
Fields =
{
{ Name = "Quest", Type = "SuperTrackingType", EnumValue = 0 },
{ Name = "UserWaypoint", Type = "SuperTrackingType", EnumValue = 1 },
{ Name = "Corpse", Type = "SuperTrackingType", EnumValue = 2 },
{ Name = "Scenario", Type = "SuperTrackingType", EnumValue = 3 },
},
},
},
......
......@@ -71,6 +71,20 @@ local UIWidgetManager =
{ Name = "widgetInfo", Type = "CaptureZoneVisualizationInfo", Nilable = true },
},
},
{
Name = "GetDiscreteProgressStepsVisualizationInfo",
Type = "Function",
Arguments =
{
{ Name = "widgetID", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "widgetInfo", Type = "DiscreteProgressStepsVisualizationInfo", Nilable = true },
},
},
{
Name = "GetDoubleIconAndTextWidgetVisualizationInfo",
Type = "Function",
......@@ -745,6 +759,29 @@ local UIWidgetManager =
{ Name = "layoutDirection", Type = "UIWidgetLayoutDirection", Nilable = false },
},
},
{
Name = "DiscreteProgressStepsVisualizationInfo",
Type = "Structure",
Fields =
{
{ Name = "shownState", Type = "WidgetShownState", Nilable = false },
{ Name = "tooltip", Type = "string", Nilable = false },
{ Name = "progressMin", Type = "number", Nilable = false },
{ Name = "progressMax", Type = "number", Nilable = false },
{ Name = "progressVal", Type = "number", Nilable = false },
{ Name = "numSteps", Type = "number", Nilable = false },
{ Name = "widgetSizeSetting", Type = "number", Nilable = false },
{ Name = "textureKit", Type = "string", Nilable = false },
{ Name = "frameTextureKit", Type = "string", Nilable = false },
{ Name = "hasTimer", Type = "bool", Nilable = false },
{ Name = "orderIndex", Type = "number", Nilable = false },
{ Name = "widgetTag", Type = "string", Nilable = false },
{ Name = "inAnimType", Type = "WidgetAnimationType", Nilable = false },
{ Name = "outAnimType", Type = "WidgetAnimationType", Nilable = false },
{ Name = "widgetScale", Type = "UIWidgetScale", Nilable = false },
{ Name = "layoutDirection", Type = "UIWidgetLayoutDirection", Nilable = false },
},
},
{
Name = "DoubleIconAndTextWidgetVisualizationInfo",
Type = "Structure",
......
......@@ -5,14 +5,15 @@ local UIWidgetManagerShared =
{
Name = "UIWidgetLayoutDirection",
Type = "Enumeration",
NumValues = 3,
NumValues = 4,
MinValue = 0,
MaxValue = 2,
MaxValue = 3,
Fields =
{
{ Name = "Default", Type = "UIWidgetLayoutDirection", EnumValue = 0 },
{ Name = "Vertical", Type = "UIWidgetLayoutDirection", EnumValue = 1 },
{ Name = "Horizontal", Type = "UIWidgetLayoutDirection", EnumValue = 2 },
{ Name = "Overlap", Type = "UIWidgetLayoutDirection", EnumValue = 3 },
},
},
{
......
......@@ -38,12 +38,12 @@ local WeeklyRewards =
},
},
{
Name = "GetActivityRewardHyperlink",
Name = "GetItemHyperlink",
Type = "Function",
Arguments =
{
{ Name = "id", Type = "number", Nilable = false },
{ Name = "itemDBID", Type = "string", Nilable = false },
},
Returns =
......@@ -85,6 +85,18 @@ local WeeklyRewards =
{ Name = "progress", Type = "number", Nilable = false },
{ Name = "id", Type = "number", Nilable = false },
{ Name = "level", Type = "number", Nilable = false },
{ Name = "rewards", Type = "table", InnerType = "WeeklyRewardActivityRewardInfo", Nilable = false },
},
},
{
Name = "WeeklyRewardActivityRewardInfo",
Type = "Structure",
Fields =
{
{ Name = "type", Type = "CachedRewardType", Nilable = false },
{ Name = "id", Type = "number", Nilable = false },
{ Name = "quantity", Type = "number", Nilable = false },
{ Name = "itemDBID", Type = "string", Nilable = true },
},
},
},
......
......@@ -71,7 +71,6 @@ function AnimaDiversionDataProviderMixin:RefreshAllData(fromOnShow)
if not self.backgroundLinePool then
self.backgroundLinePool = CreateFramePool("FRAME", self:GetMap():GetCanvas(), "AnimaDiversionConnectionTemplate", OnRelease);
end
self.backgroundLinePool:ReleaseAll();
self.textureKit = C_AnimaDiversion.GetTextureKit();
......@@ -80,16 +79,23 @@ function AnimaDiversionDataProviderMixin:RefreshAllData(fromOnShow)
self:AddModelScene();
end
local originPosition = C_Map.GetPlayerMapPosition(self:GetMap():GetMapID(), "player");
self:AddOrigin(originPosition, self.textureKit);
if(self.modelScenePin) then
self.modelScenePin.ModelScene:ClearEffects();
end
local originPosition = C_AnimaDiversion.GetOriginPosition();
if(originPosition) then
self:AddOrigin(originPosition, self.textureKit);
end
self.lineThickness = Lerp(1, 2, Saturate(1 - self:GetMap():GetCanvasZoomPercent())) * 85;
local animaNodes = C_AnimaDiversion.GetAnimaDiversionNodes();
if (not animaNodes) then
return;
end
for _, nodeData in ipairs(animaNodes) do
nodeData.textureKit = self.textureKit;
nodeData.textureKit = self.textureKit
self:AddNode(nodeData);
end
......@@ -103,26 +109,14 @@ function AnimaDiversionDataProviderMixin:AddNode(nodeData)
pin.owner = self;
pin.forceReinforceState = self.forceReinforceState;
pin:SetSize(150,175);
self:SetupConnectionOnPin(pin);
if(self.modelScenePin) then
if(not pin.reinforceEffect or not pin.reinforceEffect:IsActive()) then
local effectID = reinforceNodeTextureKitAnimationEffectId[self.textureKit];
if (effectID) then
pin.reinforceEffect = self.modelScenePin.ModelScene:AddEffect(effectID, pin, pin);
end
end
end
pin:Setup();
end
function AnimaDiversionDataProviderMixin:AddOrigin(position, textureKit)
local pin = self:GetMap():AcquirePin("AnimaDiversionPinTemplate");
if (pin.reinforceEffect) then
pin.reinforceEffect:CancelEffect();
pin.reinforceEffect = nil;
end
pin:SetPosition(position.x, position.y);
pin.owner = self;
pin.nodeData = nil;
......@@ -141,7 +135,6 @@ function AnimaDiversionDataProviderMixin:AddModelScene()
local height = self:GetMap():DenormalizeVerticalSize(1.0);
pin:SetSize(width, height);
pin.ModelScene:SetSize(width, height);
pin.ModelScene:SetFromModelSceneID(343);
pin.ModelScene:SetFrameLevel(1000);
end
......@@ -159,6 +152,7 @@ function AnimaDiversionPinMixin:SetupPinStatus()
if(not self.nodeData) then
return;
end
self.ReadyState = self.nodeData.state == Enum.AnimaDiversionNodeState.Available;
self.ReinforceState = self.nodeData.state == Enum.AnimaDiversionNodeState.SelectedPermanent;
self.SelectState = self.nodeData.state == Enum.AnimaDiversionNodeState.SelectedTemporary;
......@@ -174,15 +168,32 @@ function AnimaDiversionPinMixin:SetupOrigin()
local borderAtlas = GetFinalNameFromTextureKit(ANIMA_DIVERSION_ORIGIN_PIN_BORDER, self.textureKit);
self.IconSelect:SetAtlas(borderAtlas, TextureKitConstants.UseAtlasSize)
self.IconSelect:Show();
if(self.reinforceEffect) then
self.reinforceEffect:CancelEffect();
self.reinforceEffect = nil;
end
end
function AnimaDiversionPinMixin:Setup()
self:Show();
function AnimaDiversionPinMixin:SetState(enabled)
self.IconReady:SetDesaturated(not enabled);
self.IconReinforce:SetDesaturated(not enabled);
self.IconSelect:SetDesaturated(not enabled);
self.Icon:SetDesaturated(not enabled);
end
if(self.sparkleEffect) then
self.sparkleEffect:CancelEffect();
self.sparkleEffect = nil;
function AnimaDiversionPinMixin:SetEffects()
if(self.owner.modelScenePin) then
if(self.nodeData and self.ReadyState) then
local effectID = reinforceNodeTextureKitAnimationEffectId[self.nodeData.textureKit];
if (effectID) then
self.owner.modelScenePin.ModelScene:AddEffect(effectID, self, self);
end
end
end
end
function AnimaDiversionPinMixin:Setup()
self:Show();
if(not self.nodeData) then
self:SetupOrigin();
......@@ -191,43 +202,33 @@ function AnimaDiversionPinMixin:Setup()
self:SetupPinStatus();
SetupTextureKitOnRegions(self.nodeData.textureKit, self, animaPinTextureKitRegions, TextureKitConstants.DoNotSetVisibility, TextureKitConstants.UseAtlasSize);
self.IconReady:SetShown(self.ReadyState and not self.forceReinforceState);
self.IconReinforce:SetShown(self.ReinforceState or self.forceReinforceState);
self.IconSelect:SetShown(self.SelectState and not self.forceReinforceState);
self.Icon:SetShown(self.UnavailableState and not self.forceReinforceState);
sel