Quantcast
--[[
##############################################################################
_____/\\\\\\\\\\\____/\\\________/\\\__/\\\________/\\\__/\\\\\\\\\\\_       #
 ___/\\\/////////\\\_\/\\\_______\/\\\_\/\\\_______\/\\\_\/////\\\///__      #
  __\//\\\______\///__\//\\\______/\\\__\/\\\_______\/\\\_____\/\\\_____     #
   ___\////\\\__________\//\\\____/\\\___\/\\\_______\/\\\_____\/\\\_____    #
    ______\////\\\________\//\\\__/\\\____\/\\\_______\/\\\_____\/\\\_____   #
     _________\////\\\______\//\\\/\\\_____\/\\\_______\/\\\_____\/\\\_____  #
      __/\\\______\//\\\______\//\\\\\______\//\\\______/\\\______\/\\\_____ #
       _\///\\\\\\\\\\\/________\//\\\________\///\\\\\\\\\/____/\\\\\\\\\\\_#
        ___\///////////___________\///___________\/////////_____\///////////_#
##############################################################################
S U P E R - V I L L A I N - U I   By: Munglunch                              #
##############################################################################
--]]
local SuperVillain, L = unpack(SVUI);
local STYLE = _G.StyleVillain;
--[[
##########################################################
HELPERS
##########################################################
]]--
local VoidStorageList = {
  "VoidStorageBorderFrame",
  "VoidStorageDepositFrame",
  "VoidStorageWithdrawFrame",
  "VoidStorageCostFrame",
  "VoidStorageStorageFrame",
  "VoidStoragePurchaseFrame",
  "VoidItemSearchBox"
};
--[[
##########################################################
VOIDSTORAGE STYLER
##########################################################
]]--
local function VoidStorageStyle()
  if SuperVillain.db.SVStyle.blizzard.enable ~= true or SuperVillain.db.SVStyle.blizzard.voidstorage ~= true then
     return
  end;
  for _,frame in pairs(VoidStorageList)do
    _G[frame]:Formula409()
  end;
  VoidStoragePurchaseFrame:SetFrameStrata('DIALOG')
  VoidStorageFrame:SetPanelTemplate("Halftone")
  VoidStoragePurchaseFrame:SetFixedPanelTemplate("Button", true)
  VoidStorageFrameMarbleBg:MUNG()
  VoidStorageFrameLines:MUNG()
  select(2, VoidStorageFrame:GetRegions()):MUNG()
  VoidStoragePurchaseButton:SetButtonTemplate()
  VoidStorageHelpBoxButton:SetButtonTemplate()
  VoidStorageTransferButton:SetButtonTemplate()
  STYLE:ApplyCloseButtonStyle(VoidStorageBorderFrame.CloseButton)
  VoidItemSearchBox:SetPanelTemplate("Inset")
  VoidItemSearchBox.Panel:Point("TOPLEFT", 10, -1)
  VoidItemSearchBox.Panel:Point("BOTTOMRIGHT", 4, 1)
  for e = 1, 9 do
    local f = _G["VoidStorageDepositButton"..e]
    local g = _G["VoidStorageWithdrawButton"..e]
    local h = _G["VoidStorageDepositButton"..e.."IconTexture"]
    local i = _G["VoidStorageWithdrawButton"..e.."IconTexture"]
    _G["VoidStorageDepositButton"..e.."Bg"]:Hide()
    _G["VoidStorageWithdrawButton"..e.."Bg"]:Hide()
    f:SetSlotTemplate(true)
    g:SetSlotTemplate(true)
    h:SetTexCoord(0.1, 0.9, 0.1, 0.9)
    h:FillInner()
    i:SetTexCoord(0.1, 0.9, 0.1, 0.9)
    i:FillInner()
  end;
  for e = 1, 80 do
    local j = _G["VoidStorageStorageButton"..e]
    local k = _G["VoidStorageStorageButton"..e.."IconTexture"]
    _G["VoidStorageStorageButton"..e.."Bg"]:Hide()
    j:SetSlotTemplate(true)
    k:SetTexCoord(0.1, 0.9, 0.1, 0.9)
    k:FillInner()
  end
end;
--[[
##########################################################
STYLE LOADING
##########################################################
]]--
STYLE:SaveBlizzardStyle("Blizzard_VoidStorageUI", VoidStorageStyle)