Quantcast
--[[
##############################################################################
_____/\\\\\\\\\\\____/\\\________/\\\__/\\\________/\\\__/\\\\\\\\\\\_       #
 ___/\\\/////////\\\_\/\\\_______\/\\\_\/\\\_______\/\\\_\/////\\\///__      #
  __\//\\\______\///__\//\\\______/\\\__\/\\\_______\/\\\_____\/\\\_____     #
   ___\////\\\__________\//\\\____/\\\___\/\\\_______\/\\\_____\/\\\_____    #
    ______\////\\\________\//\\\__/\\\____\/\\\_______\/\\\_____\/\\\_____   #
     _________\////\\\______\//\\\/\\\_____\/\\\_______\/\\\_____\/\\\_____  #
      __/\\\______\//\\\______\//\\\\\______\//\\\______/\\\______\/\\\_____ #
       _\///\\\\\\\\\\\/________\//\\\________\///\\\\\\\\\/____/\\\\\\\\\\\_#
        ___\///////////___________\///___________\/////////_____\///////////_#
##############################################################################
S U P E R - V I L L A I N - U I   By: Munglunch                              #
##############################################################################
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
local unpack    = _G.unpack;
local select    = _G.select;
local pairs     = _G.pairs;
--[[
##########################################################
LOCALIZED GLOBALS
##########################################################
]]--
local SVUI_CLASS_COLORS = _G.SVUI_CLASS_COLORS
local RAID_CLASS_COLORS = _G.RAID_CLASS_COLORS
--[[
##########################################################
GET ADDON DATA
##########################################################
]]--
local SV, L = unpack(select(2, ...));
local scc = SVUI_CLASS_COLORS[SV.class];
local rcc = RAID_CLASS_COLORS[SV.class];
local r2 = .1 + (rcc.r * .1)
local g2 = .1 + (rcc.g * .1)
local b2 = .1 + (rcc.b * .1)
--[[
##########################################################
LAYOUT PRESETS
##########################################################
]]--
local presets = {
	["bars"] = {
		["link"] = "SVBar",
		["default"] = {
			["Bar1"] = {
				buttonsize = 32
			},
			["Bar2"] = {
				enable = false
			},
			["Bar3"] = {
				buttons = 6,
				buttonspacing = 2,
				buttonsPerRow = 6,
				buttonsize = 32
			},
			["Bar5"] = {
				buttons = 6,
				buttonspacing = 2,
				buttonsPerRow = 6,
				buttonsize = 32
			}
		},
		["onebig"] = {
			["Bar1"] = {
				buttonsize = 40
			},
			["Bar2"] = {
				enable = false
			},
			["Bar3"] = {
				buttons = 6,
				buttonspacing = 2,
				buttonsPerRow = 6,
				buttonsize = 40
			},
			["Bar5"] = {
				buttons = 6,
				buttonspacing = 2,
				buttonsPerRow = 6,
				buttonsize = 40
			}
		},
		["twosmall"] = {
			["Bar1"] = {
				buttonsize = 32
			},
			["Bar2"] = {
				enable = true,
				buttonsize = 32
			},
			["Bar3"] = {
				buttons = 12,
				buttonspacing = 2,
				buttonsPerRow = 6,
				buttonsize = 32
			},
			["Bar5"] = {
				buttons = 12,
				buttonspacing = 2,
				buttonsPerRow = 6,
				buttonsize = 32
			}
		},
		["twobig"] = {
			["Bar1"] = {
				buttonsize = 40
			},
			["Bar2"] = {
				enable = true,
				buttonsize = 40
			},
			["Bar3"] = {
				buttons = 12,
				buttonspacing = 2,
				buttonsPerRow = 6,
				buttonsize = 40
			},
			["Bar5"] = {
				buttons = 12,
				buttonspacing = 2,
				buttonsPerRow = 6,
				buttonsize = 40
			}
		},
	},
};