X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/d180f82975c6b13a3380bd8df5ab47df70112c49..4a66dd6d6fe87c9e881b0c7d62ca339907619d4d:/OmaRF/Settings.lua diff --git a/OmaRF/Settings.lua b/OmaRF/Settings.lua index 997e4c7..bdcfb86 100644 --- a/OmaRF/Settings.lua +++ b/OmaRF/Settings.lua @@ -9,8 +9,7 @@ local rawget = rawget; -- configurable settings -- character specific settings local charDefaults = { - Width = 80, - Height = 40, + Positions = {"TOPRIGHT", "BOTTOMLEFT"}, AnchorX = 0, AnchorY = -330, WatchedAuras = { @@ -21,22 +20,14 @@ local charDefaults = { local chars = { ["Stormreaver"] = { ["Vildan"] = { - Width = 80, - Height = 40, AnchorX = 0, AnchorY = -330, - WatchedAuras = { - [53563] = "TOPRIGHT", - [156910] = "TOPRIGHT", - [200025] = "TOPRIGHT", - [200654] = "BOTTOMLEFT", - }, Clickheal = { ["type1"] = "spell", ["type2"] = "spell", ["shift-type1"] = "spell", ["shift-type2"] = "spell", - ["ctrl-type1"] = "spell", + ["ctrl-type1"] = "macro", ["alt-type2"] = "spell", ["alt-shift-type1"] = "spell", ["alt-shift-type2"] = "spell", @@ -44,18 +35,37 @@ local chars = { ["spell2"] = "Bestow Faith", ["shift-spell1"] = "Flash of Light", ["shift-spell2"] = "Light of the Martyr", - ["ctrl-spell1"] = "Cleanse", + ["ctrl-macro1"] = "Cleansing", ["alt-spell2"] = "Lay on Hands", ["alt-shift-spell1"] = "Beacon of Light", ["alt-shift-spell2"] = "Beacon of Faith", }, }, + ["Gedren"] = { + AnchorX = 0, + AnchorY = -330, + 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 = { - Positions = {"TOPRIGHT", "BOTTOMLEFT"}, + Width = 80, + Height = 40, IndSize = 14, BaseColor = {0, 0, 0}, BgColor = {0.7, 0.7, 0.7}, @@ -72,36 +82,47 @@ local settings = { [PowerTypeRage] = {1, 0, 0}, [PowerTypeFocus] = {1, 0.5, 0}, [PowerTypeEnergy] = {1, 0.8, 0}, - [PowerTypeRunic] = {0.9, 0, 0.1}, + [PowerTypeRunic] = {0.8, 0, 0.2}, }, MajorAuras = { -- Antorus - ["Psychic Assault"] = true, - ["Everburning Flames"] = true, - ["Corrupt"] = true, - ["Sleep Canister"] = true, - ["Misery"] = true, - ["Necrotic Embrace"] = true, - ["Fulminating Pulse"] = true, - ["Chilled Blood"] = true, - ["Soulblight"] = true, - ["Soulburst"] = true, - ["Soulbomb"] = true, + ["Psychic Assault"] = {bar=false}, + ["Everburning Flames"] = {bar=false}, + ["Corrupt"] = {bar=false}, + ["Sleep Canister"] = {bar=false}, + ["Misery"] = {bar=true}, + ["Necrotic Embrace"] = {bar=false}, + ["Fulminating Pulse"] = {bar=false}, + ["Chilled Blood"] = {bar=false}, + ["Soulblight"] = {bar=false}, + ["Soulburst"] = {bar=false}, + ["Soulbomb"] = {bar=false}, + ["Shock Grenade"] = {bar=false}, + ["Acidic Web"] = {bar=false}, + ["Hungering Gloom"] = {bar=true}, + -- Trial of Valor + ["Unholy Reckoning"] = {bar=false}, + -- Nighthold + ["Carrion Plague"] = {bar=false}, + ["Soul Corrosion"] = {bar=false}, -- Proving Grounds for testing - ["Aqua Bomb"] = true, + ["Aqua Bomb"] = {bar=false}, -- Mythic+ - [209858] = true, -- Necrotic Rot - [240559] = true, -- Grievous Wound - [240443] = true, -- Burst + [209858] = {bar=false}, -- Necrotic Rot + [240559] = {bar=false}, -- Grievous Wound + --["Grievous Wound"] = {bar=false}, -- Grievous Wound + [240443] = {bar=false}, -- Burst }, }; OmaRFSettings = settings; -- watch to not remove mana entry setmetatable(settings.PowerColors, {__index = function(t) return rawget(t, PowerTypeMana) end}); -local name, realm = UnitFullName("player"); -if chars[realm] and chars[realm][name] then - settings.Character = chars[realm][name]; -else - settings.Character = charDefaults; +function OmaRFLoadChar() + local name, realm = UnitFullName("player"); + if chars[realm] and chars[realm][name] then + settings.Character = chars[realm][name]; + else + settings.Character = charDefaults; + end end