Commit bfa1316f authored by TOM_RUS's avatar TOM_RUS

WOW-34278patch9.0.1_Beta

parent c7aa2f4f
......@@ -1262,6 +1262,7 @@ local AuctionHouse =
{ Name = "itemKey", Type = "ItemKey", Nilable = false },
{ Name = "itemLink", Type = "string", Nilable = true },
{ Name = "timeLeft", Type = "AuctionHouseTimeLeftBand", Nilable = false },
{ Name = "minBid", Type = "number", Nilable = true },
{ Name = "bidAmount", Type = "number", Nilable = true },
{ Name = "buyoutAmount", Type = "number", Nilable = true },
{ Name = "bidder", Type = "string", Nilable = true },
......
......@@ -6,6 +6,51 @@ local BarberShop =
Functions =
{
{
Name = "ApplyCustomizationChoices",
Type = "Function",
Returns =
{
{ Name = "success", Type = "bool", Nilable = false },
},
},
{
Name = "Cancel",
Type = "Function",
},
{
Name = "GetAvailableCustomizations",
Type = "Function",
Returns =
{
{ Name = "categories", Type = "table", InnerType = "CharCustomizationCategory", Nilable = false },
},
},
{
Name = "GetCurrentCost",
Type = "Function",
Returns =
{
{ Name = "cost", Type = "number", Nilable = false },
},
},
{
Name = "ResetCustomizationChoices",
Type = "Function",
},
{
Name = "SetCustomizationChoice",
Type = "Function",
Arguments =
{
{ Name = "optionID", Type = "number", Nilable = false },
{ Name = "choiceID", Type = "number", Nilable = false },
},
},
},
Events =
......@@ -31,9 +76,13 @@ local BarberShop =
LiteralName = "BARBER_SHOP_OPEN",
},
{
Name = "BarberShopSuccess",
Name = "BarberShopResult",
Type = "Event",
LiteralName = "BARBER_SHOP_SUCCESS",
LiteralName = "BARBER_SHOP_RESULT",
Payload =
{
{ Name = "success", Type = "bool", Nilable = false },
},
},
},
......
......@@ -182,6 +182,7 @@ ChatDocumentation.lua
ClubSharedDocumentation.lua
ColorDocumentation.lua
CovenantsConstantsDocumentation.lua
DamageConstantsDocumentation.lua
GarrisonConstantsDocumentation.lua
GarrisonSharedDocumentation.lua
GuildInfoSharedDocumentation.lua
......
......@@ -80,6 +80,7 @@ local CovenantPreview =
{ Name = "description", Type = "string", Nilable = false },
{ Name = "covenantCrest", Type = "string", Nilable = false },
{ Name = "covenantAbilities", Type = "table", InnerType = "CovenantAbilityInfo", Nilable = false },
{ Name = "fromPlayerChoice", Type = "bool", Nilable = false },
},
},
},
......
......@@ -10,6 +10,16 @@ local CovenantSanctum =
Name = "EndInteraction",
Type = "Function",
},
{
Name = "GetAnimaInfo",
Type = "Function",
Returns =
{
{ Name = "currencyID", Type = "number", Nilable = false },
{ Name = "maxDisplayableValue", Type = "number", Nilable = false },
},
},
{
Name = "GetFeatures",
Type = "Function",
......@@ -28,6 +38,15 @@ local CovenantSanctum =
{ Name = "sanctumType", Type = "GarrTalentFeatureSubtype", Nilable = true },
},
},
{
Name = "GetSoulCurrencies",
Type = "Function",
Returns =
{
{ Name = "currencyIDs", Type = "table", InnerType = "number", Nilable = false },
},
},
},
Events =
......
local CovenantsConstants =
{
Tables =
{
},
};
APIDocumentation:AddDocumentationTable(CovenantsConstants);
\ No newline at end of file
......@@ -118,13 +118,14 @@ local GarrisonConstants =
{
Name = "GarrTalentCostType",
Type = "Enumeration",
NumValues = 2,
NumValues = 3,
MinValue = 0,
MaxValue = 1,
MaxValue = 2,
Fields =
{
{ Name = "Initial", Type = "GarrTalentCostType", EnumValue = 0 },
{ Name = "Respec", Type = "GarrTalentCostType", EnumValue = 1 },
{ Name = "MakePermanent", Type = "GarrTalentCostType", EnumValue = 2 },
},
},
{
......
......@@ -86,6 +86,15 @@ local PartyInfo =
Type = "Function",
Documentation = { "Usually this will convert to raid immediately. In some cases (e.g. PartySync) the user will be prompted to confirm converting to raid, because it's potentially destructive." },
},
{
Name = "DoCountdown",
Type = "Function",
Arguments =
{
{ Name = "seconds", Type = "number", Nilable = false },
},
},
{
Name = "GetActiveCategories",
Type = "Function",
......
......@@ -64,6 +64,13 @@ local ScriptedAnimations =
{ Name = "visualScale", Type = "number", Nilable = false },
{ Name = "duration", Type = "number", Nilable = false },
{ Name = "trajectory", Type = "ScriptedAnimationTrajectory", Nilable = false },
{ Name = "yawRadians", Type = "number", Nilable = false },
{ Name = "pitchRadians", Type = "number", Nilable = false },
{ Name = "rollRadians", Type = "number", Nilable = false },
{ Name = "offsetX", Type = "number", Nilable = false },
{ Name = "offsetY", Type = "number", Nilable = false },
{ Name = "offsetZ", Type = "number", Nilable = false },
{ Name = "animationSpeed", Type = "number", Nilable = false },
{ Name = "startBehavior", Type = "ScriptedAnimationBehavior", Nilable = true },
{ Name = "startSoundKitID", Type = "number", Nilable = true },
{ Name = "finishEffectID", Type = "number", Nilable = true },
......
......@@ -249,7 +249,7 @@ local Soulbinds =
{ Name = "covenantID", Type = "number", Nilable = false },
{ Name = "name", Type = "string", Nilable = false },
{ Name = "description", Type = "string", Nilable = false },
{ Name = "portrait", Type = "string", Nilable = false },
{ Name = "textureKit", Type = "string", Nilable = false },
{ Name = "tree", Type = "SoulbindTree", Nilable = false },
{ Name = "modelSceneData", Type = "SoulbindModelSceneData", Nilable = false },
},
......
......@@ -29,6 +29,11 @@ local Video =
Type = "Event",
LiteralName = "GLUE_SCREENSHOT_FAILED",
},
{
Name = "GxRestarted",
Type = "Event",
LiteralName = "GX_RESTARTED",
},
{
Name = "ScreenshotFailed",
Type = "Event",
......
......@@ -3,20 +3,10 @@ UIPanelWindows["AchievementFrame"] = { area = "doublewide", pushable = 0, xoffse
ACHIEVEMENTUI_CATEGORIES = {};
ACHIEVEMENTUI_GOLDBORDER_R = 1;
ACHIEVEMENTUI_GOLDBORDER_G = 0.675;
ACHIEVEMENTUI_GOLDBORDER_B = 0.125;
ACHIEVEMENTUI_GOLDBORDER_A = 1;
ACHIEVEMENTUI_REDBORDER_R = 0.7;
ACHIEVEMENTUI_REDBORDER_G = 0.15;
ACHIEVEMENTUI_REDBORDER_B = 0.05;
ACHIEVEMENTUI_REDBORDER_A = 1;
ACHIEVEMENTUI_BLUEBORDER_R = 0.129;
ACHIEVEMENTUI_BLUEBORDER_G = 0.671;
ACHIEVEMENTUI_BLUEBORDER_B = 0.875;
ACHIEVEMENTUI_BLUEBORDER_A = 1;
ACHIEVEMENT_GOLD_BORDER_COLOR = CreateColor(1, 0.675, 0.125);
ACHIEVEMENT_RED_BORDER_COLOR = CreateColor(0.7, 0.15, 0.05);
ACHIEVEMENT_BLUE_BORDER_COLOR = CreateColor(0.129, 0.671, 0.875);
ACHIEVEMENT_YELLOW_BORDER_COLOR = CreateColor(0.4, 0.2, 0.0);
ACHIEVEMENTUI_CATEGORIESWIDTH = 175;
......@@ -224,8 +214,9 @@ function AchievementFrame_ToggleView()
if ( emblemFilename ) then
AchievementFrameGuildEmblemLeft:SetTexture(emblemFilename);
AchievementFrameGuildEmblemRight:SetTexture(emblemFilename);
AchievementFrameGuildEmblemLeft:SetVertexColor(0.4, 0.2, 0, 0.5);
AchievementFrameGuildEmblemRight:SetVertexColor(0.4, 0.2, 0, 0.5);
local r, g, b = ACHIEVEMENT_YELLOW_COLOR:GetRGB();
AchievementFrameGuildEmblemLeft:SetVertexColor(r, g, b, 0.5);
AchievementFrameGuildEmblemRight:SetVertexColor(r, g, b, 0.5);
end
end
AchievementFrameHeaderPoints:SetText(BreakUpLargeNumbers(GetTotalAchievementPoints(IN_GUILD_VIEW)));
......@@ -358,7 +349,6 @@ end
-- [[ AchievementFrameCategories ]] --
function AchievementFrameCategories_OnLoad (self)
self:SetBackdropBorderColor(ACHIEVEMENTUI_GOLDBORDER_R, ACHIEVEMENTUI_GOLDBORDER_G, ACHIEVEMENTUI_GOLDBORDER_B, ACHIEVEMENTUI_GOLDBORDER_A);
self.buttons = {};
self:RegisterEvent("ADDON_LOADED");
self:SetScript("OnEvent", AchievementFrameCategories_OnEvent);
......@@ -845,7 +835,6 @@ function AchievementFrameAchievements_OnEvent (self, event, ...)
end
function AchievementFrameAchievementsBackdrop_OnLoad (self)
self:SetBackdropBorderColor(ACHIEVEMENTUI_GOLDBORDER_R, ACHIEVEMENTUI_GOLDBORDER_G, ACHIEVEMENTUI_GOLDBORDER_B, ACHIEVEMENTUI_GOLDBORDER_A);
self:SetFrameLevel(self:GetFrameLevel()+1);
end
......@@ -1121,7 +1110,7 @@ function AchievementButton_Saturate (self)
self.background:SetTexture("Interface\\AchievementFrame\\UI-GuildAchievement-Parchment-Horizontal");
self.titleBar:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Borders");
self.titleBar:SetTexCoord(0, 1, 0.83203125, 0.91015625);
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self:SetBackdropBorderColor(ACHIEVEMENT_RED_BORDER_COLOR:GetRGB());
self.shield.points:SetVertexColor(0, 1, 0);
self.saturatedStyle = "guild";
else
......@@ -1129,12 +1118,12 @@ function AchievementButton_Saturate (self)
if ( self.accountWide ) then
self.titleBar:SetTexture("Interface\\AchievementFrame\\AccountLevel-AchievementHeader");
self.titleBar:SetTexCoord(0, 1, 0, 0.375);
self:SetBackdropBorderColor(ACHIEVEMENTUI_BLUEBORDER_R, ACHIEVEMENTUI_BLUEBORDER_G, ACHIEVEMENTUI_BLUEBORDER_B, ACHIEVEMENTUI_BLUEBORDER_A);
self:SetBackdropBorderColor(ACHIEVEMENT_BLUE_BORDER_COLOR:GetRGB());
self.saturatedStyle = "account";
else
self.titleBar:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Borders");
self.titleBar:SetTexCoord(0, 1, 0.66015625, 0.73828125);
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self:SetBackdropBorderColor(ACHIEVEMENT_RED_BORDER_COLOR:GetRGB());
self.saturatedStyle = "normal";
end
self.shield.points:SetVertexColor(1, 1, 1);
......@@ -1187,7 +1176,6 @@ function AchievementButton_OnLoad (self)
self.description:SetWidth(ACHIEVEMENTUI_MAXCONTENTWIDTH);
self.hiddenDescription:SetWidth(ACHIEVEMENTUI_MAXCONTENTWIDTH);
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self.Collapse = AchievementButton_Collapse;
self.Expand = AchievementButton_Expand;
self.Saturate = AchievementButton_Saturate;
......@@ -2449,7 +2437,6 @@ function AchievementFrameSummaryAchievement_OnLoad(self)
AchievementComparisonPlayerButton_OnLoad(self);
AchievementFrameSummaryAchievements.buttons = AchievementFrameSummaryAchievements.buttons or {};
tinsert(AchievementFrameSummaryAchievements.buttons, self);
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, 0.5);
self.titleBar:SetVertexColor(1,1,1,0.5);
self.dateCompleted:Show();
end
......@@ -3268,7 +3255,7 @@ function AchievementComparisonPlayerButton_Saturate (self)
self.background:SetTexture("Interface\\AchievementFrame\\UI-GuildAchievement-Parchment-Horizontal");
self.titleBar:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Borders");
self.titleBar:SetTexCoord(0, 1, 0.83203125, 0.91015625);
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self:SetBackdropBorderColor(ACHIEVEMENT_RED_BORDER_COLOR:GetRGB());
self.shield.points:SetVertexColor(0, 1, 0);
self.saturatedStyle = "guild";
else
......@@ -3277,12 +3264,12 @@ function AchievementComparisonPlayerButton_Saturate (self)
if ( self.accountWide ) then
self.titleBar:SetTexture("Interface\\AchievementFrame\\AccountLevel-AchievementHeader");
self.titleBar:SetTexCoord(0, 1, 0, 0.375);
self:SetBackdropBorderColor(ACHIEVEMENTUI_BLUEBORDER_R, ACHIEVEMENTUI_BLUEBORDER_G, ACHIEVEMENTUI_BLUEBORDER_B, ACHIEVEMENTUI_BLUEBORDER_A);
self:SetBackdropBorderColor(ACHIEVEMENT_BLUE_BORDER_COLOR:GetRGB());
self.saturatedStyle = "account";
else
self.titleBar:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Borders");
self.titleBar:SetTexCoord(0, 1, 0.66015625, 0.73828125);
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self:SetBackdropBorderColor(ACHIEVEMENT_RED_BORDER_COLOR:GetRGB());
self.saturatedStyle = "normal";
end
end
......@@ -3336,7 +3323,6 @@ function AchievementComparisonPlayerButton_Desaturate (self)
end
function AchievementComparisonPlayerButton_OnLoad (self)
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self.Saturate = AchievementComparisonPlayerButton_Saturate;
self.Desaturate = AchievementComparisonPlayerButton_Desaturate;
......@@ -3351,12 +3337,12 @@ function AchievementComparisonFriendButton_Saturate (self)
self.titleBar:SetTexture("Interface\\AchievementFrame\\AccountLevel-AchievementHeader");
self.titleBar:SetTexCoord(0.3, 0.575, 0, 0.375);
self.saturatedStyle = "account";
self:SetBackdropBorderColor(ACHIEVEMENTUI_BLUEBORDER_R, ACHIEVEMENTUI_BLUEBORDER_G, ACHIEVEMENTUI_BLUEBORDER_B, ACHIEVEMENTUI_BLUEBORDER_A);
self:SetBackdropBorderColor(ACHIEVEMENT_BLUE_BORDER_COLOR:GetRGB());
else
self.titleBar:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Borders");
self.titleBar:SetTexCoord(0.3, 0.575, 0.66015625, 0.73828125);
self.saturatedStyle = "normal";
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self:SetBackdropBorderColor(ACHIEVEMENT_RED_BORDER_COLOR:GetRGB());
end
self.background:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Parchment-Horizontal");
self.glow:SetVertexColor(1.0, 1.0, 1.0);
......@@ -3385,7 +3371,6 @@ function AchievementComparisonFriendButton_Desaturate (self)
end
function AchievementComparisonFriendButton_OnLoad (self)
self:SetBackdropBorderColor(ACHIEVEMENTUI_REDBORDER_R, ACHIEVEMENTUI_REDBORDER_G, ACHIEVEMENTUI_REDBORDER_B, ACHIEVEMENTUI_REDBORDER_A);
self.Saturate = AchievementComparisonFriendButton_Saturate;
self.Desaturate = AchievementComparisonFriendButton_Desaturate;
......
......@@ -238,13 +238,8 @@
</Animations>
</Frame>
<Frame name="AdventureMap_MissionPinTooltip" parent="UIParent" frameStrata="TOOLTIP" clampedToScreen="true" hidden="true" mixin="AdventureMap_MissionTooltipMixin">
<Frame name="AdventureMap_MissionPinTooltip" parent="UIParent" frameStrata="TOOLTIP" clampedToScreen="true" hidden="true" inherits="TooltipBackdropTemplate" mixin="AdventureMap_MissionTooltipMixin">
<Size x="250" y="256"/>
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize val="16"/>
<TileSize val="16"/>
<BackgroundInsets left="4" right="4" top="4" bottom="4"/>
</Backdrop>
<Layers>
<Layer level="OVERLAY">
<FontString parentKey="Name" parentArray="Lines" inherits="GameFontNormalMed2" justifyH="LEFT" wordwrap="true">
......@@ -388,10 +383,6 @@
</Frame>
</Frames>
<Scripts>
<OnLoad>
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
</OnLoad>
<OnUpdate method="OnUpdate" />
<OnHide method="OnHide" />
</Scripts>
......
......@@ -5,30 +5,51 @@ local animaPinTextureKitRegions = {
["IconReady"] = "AnimaChannel-Icon-%s-Ready",
};
local reinforceNodeTextureKitAnimationEffectId = {
["Kyrian"] = 22,
["NightFae"] = 28,
["Venthyr"] = 25,
["Necrolord"] = 31,
};
local animaConnectionLineColors = {
["Kyrian"] = CreateColor(0.55, 0.81, 0.90),
["NightFae"] = CreateColor(0, 0.33, 0.97),
["Venthyr"] = CreateColor(0.81, 0.06, 0.06),
["Necrolord"] = CreateColor(0.1, 0.82, 0.30),
};
local ANIMA_DIVERSION_DATA_PROVIDER_FRAME_EVENTS = {
"ANIMA_DIVERSION_TALENT_UPDATED",
"CURRENCY_DISPLAY_UPDATE",
};
local ANIMA_DIVERSION_ORIGIN_PIN_BORDER = "AnimaChannel-Icon-Device-%s-Border";
local ANIMA_REINFORCE_MODEL_EFFECT_ID = 35;
AnimaDiversionDataProviderMixin = CreateFromMixins(MapCanvasDataProviderMixin);
function AnimaDiversionDataProviderMixin:OnShow()
self:RegisterEvent("ANIMA_DIVERSION_TALENT_UPDATED");
FrameUtil.RegisterFrameForEvents(self, ANIMA_DIVERSION_DATA_PROVIDER_FRAME_EVENTS);
end
function AnimaDiversionDataProviderMixin:OnHide()
self:UnregisterEvent("ANIMA_DIVERSION_TALENT_UPDATED");
FrameUtil.UnregisterFrameForEvents(self, ANIMA_DIVERSION_DATA_PROVIDER_FRAME_EVENTS);
end
function AnimaDiversionDataProviderMixin:OnEvent(event, ...)
if (event == "ANIMA_DIVERSION_TALENT_UPDATED") then
if event == "ANIMA_DIVERSION_TALENT_UPDATED" or event == "CURRENCY_DISPLAY_UPDATE" then
self:RefreshAllData();
end
end
function AnimaDiversionDataProviderMixin:SetupConnectionOnPin(pin)
if(not self.origin) then
if(not self.origin or not animaConnectionLineColors[self.textureKit]) then
return;
end
pin.lineContainer = self.backgroundLinePool:Acquire();
pin.lineContainer.Fill:SetVertexColor(animaConnectionLineColors[self.textureKit]:GetRGB());
pin.lineContainer.Fill:SetThickness(self.lineThickness);
pin.lineContainer.Fill:SetStartPoint("CENTER", self.origin);
pin.lineContainer.Fill:SetEndPoint("CENTER", pin);
......@@ -36,10 +57,16 @@ end
function AnimaDiversionDataProviderMixin:RemoveAllData()
self:GetMap():RemoveAllPinsByTemplate("AnimaDiversionPinTemplate");
self:GetMap():RemoveAllPinsByTemplate("AnimaDiversionModelScenePinTemplate");
end
function AnimaDiversionDataProviderMixin:CanReinforceNode()
return self.bolsterProgress >= 10;
end
function AnimaDiversionDataProviderMixin:RefreshAllData(fromOnShow)
self:RemoveAllData();
self.bolsterProgress = C_AnimaDiversion.GetReinforceProgress();
if not self.backgroundLinePool then
self.backgroundLinePool = CreateFramePool("FRAME", self:GetMap():GetCanvas(), "AnimaDiversionConnectionTemplate", OnRelease);
......@@ -48,10 +75,15 @@ function AnimaDiversionDataProviderMixin:RefreshAllData(fromOnShow)
self.backgroundLinePool:ReleaseAll();
self.textureKit = C_AnimaDiversion.GetTextureKit();
self.forceReinforceState = self:CanReinforceNode();
if (self.forceReinforceState) then
self:AddModelScene();
end
local originPosition = C_Map.GetPlayerMapPosition(self:GetMap():GetMapID(), "player");
self:AddOrigin(originPosition, self.textureKit);
self.lineThickness = Lerp(1, 2, Saturate(1 - self:GetMap():GetCanvasZoomPercent())) * 45;
self.lineThickness = Lerp(1, 2, Saturate(1 - self:GetMap():GetCanvasZoomPercent())) * 85;
local animaNodes = C_AnimaDiversion.GetAnimaDiversionNodes();
for _, nodeData in ipairs(animaNodes) do
nodeData.textureKit = self.textureKit;
......@@ -62,25 +94,63 @@ end
function AnimaDiversionDataProviderMixin:AddNode(nodeData)
local pin = self:GetMap():AcquirePin("AnimaDiversionPinTemplate");
pin:SetPosition(nodeData.normalizedPosition.x, nodeData.normalizedPosition.y);
pin.nodeData = 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;
pin.textureKit = textureKit;
pin:Setup();
pin:SetSize(175,175);
pin:Show();
self.origin = pin;
end
function AnimaDiversionDataProviderMixin:AddModelScene()
local pin = self:GetMap():AcquirePin("AnimaDiversionModelScenePinTemplate");
pin:SetPosition(0.5, 0.5);
self.modelScenePin = pin;
local width = self:GetMap():DenormalizeHorizontalSize(1.0);
local height = self:GetMap():DenormalizeVerticalSize(1.0);
pin:SetSize(width, height);
pin.ModelScene:SetSize(width, height);