Update default configuration
This comprises many different configuration changes over a longer time for multiple classes.
This commit is contained in:
323
src/frames.lua
323
src/frames.lua
@@ -26,27 +26,27 @@ local colors = {
|
||||
poison = { 0.0, 0.7, 0.7 },
|
||||
curse = { 0.7, 0.0, 0.7 },
|
||||
red = { 1, 0, 0 },
|
||||
blue = { .4, 0.4, 1 },
|
||||
light_blue = { .7, .7, 1 },
|
||||
blue = { 0.4, 0.4, 1 },
|
||||
light_blue = { 0.7, 0.7, 1 },
|
||||
}
|
||||
|
||||
local function RangeConfig()
|
||||
local _, class = UnitClass("player")
|
||||
if class == "SHAMAN" then
|
||||
return {
|
||||
friendly = "Healing Surge",
|
||||
friendly = "Healing Wave",
|
||||
enemy = "Lightning Bolt",
|
||||
fade = 0.2
|
||||
fade = 0.2,
|
||||
}
|
||||
elseif class == "PRIEST" then
|
||||
return {
|
||||
friendly = "Flash Heal",
|
||||
enemy = "Smite",
|
||||
fade = 0.2
|
||||
fade = 0.2,
|
||||
}
|
||||
else
|
||||
return {
|
||||
fade = 0.2
|
||||
fade = 0.2,
|
||||
}
|
||||
end
|
||||
end
|
||||
@@ -61,17 +61,20 @@ local function MouseConfig()
|
||||
button = "mouse2",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data =
|
||||
"/use [@UNIT,dead,help]Ancestral Vision; [@UNIT,help]Chain Heal"
|
||||
data = "/use [@UNIT,dead,help]Ancestral Vision; [@UNIT,help]Chain Heal",
|
||||
},
|
||||
{
|
||||
button = "mouse3",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data =
|
||||
"/use [@UNIT,dead,help]Ancestral Spirit; [@UNIT,help]Purify Spirit"
|
||||
data = "/use [@UNIT,dead,help]Ancestral Spirit; [@UNIT,help]Purify Spirit",
|
||||
},
|
||||
{
|
||||
button = "wheel-up",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,help]Healing Surge",
|
||||
},
|
||||
{ button = "wheel-up", mods = {}, kind = "macro", data = "/use [@UNIT,help]Healing Surge" },
|
||||
{ button = "wheel-down", mods = {}, kind = "macro", data = "/use [@UNIT,help]Riptide" },
|
||||
|
||||
-- alt
|
||||
@@ -84,8 +87,7 @@ local function MouseConfig()
|
||||
button = "wheel-up",
|
||||
mods = { shift = true },
|
||||
kind = "macro",
|
||||
data =
|
||||
"/cast [@UNIT,help]Water Walking;\n/stopspelltarget"
|
||||
data = "/cast [@UNIT,help]Water Walking;\n/stopspelltarget",
|
||||
},
|
||||
}
|
||||
elseif class == "PRIEST" then
|
||||
@@ -96,16 +98,21 @@ local function MouseConfig()
|
||||
button = "mouse2",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,dead,help]Mass Resurrection; [@UNIT,help]Power Word: Radiance"
|
||||
data = "/use [@UNIT,dead,help]Mass Resurrection; [@UNIT,help]Power Word: Radiance",
|
||||
},
|
||||
{
|
||||
button = "mouse3",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,dead,help]Resurrection; [@UNIT,help]Purify"
|
||||
data = "/use [@UNIT,dead,help]Resurrection; [@UNIT,help]Purify",
|
||||
},
|
||||
{ button = "mouse4", mods = {}, kind = "spell", data = "Shadow Covenant" },
|
||||
{ button = "wheel-up", mods = {}, kind = "macro", data = "/use [@UNIT,help]Flash Heal" },
|
||||
{
|
||||
button = "wheel-up",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,help]Flash Heal",
|
||||
},
|
||||
{ button = "wheel-down", mods = {}, kind = "macro", data = "/use [@UNIT,help]Renew" },
|
||||
|
||||
-- alt
|
||||
@@ -121,13 +128,13 @@ local function MouseConfig()
|
||||
button = "wheel-up",
|
||||
mods = { shift = true },
|
||||
kind = "macro",
|
||||
data = "/cast [@UNIT,help]Levitate;\n/stopspelltarget"
|
||||
data = "/cast [@UNIT,help]Levitate;\n/stopspelltarget",
|
||||
},
|
||||
{
|
||||
button = "wheel-down",
|
||||
mods = { shift = true },
|
||||
kind = "macro",
|
||||
data = "/cast [@UNIT,help]Leap of Faith;\n/stopspelltarget"
|
||||
data = "/cast [@UNIT,help]Leap of Faith;\n/stopspelltarget",
|
||||
},
|
||||
}
|
||||
elseif class == "MONK" then
|
||||
@@ -138,19 +145,26 @@ local function MouseConfig()
|
||||
button = "mouse2",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = ("/use [@UNIT,known:Reawaken,dead,help]Reawaken; "
|
||||
data = (
|
||||
"/use [@UNIT,known:Reawaken,dead,help]Reawaken; "
|
||||
.. "[@UNIT,dead,help]Resuscitate; "
|
||||
.. "[@UNIT,help]Tiger's Lust"),
|
||||
.. "[@UNIT,help]Tiger's Lust"
|
||||
),
|
||||
},
|
||||
{
|
||||
button = "mouse3",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,dead,help]Resuscitate; [@UNIT,help]Detox"
|
||||
data = "/use [@UNIT,dead,help]Resuscitate; [@UNIT,help]Detox",
|
||||
},
|
||||
{ button = "mouse4", mods = {}, kind = "spell", data = "Shadow Covenant" },
|
||||
{ button = "wheel-up", mods = {}, kind = "macro", data = "/use [@UNIT,help]Vivify" },
|
||||
{ button = "wheel-down", mods = {}, kind = "macro", data = "/use [@UNIT,help]Soothing Mist" },
|
||||
{
|
||||
button = "wheel-down",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,help]Soothing Mist",
|
||||
},
|
||||
|
||||
-- alt
|
||||
{ button = "mouse1", mods = { alt = true }, kind = "spell", data = "Power Word: Life" },
|
||||
@@ -165,15 +179,71 @@ local function MouseConfig()
|
||||
button = "wheel-up",
|
||||
mods = { shift = true },
|
||||
kind = "macro",
|
||||
data = "/cast [@UNIT,help]Levitate;\n/stopspelltarget"
|
||||
data = "/cast [@UNIT,help]Levitate;\n/stopspelltarget",
|
||||
},
|
||||
{
|
||||
button = "wheel-down",
|
||||
mods = { shift = true },
|
||||
kind = "macro",
|
||||
data = "/cast [@UNIT,help]Leap of Faith;\n/stopspelltarget"
|
||||
data = "/cast [@UNIT,help]Leap of Faith;\n/stopspelltarget",
|
||||
},
|
||||
}
|
||||
elseif class == "PALADIN" then
|
||||
return {
|
||||
-- No modifier
|
||||
{ button = "mouse1", mods = {}, kind = "target" },
|
||||
{
|
||||
button = "mouse2",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = (
|
||||
"/use [@UNIT,combat,dead,help]Intercession; "
|
||||
.. "[@UNIT,known:Absolution,dead,help]Absolution; "
|
||||
.. "[@UNIT,dead,help]Redemption; "
|
||||
.. "[@UNIT,help]Blessing of Freedom"
|
||||
),
|
||||
},
|
||||
{
|
||||
button = "mouse3",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,dead,help]Redemption; [@UNIT,help]Cleanse Toxins",
|
||||
},
|
||||
{
|
||||
button = "mouse4",
|
||||
mods = {},
|
||||
kind = "spell",
|
||||
data = "Word of Glory",
|
||||
},
|
||||
{
|
||||
button = "mouse5",
|
||||
mods = {},
|
||||
kind = "spell",
|
||||
data = "Blessing of Summer",
|
||||
},
|
||||
{
|
||||
button = "wheel-up",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,help]Flash of Light",
|
||||
},
|
||||
{
|
||||
button = "wheel-down",
|
||||
mods = {},
|
||||
kind = "macro",
|
||||
data = "/use [@UNIT,help,known:Holy Shock]Holy Shock; [@UNIT,help]Word of Glory",
|
||||
},
|
||||
|
||||
-- Shift
|
||||
{ button = "mouse2", mods = { shift = true }, kind = "togglemenu" },
|
||||
|
||||
-- alt
|
||||
{ button = "mouse1", mods = { alt = true }, kind = "spell", data = "Blessing of Sacrifice" },
|
||||
{ button = "mouse2", mods = { alt = true }, kind = "spell", data = "Blessing of Protection" },
|
||||
{ button = "mouse3", mods = { alt = true }, kind = "spell", data = "Blessing of Spellwarding" },
|
||||
{ button = "wheel-up", mods = { alt = true }, kind = "spell", data = "Holy Light" },
|
||||
{ button = "wheel-down", mods = { alt = true }, kind = "spell", data = "Lay on Hands" },
|
||||
}
|
||||
else
|
||||
return {
|
||||
-- Super basic defaults
|
||||
@@ -199,7 +269,7 @@ local function TriggerClassConfig()
|
||||
y = -3,
|
||||
color = colors.white,
|
||||
showStacks = true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
@@ -213,21 +283,20 @@ local function TriggerClassConfig()
|
||||
y = -3,
|
||||
color = colors.white,
|
||||
showStacks = true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 61295,
|
||||
own = true, -- Riptide
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
kind = "IconIndicator",
|
||||
size = 17,
|
||||
point = "BOTTOMLEFT",
|
||||
x = 3,
|
||||
y = 3,
|
||||
color = colors.cyan,
|
||||
fadeTime = 10.0,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "StatusTrigger",
|
||||
@@ -238,7 +307,7 @@ local function TriggerClassConfig()
|
||||
thickness = 3.0,
|
||||
color = colors.red,
|
||||
level = 0,
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
elseif class == "PRIEST" then
|
||||
@@ -255,7 +324,7 @@ local function TriggerClassConfig()
|
||||
y = -3,
|
||||
color = colors.white,
|
||||
fadeTime = 10.0,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
@@ -270,7 +339,7 @@ local function TriggerClassConfig()
|
||||
color = colors.orange,
|
||||
fadeTime = 10.0,
|
||||
flashTime = 1.3,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
@@ -284,7 +353,7 @@ local function TriggerClassConfig()
|
||||
y = -3,
|
||||
color = { 0.7, 0.9, 1 },
|
||||
showStacks = true,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
@@ -298,7 +367,7 @@ local function TriggerClassConfig()
|
||||
y = 3,
|
||||
color = colors.cyan,
|
||||
fadeTime = 10.0,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
@@ -313,7 +382,7 @@ local function TriggerClassConfig()
|
||||
color = colors.white,
|
||||
fadeTime = 10.0,
|
||||
flashTime = 1.3,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
@@ -327,7 +396,7 @@ local function TriggerClassConfig()
|
||||
y = 3,
|
||||
color = colors.violet,
|
||||
fadeTime = 10.0,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "StatusTrigger",
|
||||
@@ -338,26 +407,161 @@ local function TriggerClassConfig()
|
||||
thickness = 3.0,
|
||||
color = colors.red,
|
||||
level = 0,
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
--[[{
|
||||
kind="MultiTrigger", invert=false,
|
||||
children = {
|
||||
{kind="StatusTrigger", status="Immune", defaultData={color=colors.violet}}, -- Renew
|
||||
{kind="AuraTrigger", spellId=139, own=true, defaultData={color=colors.cyan}}, -- Renew
|
||||
{kind="AuraTrigger", spellId=21562, own=true, defaultData={color=colors.white}}, -- pw:f
|
||||
},
|
||||
elseif class == "PALADIN" then
|
||||
return {
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 287280, -- Glimmer of Light
|
||||
own = true,
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point="TOPRIGHT",
|
||||
x=-3, y=-3,
|
||||
point = "TOPLEFT",
|
||||
x = 3,
|
||||
y = -3,
|
||||
color = colors.white,
|
||||
}
|
||||
}--]]
|
||||
fadeTime = 10.0,
|
||||
flashTime = 1.3,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 25771, -- Forbearance
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point = "TOPLEFT",
|
||||
x = 22,
|
||||
y = -3,
|
||||
color = colors.red,
|
||||
fadeTime = 10.0,
|
||||
flashTime = 1.3,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 53563, -- Beacon of Light
|
||||
own = true,
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point = "TOPLEFT",
|
||||
x = 41,
|
||||
y = -3,
|
||||
color = colors.white,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 156910, -- Beacon of Faith
|
||||
own = true,
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point = "TOPLEFT",
|
||||
x = 41,
|
||||
y = -3,
|
||||
color = colors.light_blue,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 200025, -- Beacon of Virtue
|
||||
own = true,
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point = "TOPLEFT",
|
||||
x = 41,
|
||||
y = -3,
|
||||
color = colors.white,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 1044, -- Blessing of Freedom
|
||||
own = true,
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point = "BOTTOMLEFT",
|
||||
x = 3,
|
||||
y = 3,
|
||||
color = colors.orange,
|
||||
flashTime = 1.3,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 1111, -- Blessing of Spellwarding
|
||||
own = true,
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point = "BOTTOMLEFT",
|
||||
x = 41,
|
||||
y = 3,
|
||||
color = colors.cyan,
|
||||
flashTime = 1.3,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 1022, -- Blessing of Protection
|
||||
own = true,
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point = "BOTTOMLEFT",
|
||||
x = 41,
|
||||
y = 3,
|
||||
color = colors.cyan,
|
||||
flashTime = 1.3,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "AuraTrigger",
|
||||
spellId = 6940, -- Blessing of Saccrifice
|
||||
own = true,
|
||||
indicator = {
|
||||
kind = "SquareIndicator",
|
||||
size = 17,
|
||||
point = "BOTTOMLEFT",
|
||||
x = 61,
|
||||
y = 3,
|
||||
color = colors.red,
|
||||
flashTime = 1.3,
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "StatusTrigger",
|
||||
status = "Burn",
|
||||
invert = false,
|
||||
indicator = {
|
||||
kind = "BorderIndicator",
|
||||
thickness = 3.0,
|
||||
color = colors.red,
|
||||
level = 0,
|
||||
},
|
||||
},
|
||||
}
|
||||
else
|
||||
return {}
|
||||
return {
|
||||
{
|
||||
kind = "StatusTrigger",
|
||||
status = "Burn",
|
||||
invert = false,
|
||||
indicator = {
|
||||
kind = "BorderIndicator",
|
||||
thickness = 3.0,
|
||||
color = colors.red,
|
||||
level = 0,
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
@@ -377,12 +581,13 @@ local function MakeDebuffTrigger(slot, spellid, color, stacks)
|
||||
y = -3,
|
||||
color = color,
|
||||
showStacks = stacks,
|
||||
}
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
local function TriggerConfig()
|
||||
local triggers = TriggerClassConfig()
|
||||
print("Class triggers:", #triggers)
|
||||
|
||||
-- slot, spellid, color, stacks
|
||||
local debuffs = {
|
||||
@@ -423,12 +628,26 @@ local function TriggerConfig()
|
||||
{ 1, 429785, colors.red }, -- Loom (line stun)
|
||||
{ 1, 417807, colors.red, true }, -- Fyrakk
|
||||
|
||||
-- Algeth'ar Academy
|
||||
{ 1, 389033, colors.poison, true },
|
||||
{ 1, 388912, colors.red, true },
|
||||
{ 2, 391977, colors.cyan, true },
|
||||
{ 2, 389011, colors.cyan, true },
|
||||
|
||||
-- Nokhud Offensive
|
||||
{ 1, 381692, colors.red, true },
|
||||
|
||||
-- Tazavesh
|
||||
{ 1, 1240102, colors.orange, true },
|
||||
|
||||
-- Priory of the Sacred Flame
|
||||
{ 1, 424414, colors.violet, true },
|
||||
}
|
||||
|
||||
for _, debuff in ipairs(debuffs) do
|
||||
table.insert(triggers, MakeDebuffTrigger(debuff[1], debuff[2], debuff[3], debuff[4]))
|
||||
end
|
||||
print("All triggers:", #triggers)
|
||||
|
||||
-- Some more debuffs in the bottom row
|
||||
table.insert(triggers, {
|
||||
@@ -443,7 +662,7 @@ local function TriggerConfig()
|
||||
color = colors.red,
|
||||
fadeTime = 3.0,
|
||||
showStacks = true,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
return triggers
|
||||
@@ -462,7 +681,7 @@ function HideBlizzardFrames()
|
||||
TargetFrame,
|
||||
FocusFrame,
|
||||
PartyFrame,
|
||||
CompactRaidFrameContainer
|
||||
CompactRaidFrameContainer,
|
||||
}
|
||||
|
||||
for _, frame in ipairs(blizzardFrames) do
|
||||
|
Reference in New Issue
Block a user