Skip to content

Commit

Permalink
Updated Collection Skin
Browse files Browse the repository at this point in the history
  • Loading branch information
Merathilis committed Jan 8, 2025
1 parent dd767d2 commit c316dfa
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
1 change: 1 addition & 0 deletions ElvUI/Core/Defaults/Private.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ V.skins = {
majorFactions = true,
genericTrait = true,
editor = true,
campsites = true,
}
}

Expand Down
32 changes: 27 additions & 5 deletions ElvUI/Mainline/Modules/Skins/Collectables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,11 @@ local function SkinMountFrame()
S:HandleItemButton(_G.MountJournalSummonRandomFavoriteButton)
S:HandleButton(_G.MountJournal.FilterDropdown, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, true, 'right')

local Flyout = _G.MountJournal.DynamicFlightFlyout
Flyout.Background:Hide()

HandleDynamicFlightButton(Flyout.DynamicFlightModeButton, 4)
HandleDynamicFlightButton(Flyout.OpenDynamicFlightSkillTreeButton, 4)
HandleDynamicFlightButton(_G.MountJournal.ToggleDynamicFlightFlyoutButton, 1)
HandleDynamicFlightButton(_G.MountJournal.ToggleDynamicFlightFlyoutButton.popup.OpenDynamicFlightSkillTreeButton, 2)
HandleDynamicFlightButton(_G.MountJournal.ToggleDynamicFlightFlyoutButton.popup.DynamicFlightModeButton, 3)

_G.MountJournal.ToggleDynamicFlightFlyoutButton.popup.Background:Hide()

_G.MountJournal.FilterDropdown:ClearAllPoints()
_G.MountJournal.FilterDropdown:Point('LEFT', _G.MountJournalSearchBox, 'RIGHT', 5, 0)
Expand Down Expand Up @@ -758,10 +757,33 @@ local function SkinCollectionsFrames()
SkinHeirloomFrame()
end

local function SkinCampsitesFrame()
local Frame = _G.WarbandSceneJournal

local IconsFrame = Frame.IconsFrame
if IconsFrame then
IconsFrame:StripTextures()
IconsFrame.NineSlice:SetTemplate('Transparent')
IconsFrame.BackgroundTile:SetAlpha(0)

IconsFrame.Icons.Controls.ShowOwned.Checkbox:Size(24)
S:HandleCheckBox(IconsFrame.Icons.Controls.ShowOwned.Checkbox)

S:HandleNextPrevButton(IconsFrame.Icons.Controls.PagingControls.PrevPageButton, nil, nil, true)
S:HandleNextPrevButton(IconsFrame.Icons.Controls.PagingControls.NextPageButton, nil, nil, true)

--[[ TODO 11.1 Make the position pretty
IconsFrame.Icons.Controls.PagingControls.PrevPageButton:ClearAllPoints()
IconsFrame.Icons.Controls.PagingControls.PrevPageButton:Point('RIGHT', IconsFrame.Icons.Controls.PagingControls.PageText, 'LEFT', 0, 0)
]]
end
end

function S:Blizzard_Collections()
if not E.private.skins.blizzard.enable then return end
if E.private.skins.blizzard.collections then SkinCollectionsFrames() end
if E.private.skins.blizzard.transmogrify then SkinTransmogFrames() end
if E.private.skins.blizzard.campsites then SkinCampsitesFrame() end
end

S:AddCallbackForAddon('Blizzard_Collections')
1 change: 1 addition & 0 deletions ElvUI_Options/Core/Skins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ if E.Retail then
toggles.azeriteEssence = L["Azerite Essence"]
toggles.azeriteRespec = L["AZERITE_RESPEC_TITLE"]
toggles.bmah = L["BLACK_MARKET_AUCTION_HOUSE"]
toggles.campsites = L["Campsite"]
toggles.chromieTime = L["Chromie Time Frame"]
toggles.contribution = L["Contribution"]
toggles.covenantPreview = L["Covenant Preview"]
Expand Down

0 comments on commit c316dfa

Please sign in to comment.