Commit 01d538d3 authored by Azilroka's avatar Azilroka

VoidStorage

parent 7b16fc25
......@@ -3,79 +3,54 @@ local AS = unpack(AddOnSkins)
function AS:Blizzard_VoidStorage(event, addon)
if addon ~= "Blizzard_VoidStorageUI" then return end
AS:SkinFrame(VoidStorageFrame)
AS:CreateShadow(VoidStorageFrame)
AS:SkinFrame(VoidStoragePurchaseFrame)
VoidStoragePurchaseFrame:SetFrameLevel(VoidStorageFrame:GetFrameLevel() + 10)
AS:StripTextures(VoidStorageBorderFrame)
AS:StripTextures(VoidStorageDepositFrame)
AS:StripTextures(VoidStorageWithdrawFrame)
AS:StripTextures(VoidStorageCostFrame)
AS:StripTextures(VoidStorageStorageFrame)
VoidStoragePurchaseFrame:SetFrameLevel(VoidStorageFrame:GetFrameLevel() + 10)
AS:SkinFrame(VoidStorageFrame)
VoidStorageFrame:CreateShadow()
AS:SkinFrame(VoidStoragePurchaseFrame)
AS:SkinButton(VoidStoragePurchaseButton)
AS:SkinButton(VoidStorageHelpBoxButton)
AS:SkinButton(VoidStorageTransferButton)
-- dress
AS:SkinFrame(SideDressUpFrame, nil, nil, true)
VoidStorageFrame:HookScript('OnShow', function(self)
SideDressUpFrame:SetPoint("TOPLEFT", self, "TOPRIGHT", 2, -15)
end)
AS:SkinButton(SideDressUpModelResetButton)
AS:SkinCloseButton(SideDressUpModelCloseButton)
AS:SkinCloseButton(VoidStorageBorderFrame.CloseButton)
AS:SkinEditBox(VoidItemSearchBox)
AS:SkinButton(VoidStorageFrame.Page1, true)
AS:StyleButton(VoidStorageFrame.Page1)
for _, Frame in pairs({ 'Page1', 'Page2' }) do
AS:SkinButton(VoidStorageFrame[Frame], true)
AS:StyleButton(VoidStorageFrame[Frame])
AS:SkinTexture(VoidStorageFrame[Frame]:GetNormalTexture())
VoidStorageFrame[Frame]:GetNormalTexture():SetInside()
end
VoidStorageFrame.Page1:SetNormalTexture("Interface\\Icons\\INV_Enchant_EssenceCosmicGreater")
VoidStorageFrame.Page1:SetPoint("LEFT", "$parent", "TOPRIGHT", 2, -60)
AS:SkinTexture(VoidStorageFrame.Page1:GetNormalTexture())
VoidStorageFrame.Page1:GetNormalTexture():SetInside()
VoidStorageFrame.Page1:SetPoint("LEFT", "$parent", "TOPRIGHT", 1, -60)
AS:SkinButton(VoidStorageFrame.Page2, true)
AS:StyleButton(VoidStorageFrame.Page2)
VoidStorageFrame.Page2:SetNormalTexture("Interface\\Icons\\INV_Enchant_EssenceArcaneLarge")
AS:SkinTexture(VoidStorageFrame.Page2:GetNormalTexture())
VoidStorageFrame.Page2:GetNormalTexture():SetInside()
for _, StorageType in pairs( {'Deposit', 'Withdraw'} ) do
for i = 1, 9 do
for StorageType, NumSlots in pairs({ ['Deposit'] = 9, ['Withdraw'] = 9, ['Storage'] = 80 }) do
for i = 1, NumSlots do
local Button = _G["VoidStorage"..StorageType.."Button"..i]
_G["VoidStorage"..StorageType.."Button"..i.."Bg"]:Hide()
AS:SkinFrame(Button, nil, true)
AS:SkinFrame(Button)
AS:StyleButton(Button)
AS:SkinTexture(Button.icon)
Button.icon:SetInside()
Button.IconBorder:SetAlpha(0)
hooksecurefunc(Button.IconBorder, 'SetVertexColor', function(self, r, g, b)
Button:SetBackdropBorderColor(r, g, b)
end)
hooksecurefunc(Button.IconBorder, 'Hide', function(self, r, g, b)
Button:SetBackdropBorderColor(unpack(AS.BorderColor))
end)
hooksecurefunc(Button.IconBorder, 'SetVertexColor', function(self, r, g, b) Button:SetBackdropBorderColor(r, g, b) end)
hooksecurefunc(Button.IconBorder, 'Hide', function(self, r, g, b) Button:SetBackdropBorderColor(unpack(AS.BorderColor)) end)
end
end
for i = 1, 80 do
local Button = _G["VoidStorageStorageButton"..i]
_G["VoidStorageStorageButton"..i.."Bg"]:Hide()
AS:SkinFrame(Button, nil, true)
AS:StyleButton(Button)
AS:SkinTexture(Button.icon)
Button.icon:SetInside()
Button.IconBorder:SetAlpha(0)
hooksecurefunc(Button.IconBorder, 'SetVertexColor', function(self, r, g, b)
Button:SetBackdropBorderColor(r, g, b)
end)
hooksecurefunc(Button.IconBorder, 'Hide', function(self)
Button:SetBackdropBorderColor(unpack(AS.BorderColor))
end)
end
AS:SkinFrame(SideDressUpFrame, nil, nil, true)
VoidStorageFrame:HookScript('OnShow', function(self) SideDressUpFrame:SetPoint("TOPLEFT", self, "TOPRIGHT", 2, -15) end)
AS:SkinButton(SideDressUpModelResetButton)
AS:SkinCloseButton(SideDressUpModelCloseButton)
end
AS:RegisterSkin("Blizzard_VoidStorage", AS.Blizzard_VoidStorage, 'ADDON_LOADED')
\ No newline at end of file
AS:RegisterSkin("Blizzard_VoidStorage", AS.Blizzard_VoidStorage, 'ADDON_LOADED')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment