--[[ ############################################################################## _____/\\\\\\\\\\\____/\\\________/\\\__/\\\________/\\\__/\\\\\\\\\\\_ # ___/\\\/////////\\\_\/\\\_______\/\\\_\/\\\_______\/\\\_\/////\\\///__ # __\//\\\______\///__\//\\\______/\\\__\/\\\_______\/\\\_____\/\\\_____ # ___\////\\\__________\//\\\____/\\\___\/\\\_______\/\\\_____\/\\\_____ # ______\////\\\________\//\\\__/\\\____\/\\\_______\/\\\_____\/\\\_____ # _________\////\\\______\//\\\/\\\_____\/\\\_______\/\\\_____\/\\\_____ # __/\\\______\//\\\______\//\\\\\______\//\\\______/\\\______\/\\\_____ # _\///\\\\\\\\\\\/________\//\\\________\///\\\\\\\\\/____/\\\\\\\\\\\_# ___\///////////___________\///___________\/////////_____\///////////_# ############################################################################## 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 = { ["media"] = { ["link"] = "media", ["default"] = { ["colors"] = { ["special"] = {.37, .32, .29, 1}, }, ["textures"] = { ["pattern"] = "SVUI Backdrop 1", ["comic"] = "SVUI Comic 1", ["unitlarge"] = "SVUI Unit BG 1", ["unitsmall"] = "SVUI Small BG 1", }, ["unitframes"] = { ["buff_bars"] = {.91, .91, .31, 1}, ["health"] = {.1, .6, .02, 1}, ["casting"] = {.91, .91, .31, 1}, ["spark"] = {1, .72, 0, 1}, }, }, ["kaboom"] = { ["colors"] = { ["special"] = {.28, .31, .32, 1}, }, ["textures"] = { ["pattern"] = "SVUI Backdrop 2", ["comic"] = "SVUI Comic 2", ["unitlarge"] = "SVUI Unit BG 2", ["unitsmall"] = "SVUI Small BG 2", }, ["unitframes"] = { ["buff_bars"] = {.51, .79, 0, 1}, ["health"] = {.16, .86, .22, 1}, ["casting"] = {.91, .91, 0, 1}, ["spark"] = {1, .72, 0, 1}, }, }, ["classy"] = { ["colors"] = { ["special"] = {r2, g2, b2, 1}, }, ["textures"] = { ["pattern"] = "SVUI Backdrop 3", ["comic"] = "SVUI Comic 3", ["unitlarge"] = "SVUI Unit BG 3", ["unitsmall"] = "SVUI Small BG 3", }, ["unitframes"] = { ["buff_bars"] = {scc.r, scc.g, scc.b, 1}, ["health"] = {.16, .86, .22, 1}, ["casting"] = {.91, .91, 0, 1}, ["spark"] = {1, .72, 0, 1}, }, }, ["dark"] = { ["colors"] = { ["special"] = {.25, .26, .27, 1}, }, ["textures"] = { ["pattern"] = "SVUI Backdrop 4", ["comic"] = "SVUI Comic 4", ["unitlarge"] = "SVUI Unit BG 4", ["unitsmall"] = "SVUI Small BG 4", }, ["unitframes"] = { ["buff_bars"] = {.45, .55, .15, 1}, ["health"] = {.06, .06, .06, 1}, ["casting"] = {.8, .8, 0, 1}, ["spark"] = {1, .72, 0, 1}, }, }, } };