-- Settings.lua local PowerTypeMana = Enum.PowerType.Mana; local PowerTypeRage = Enum.PowerType.Rage; local PowerTypeFocus = Enum.PowerType.Focus; local PowerTypeEnergy = Enum.PowerType.Energy; local PowerTypeRunic = Enum.PowerType.RunicPower; local rawget = rawget; -- configurable settings -- character specific settings local charDefaults = { Clickheal = {}, }; local chars = { ["Sylvanas"] = { ["Vildana"] = { Clickheal = { ["type1"] = "spell", ["type2"] = "spell", ["shift-type1"] = "spell", ["shift-type2"] = "spell", ["ctrl-type1"] = "spell", ["alt-type2"] = "spell", ["alt-shift-type1"] = "spell", ["alt-shift-type2"] = "spell", ["spell1"] = "Holy Light", ["spell2"] = "Bestow Faith", ["shift-spell1"] = "Flash of Light", ["shift-spell2"] = "Light of the Martyr", ["ctrl-spell1"] = "Cleanse", ["alt-spell2"] = "Lay on Hands", ["alt-shift-spell1"] = "Beacon of Light", ["alt-shift-spell2"] = "Beacon of Faith", }, }, }, ["Stormreaver"] = { ["Vildan"] = { Clickheal = { ["type1"] = "spell", ["type2"] = "spell", ["shift-type1"] = "spell", ["shift-type2"] = "spell", ["ctrl-type1"] = "macro", ["alt-type2"] = "spell", ["alt-shift-type1"] = "spell", ["alt-shift-type2"] = "spell", ["spell1"] = "Holy Light", ["spell2"] = "Bestow Faith", ["shift-spell1"] = "Flash of Light", ["shift-spell2"] = "Light of the Martyr", ["ctrl-macro1"] = "Cleansing", ["alt-spell2"] = "Lay on Hands", ["alt-shift-spell1"] = "Beacon of Light", ["alt-shift-spell2"] = "Beacon of Faith", }, }, ["Gedren"] = { Clickheal = { ["type1"] = "spell", ["type2"] = "spell", ["shift-type1"] = "spell", ["shift-type2"] = "spell", ["ctrl-type1"] = "spell", ["alt-type2"] = "spell", ["spell1"] = "Healing Touch", ["spell2"] = "Lifebloom", ["shift-spell1"] = "Regrowth", ["shift-spell2"] = "Swiftmend", ["ctrl-spell1"] = "Nature's Cure", ["alt-spell2"] = "Rebirth", }, }, }, }; -- account-wide settings local settings = { Player = { Width = 160, Height = 50, AnchorX = -300, AnchorY = -175, }, Pet = { Width = 80, Height = 25, AnchorX = -10, AnchorY = 0, }, Target = { Width = 160, Height = 50, AnchorX = 300, AnchorY = -175, }, Boss = { Width = 140, Height = 30, AnchorX = 550, AnchorY = 300, }, BaseColor = {0, 0, 0, 0.5}, BgColor = {0.1, 0.1, 0.1, 0.4}, HealthColor = {0.5, 0.5, 0.5}, ShieldColor = {0.1, 0.8, 1}, ShieldhlColor = {0.5, 0.8, 1}, HealpredColor = {0.5, 0.6, 0.5}, PowerColors = { [PowerTypeMana] = {0, 0.5, 1}, [PowerTypeRage] = {1, 0, 0}, [PowerTypeFocus] = {1, 0.5, 0}, [PowerTypeEnergy] = {1, 0.8, 0}, [PowerTypeRunic] = {0.8, 0, 0.2}, }, }; OmaUFSettings = settings; -- watch to not remove mana entry setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end}); function OmaUFLoadChar() local name, realm = UnitFullName("player"); if chars[realm] and chars[realm][name] then settings.Character = chars[realm][name]; else settings.Character = charDefaults; end end