doadin / Baggins

zlib License
6 stars 7 forks source link

Possible to swap to new high-res money icons? #59

Closed WanderingFox closed 2 years ago

WanderingFox commented 2 years ago

As of 9.1.5 there are new money icons located in an atlas ("coin-gold", "coin-silver", "coin-copper") which are much higher resolution than the old ones.

They can be swapped to by replacing:

local goldIcon = frame:CreateTexture("BagginsGoldIcon", "ARTWORK")
goldIcon:SetWidth(16)
goldIcon:SetHeight(16)
goldIcon:SetTexture("Interface\\MoneyFrame\\UI-MoneyIcons")
goldIcon:SetTexCoord(0, 0.25, 0, 1)

with:

local goldIcon = frame:CreateTexture("BagginsGoldIcon", "ARTWORK")
goldIcon:SetWidth(16)
goldIcon:SetHeight(16)
goldIcon:SetAtlas("coin-gold")

etc

old texture: image

new texture: image

doadin commented 2 years ago

Updated: https://github.com/doadin/Baggins/commit/11f87ed276bc7c8e4a3400944c00ffd7d2f04fa1 should be pushed through to curse soon.