Commit d255c40d authored by TOM_RUS's avatar TOM_RUS
Browse files

WOW-21952patch7.0.3_Beta

parent b2299577
......@@ -243,7 +243,7 @@
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
<EdgeSize val="16"/>
<TileSize val="16"/>
<BackgroundInsets left="5" right="5" top="5" bottom="5"/>
<BackgroundInsets left="4" right="4" top="4" bottom="4"/>
</Backdrop>
<Layers>
<Layer level="OVERLAY">
......
......@@ -29,10 +29,6 @@ end
function AdventureMap_QuestChoiceDataProviderMixin:RemoveAllData()
self:GetMap():RemoveAllPinsByTemplate("AdventureMap_QuestChoicePinTemplate");
self:GetMap():RemoveAllPinsByTemplate("AdventureMap_FogPinTemplate");
self:GetMap():ReleaseAreaTriggers("AdventureMap_QuestChoice");
self.enclosedPin = nil;
end
function AdventureMap_QuestChoiceDataProviderMixin:RefreshAllData(fromOnShow)
......@@ -43,13 +39,26 @@ function AdventureMap_QuestChoiceDataProviderMixin:RefreshAllData(fromOnShow)
return;
end
self.pinsByQuestID = {};
local oldSelectedQuestID = self.selectedQuestID;
local newSelectedQuestID = nil;
self.selectedQuestID = nil;
for choiceIndex = 1, C_AdventureMap.GetNumZoneChoices() do
local questID, name, zoneDescription, normalizedX, normalizedY = C_AdventureMap.GetZoneChoiceInfo(choiceIndex);
if AdventureMap_IsQuestValid(questID, normalizedX, normalizedY) then
self:AddQuest(questID, name, zoneDescription, normalizedX, normalizedY);
if oldSelectedQuestID == questID then
newSelectedQuestID = questID;
end
end
end
self:SelectQuestID(newSelectedQuestID);
if oldSelectedQuestID and not newSelectedQuestID then
self:GetMap():ZoomOut();
end
self.playRevealAnims = false;
end
......@@ -58,65 +67,50 @@ function AdventureMap_QuestChoiceDataProviderMixin:AddQuest(questID, name, zoneD
choicePin.fogPin = self:AddFogPin(questID, normalizedX, normalizedY);
end
local function OnQuestPinAreaEnclosedChanged(areaTrigger, areaEnclosed)
areaTrigger.owner:OnQuestPinAreaEnclosedChanged(areaTrigger.pin, areaEnclosed);
end
local APPEAR_PERCENT = .85;
local function QuestPinAreaTriggerPredicate(areaTrigger)
local mapCanvas = areaTrigger.owner:GetMap();
return not mapCanvas:IsZoomingOut() and mapCanvas:GetCanvasZoomPercent() > APPEAR_PERCENT;
end
function AdventureMap_QuestChoiceDataProviderMixin:AddChoicePin(questID, name, zoneDescription, normalizedX, normalizedY)
local pin = self:GetMap():AcquirePin("AdventureMap_QuestChoicePinTemplate", self.playRevealAnims);
pin.questID = questID;
pin.Text:SetText(name);
pin.zoneDescription = zoneDescription;
pin:SetPosition(normalizedX, normalizedY);
pin.owner = self;
pin:Show();
local areaTrigger = self:GetMap():AcquireAreaTrigger("AdventureMap_QuestChoice");
areaTrigger.owner = self;
areaTrigger.pin = pin;
self:GetMap():SetAreaTriggerEnclosedCallback(areaTrigger, OnQuestPinAreaEnclosedChanged);
self:GetMap():SetAreaTriggerPredicate(areaTrigger, QuestPinAreaTriggerPredicate);
areaTrigger:SetCenter(normalizedX, normalizedY);
areaTrigger:Stretch(.1, .1);
pin.areaTrigger = areaTrigger;
self.pinsByQuestID[questID] = pin;
return pin;
end
function AdventureMap_QuestChoiceDataProviderMixin:OnQuestPinAreaEnclosedChanged(pin, areaEnclosed)
if areaEnclosed then
if self.enclosedPin then
self.enclosedPin:SetSelected(false);
function AdventureMap_QuestChoiceDataProviderMixin:SelectQuestID(questID)
if self.selectedQuestID ~= questID then
if self.selectedQuestID then
local pin = self.pinsByQuestID[self.selectedQuestID];
pin:SetSelected(false);
end
local function OnClosedCallback(result)
if self.enclosedPin then
if result == QUEST_CHOICE_DIALOG_RESULT_ACCEPTED then
self:OnQuestAccepted(self.enclosedPin);
elseif result == QUEST_CHOICE_DIALOG_RESULT_DECLINED or result == QUEST_CHOICE_DIALOG_RESULT_ABSTAIN then
self.enclosedPin:SetSelected(false);
self.selectedQuestID = questID;
if self.selectedQuestID then
local pin = self.pinsByQuestID[self.selectedQuestID];
pin:PanAndZoomTo();
pin:SetSelected(true);
local function OnClosedCallback(result)
if self.selectedQuestID then
if result == QUEST_CHOICE_DIALOG_RESULT_ACCEPTED then
self:OnQuestAccepted(self.pinsByQuestID[self.selectedQuestID]);
elseif result == QUEST_CHOICE_DIALOG_RESULT_DECLINED then
self:SelectQuestID(nil);
end
end
end
self.enclosedPin = nil;
AdventureMapQuestChoiceDialog:ShowWithQuest(self:GetMap(), pin, questID, OnClosedCallback, .5);
AdventureMapQuestChoiceDialog:SetPortraitAtlas("QuestPortraitIcon-SandboxQuest", 38, 63, 0, 12);
else
AdventureMapQuestChoiceDialog:DeclineQuest(true);
self:GetMap():ZoomOut();
end
AdventureMapQuestChoiceDialog:ShowWithQuest(self:GetMap(), pin, pin.questID, OnClosedCallback);
AdventureMapQuestChoiceDialog:SetPortraitAtlas("QuestPortraitIcon-SandboxQuest", 38, 63, 0, 12);
pin:SetSelected(true);
self.enclosedPin = pin;
elseif self.enclosedPin == pin then
AdventureMapQuestChoiceDialog:DeclineQuest(true);
end
end
......@@ -126,7 +120,7 @@ function AdventureMap_QuestChoiceDataProviderMixin:AddFogPin(questID, normalized
pin:Show();
return pin;
end
function AdventureMap_QuestChoiceDataProviderMixin:OnQuestAccepted(pin)
local fogPin = pin.fogPin;
fogPin.OnQuestAcceptedAnim:SetScript("OnFinished", function()
......@@ -136,7 +130,7 @@ function AdventureMap_QuestChoiceDataProviderMixin:OnQuestAccepted(pin)
fogPin.OnQuestAcceptedAnim:Play();
pin.fogPin = nil;
self:GetMap():ReleaseAreaTrigger("AdventureMap_QuestChoice", pin.areaTrigger);
self:GetMap():ZoomOut();
self:GetMap():RemovePin(pin);
end
......@@ -160,8 +154,7 @@ end
function AdventureMap_QuestChoicePinMixin:OnClick(button)
if button == "LeftButton" then
PlaySound("UI_Mission_Map_Zoom");
self:GetMap():SetDefaultMaxZoom();
self:PanAndZoomTo();
self.owner:SelectQuestID(self.questID);
end
end
......
......@@ -10,7 +10,8 @@ function AdventureMapQuestChoiceDialogMixin:OnLoad()
end
function AdventureMapQuestChoiceDialogMixin:ShowWithQuest(parent, anchorRegion, questID, onClosedCallback, animDelay)
if self:IsShown() then
local newQuest = self.questID ~= questID;
if self:IsShown() and newQuest then
-- Already open, cancel the current
self:DeclineQuest(true);
end
......@@ -23,10 +24,12 @@ function AdventureMapQuestChoiceDialogMixin:ShowWithQuest(parent, anchorRegion,
self:ClearAllPoints();
self:SetPoint("CENTER", anchorRegion);
self.FadeIn:Stop();
local delayAnim = self.FadeIn:GetAnimations();
delayAnim:SetDuration(animDelay or .3);
self.FadeIn:Play();
if newQuest then
self.FadeIn:Stop();
local delayAnim = self.FadeIn:GetAnimations();
delayAnim:SetDuration(animDelay or .3);
self.FadeIn:Play();
end
self:Show();
end
......@@ -68,11 +71,14 @@ function AdventureMapQuestChoiceDialogMixin:Finalize()
self.onClosedCallback(result);
self.onClosedCallback = nil;
end
self.questID = nil;
end
function AdventureMapQuestChoiceDialogMixin:Refresh()
self:RefreshRewards();
self:RefreshDetails();
if self.questID then
self:RefreshRewards();
self:RefreshDetails();
end
end
local REWARD_FRAME_WIDTH = 135;
......
......@@ -34,12 +34,14 @@ function AdventureMap_ZoneSummaryProviderMixin:RefreshAllData(fromOnShow)
local mapAreaID = self:GetMap():GetMapID();
for zoneIndex = 1, C_MapCanvas.GetNumZones(mapAreaID) do
local zoneMapID, zoneName, left, right, top, bottom = C_MapCanvas.GetZoneInfo(mapAreaID, zoneIndex);
if self.questsByZone[zoneMapID] or self.missionsByZone[zoneMapID] then
local centerX = left + (right - left) * .5;
local centerY = top + (bottom - top) * .35;
local zoneMapID, zoneName, zoneDepth, left, right, top, bottom = C_MapCanvas.GetZoneInfo(mapAreaID, zoneIndex);
if zoneDepth <= 1 then -- Exclude subzones
if self.questsByZone[zoneMapID] or self.missionsByZone[zoneMapID] then
local centerX = left + (right - left) * .5;
local centerY = top + (bottom - top) * .35;
self:AddSummaryPin(zoneName, centerX, centerY, self.questsByZone[zoneMapID], self.missionsByZone[zoneMapID]);
self:AddSummaryPin(zoneName, centerX, centerY, self.questsByZone[zoneMapID], self.missionsByZone[zoneMapID]);
end
end
end
......
......@@ -19,7 +19,6 @@ function AdventureMapMixin:OnLoad()
self:SetMapInsetPool(mapInsetPool);
self:RegisterEvent("ADVENTURE_MAP_UPDATE_INSETS");
self:RegisterEvent("QUEST_LOG_UPDATE");
self:SetupTitle();
......@@ -28,7 +27,6 @@ end
function AdventureMapMixin:AddStandardDataProviders()
self:AddDataProvider(CreateFromMixins(AdventureMap_QuestChoiceDataProviderMixin));
self:AddDataProvider(CreateFromMixins(AdventureMap_QuestOfferDataProviderMixin));
end
function AdventureMapMixin:ClearAreaTableIDAvailableForInsets()
......@@ -56,11 +54,7 @@ end
-- Override
function AdventureMapMixin:OnEvent(event, ...)
if event == "QUEST_LOG_UPDATE" then
if C_AdventureMap.ForceUpdate then
C_AdventureMap.ForceUpdate();
end
elseif event == "ADVENTURE_MAP_UPDATE_INSETS" then
if event == "ADVENTURE_MAP_UPDATE_INSETS" then
self:RefreshInsets();
end
......
......@@ -81,6 +81,7 @@
<Layers>
<Layer>
<FontString inherits="SystemFont_Med1" justifyH="CENTER" text="RACES" parentKey="raceName">
<Size x="118"/>
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="6"/>
</Anchors>
......
......@@ -682,8 +682,8 @@ function ArtifactTitleTemplateMixin:EvaluateRelics()
relicSlot.LockedIcon:Hide();
if relicIcon then
relicSlot.Icon:SetSize(34, 34);
relicSlot.Icon:SetTexture(relicIcon);
relicSlot.Icon:SetMask("Interface\\CharacterFrame\\TempPortraitAlphaMask");
relicSlot.Icon:SetTexture(relicIcon);
relicSlot.Glass:Show();
SetCVarBitfield("closedInfoFrames", LE_FRAME_TUTORIAL_ARTIFACT_RELIC_MATCH, true);
......
......@@ -78,15 +78,18 @@ function ArtifactPowerButtonMixin:PlayPurchaseAnimation()
self.RingGlow:SetVertexColor(1, 0.81960784313725, 0.3921568627451);
self.PointBurstLeft:SetVertexColor(1, 0.81960784313725, 0.3921568627451);
self.PointBurstRight:SetVertexColor(1, 0.81960784313725, 0.3921568627451);
self.FinalPointSpentAnim:Play();
PlaySound("UI_70_Artifact_Forge_Trait_FinalRank");
if C_ArtifactUI.GetTotalPurchasedRanks() > 0 then
PlaySound("UI_70_Artifact_Forge_Trait_FinalRank");
end
else
self.RingGlow:SetVertexColor(0.30980392156863, 1, 0.2156862745098);
self.PointBurstLeft:SetVertexColor(0.30980392156863, 1, 0.2156862745098);
self.PointBurstRight:SetVertexColor(0.30980392156863, 1, 0.2156862745098);
self.PointSpentAnim:Play();
PlaySound("UI_70_Artifact_Forge_Trait_RankUp");
if C_ArtifactUI.GetTotalPurchasedRanks() > 0 then
PlaySound("UI_70_Artifact_Forge_Trait_RankUp");
end
end
end
end
......@@ -417,7 +420,7 @@ function ArtifactPowerButtonMixin:EvaluateStyle()
self:SetStyle(ARTIFACT_POWER_STYLE_UNPURCHASED_LOCKED);
end
else
if C_ArtifactUI.GetTotalPurchasedRanks() == 0 then
if C_ArtifactUI.GetTotalPurchasedRanks() == 0 and C_ArtifactUI.GetNumObtainedArtifacts() <= 1 then
self:SetStyle(ARTIFACT_POWER_STYLE_RUNE);
elseif C_ArtifactUI.IsPowerKnown(self.powerID) then
self:SetStyle(ARTIFACT_POWER_STYLE_PURCHASED_READ_ONLY);
......
......@@ -38,7 +38,7 @@ StaticPopupDialogs["NOT_ENOUGH_POWER_ARTIFACT_RESPEC"] = {
}
function ArtifactUI_CanViewArtifact()
return C_ArtifactUI.IsAtForge() or C_ArtifactUI.GetTotalPurchasedRanks() > 0;
return C_ArtifactUI.IsAtForge() or C_ArtifactUI.GetTotalPurchasedRanks() > 0 or C_ArtifactUI.GetNumObtainedArtifacts() > 1;
end
local TAB_PERKS = 1;
......@@ -229,14 +229,16 @@ function ArtifactUIMixin:OnKnowledgeEnter(knowledgeFrame)
local knowledgeLevel = C_ArtifactUI.GetArtifactKnowledgeLevel();
if knowledgeLevel and knowledgeLevel > 0 then
if addedAnyMetaPowers then
GameTooltip:AddLine(" ");
end
local knowledgeMultiplier = C_ArtifactUI.GetArtifactKnowledgeMultiplier();
local percentIncrease = math.floor(((knowledgeMultiplier - 1.0) * 100) + .5);
if percentIncrease > 0.0 then
if addedAnyMetaPowers then
GameTooltip:AddLine(" ");
end
GameTooltip:AddLine(ARTIFACTS_KNOWLEDGE_TOOLTIP_LEVEL:format(knowledgeLevel), HIGHLIGHT_FONT_COLOR:GetRGB());
GameTooltip:AddLine(ARTIFACTS_KNOWLEDGE_TOOLTIP_DESC:format(BreakUpLargeNumbers(knowledgeMultiplier * 100)), NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, true);
GameTooltip:AddLine(ARTIFACTS_KNOWLEDGE_TOOLTIP_LEVEL:format(knowledgeLevel), HIGHLIGHT_FONT_COLOR:GetRGB());
GameTooltip:AddLine(ARTIFACTS_KNOWLEDGE_TOOLTIP_DESC:format(BreakUpLargeNumbers(percentIncrease)), NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, true);
end
end
GameTooltip:Show();
......
......@@ -126,16 +126,16 @@
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="80" y="-41"/>
<AbsDimension x="80" y="-38"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="BrowseLevelText" inherits="GameFontHighlightSmall" text="LEVEL_RANGE">
<Anchors>
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="230" y="-47"/>
<AbsDimension x="230" y="-38"/>
</Offset>
</Anchor>
</Anchors>
......@@ -901,7 +901,7 @@
<Anchors>
<Anchor point="TOPLEFT" relativeTo="BrowseNameText" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="3" y="-2"/>
<AbsDimension x="3" y="-5"/>
</Offset>
</Anchor>
</Anchors>
......@@ -927,7 +927,7 @@
<Anchors>
<Anchor point="TOPLEFT" relativeTo="BrowseLevelText" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="3" y="-6"/>
<AbsDimension x="3" y="-5"/>
</Offset>
</Anchor>
</Anchors>
......@@ -979,9 +979,9 @@
</EditBox>
<Frame name="BrowseDropDown" inherits="UIDropDownMenuTemplate" id="1">
<Anchors>
<Anchor point="TOPLEFT" relativeTo="BrowseLevelText" relativePoint="BOTTOMRIGHT">
<Anchor point="TOPLEFT" relativeTo="BrowseMaxLevel" relativePoint="TOPRIGHT">
<Offset>
<AbsDimension x="-5" y="-1"/>
<AbsDimension x="-6" y="5"/>
</Offset>
</Anchor>
</Anchors>
......
......@@ -137,6 +137,21 @@ function BoostTutorial:HighlightSpell(spellID, textID)
end
end
-- Check the vehicle bar (For Illidan scenario)
if (not exists) then
if (OverrideActionBar and OverrideActionBar:IsShown()) then
for i = 1, NUM_OVERRIDE_BUTTONS do
local button = _G["OverrideActionBarButton" .. i];
local actionType, id = GetActionInfo(button.action);
if (actionType == "spell" and id == spellID) then
frame = button;
exists = true;
break;
end
end
end
end
-- Check pending actions (actions animating in from being learned)
if (not exists) then
if (self:IsSpellInPushQueue(spellID)) then
......
......@@ -270,7 +270,15 @@ function ChallengesKeystoneFrameMixin:OnLoad()
end
end
function ChallengesKeystoneFrameMixin:OnShow()
PlaySound("UI_70_ChallengeMode_SocketPage_Open");
self:Reset();
end
function ChallengesKeystoneFrameMixin:OnHide()
if (not self.startedChallengeMode) then
PlaySound("UI_70_ChallengeMode_SocketPage_Close");
end
C_ChallengeMode.CloseKeystoneFrame();
C_ChallengeMode.ClearKeystone();
self:Reset();
......@@ -294,6 +302,8 @@ function ChallengesKeystoneFrameMixin:Reset()
k:SetShown(v.shown);
k:SetAlpha(v.alpha);
end
self.startedChallengeMode = nil;
end
function ChallengesKeystoneFrameMixin:OnMouseUp()
......@@ -338,6 +348,7 @@ function ChallengesKeystoneFrameMixin:CreateAndPositionAffixes(num)
end
function ChallengesKeystoneFrameMixin:OnKeystoneSlotted()
PlaySound("UI_70_ChallengeMode_SocketPage_Socket");
self.InsertedAnim:Play();
self.RunesLargeAnim:Play();
self.RunesSmallAnim:Play();
......@@ -358,19 +369,22 @@ function ChallengesKeystoneFrameMixin:OnKeystoneSlotted()
self.Affixes[1]:SetUp({key = "dmg", pct = dmgPct});
self.Affixes[2]:SetUp({key = "health", pct = healthPct});
for i = 1, #affixes do
self.Affixes[i+2]:SetUp(affixes[i]);
end
end
function ChallengesKeystoneFrameMixin:OnKeystoneRemoved()
PlaySound("UI_70_ChallengeMode_SocketPage_RemoveKeystone");
self:Reset();
self.StartButton:Disable();
end
function ChallengesKeystoneFrameMixin:OnChallengeStarted()
self.ActivateAnim:Play();
function ChallengesKeystoneFrameMixin:StartChallengeMode()
PlaySound("UI_70_ChallengeMode_SocketPage_Activate");
C_ChallengeMode.StartChallengeMode();
self.startedChallengeMode = true;
self:Hide();
end
ChallengesKeystoneSlotMixin = {};
......@@ -521,9 +535,11 @@ function ChallengeModeCompleteBannerMixin:PlayBanner(data)
if (data.onTime) then
self.DescriptionLineOne:SetText(CHALLENGE_MODE_COMPLETE_BEAT_TIMER);
self.DescriptionLineTwo:SetFormattedText(CHALLENGE_MODE_COMPLETE_KEYSTONE_UPGRADED, data.keystoneUpgradeLevels);
PlaySound("UI_70_ChallengeMode_KeystoneUpgrade");
else
self.DescriptionLineOne:SetText(CHALLENGE_MODE_COMPLETE_TIME_EXPIRED);
self.DescriptionLineTwo:SetText(CHALLENGE_MODE_COMPLETE_TRY_AGAIN);
PlaySound("UI_70_ChallengeMode_Complete_NoUpgrade");
end
local sortedUnitTokens = self:GetSortedPartyMembers();
......
......@@ -261,8 +261,7 @@
self:SetWidth(self:GetTextWidth() + 60);
</OnShow>
<OnClick>
C_ChallengeMode.StartChallengeMode();
self:GetParent():Hide();
self:GetParent():StartChallengeMode();
</OnClick>
</Scripts>
</Button>
......@@ -353,7 +352,7 @@
</Animations>
<Scripts>
<OnLoad method="OnLoad"/>
<OnShow method="Reset"/>
<OnShow method="OnShow"/>
<OnHide method="OnHide"/>
<OnMouseUp method="OnMouseUp"/>
</Scripts>
......
......@@ -84,15 +84,15 @@ end
function ClassTrialDialogMixin:OnEvent(event, ...)
if event == "EVENT_CLASS_TRIAL_TIMER_START" then
self:ShowThanks();
self:ShowThanks("UI_70_Boost_ThanksforPlaying");
elseif event == "EVENT_CLASS_TRIAL_UPGRADE_COMPLETE" then
self:OnUpgradeComplete();
end
end
function ClassTrialDialogMixin:OnShow()
function ClassTrialDialogMixin:OnShow(sound)
ClassTrialTimerDisplay:Hide();
PlaySound("igClassTrialThanksDialogShow");
PlaySound(sound or "UI_70_Boost_ThanksforPlaying_Smaller");
end
function ClassTrialDialogMixin:OnLoad()
......
......@@ -45,6 +45,10 @@ function MountJournal_OnShow(self)
SetPortraitToTexture(CollectionsJournalPortrait, "Interface\\Icons\\MountJournalPortrait");
end
function MountJournal_OnHide(self)
C_MountJournal.ClearRecentFanfares();
end
function MountJournal_UpdateMountList()
local scrollFrame = MountJournal.ListScrollFrame;
local offset = HybridScrollFrame_GetOffset(scrollFrame);
......@@ -60,7 +64,7 @@ function MountJournal_UpdateMountList()
else
MountJournal.MountDisplay.NoMounts:Hide();
end
local numDisplayedMounts = C_MountJournal.GetNumDisplayedMounts();
for i=1, #buttons do
local button = buttons[i];
......@@ -74,7 +78,7 @@ function MountJournal_UpdateMountList()
button.icon:SetTexture(needsFanFare and COLLECTIONS_FANFARE_ICON or icon);
button.new:SetShown(needsFanFare);
button.newGlow:SetShown(needsFanFare);
button.index = index;
button.spellID = spellID;
......@@ -85,7 +89,7 @@ function MountJournal_UpdateMountList()
button.DragButton.ActiveTexture:Hide();
end
button:Show();
if ( MountJournal.selectedSpellID == spellID ) then
button.selected = true;
button.selectedTexture:Show();
......@@ -102,7 +106,7 @@ function MountJournal_UpdateMountList()
button.additionalText = nil;
button.icon:SetDesaturated(false);
button.icon:SetAlpha(1.0);
button.name:SetFontObject("GameFontNormal");
button.name:SetFontObject("GameFontNormal");
else
if (isCollected) then
button.unusable:Show();
......@@ -117,7 +121,7 @@ function MountJournal_UpdateMountList()
button.icon:SetAlpha(0.25);
button.additionalText = nil;
button.name:SetFontObject("GameFontDisable");
end
end
end
if ( isFavorite ) then
......@@ -186,7 +190,7 @@ function MountJournal_UpdateMountDisplay()
local offsetX = math.min(MountJournal.MountDisplay.InfoButton.Name:GetStringWidth(), MountJournal.MountDisplay.InfoButton.Name:GetWidth());
MountJournal.MountDisplay.InfoButton.New:SetPoint("LEFT", MountJournal.MountDisplay.InfoButton.Name, "LEFT", offsetX + 8, 0);