Update default configuration

This comprises many different configuration changes over a longer time
for multiple classes.
This commit is contained in:
2025-08-24 03:15:14 +02:00
parent 6f954b9d15
commit 5bbbde3ca7

View File

@@ -26,27 +26,27 @@ local colors = {
poison = { 0.0, 0.7, 0.7 }, poison = { 0.0, 0.7, 0.7 },
curse = { 0.7, 0.0, 0.7 }, curse = { 0.7, 0.0, 0.7 },
red = { 1, 0, 0 }, red = { 1, 0, 0 },
blue = { .4, 0.4, 1 }, blue = { 0.4, 0.4, 1 },
light_blue = { .7, .7, 1 }, light_blue = { 0.7, 0.7, 1 },
} }
local function RangeConfig() local function RangeConfig()
local _, class = UnitClass("player") local _, class = UnitClass("player")
if class == "SHAMAN" then if class == "SHAMAN" then
return { return {
friendly = "Healing Surge", friendly = "Healing Wave",
enemy = "Lightning Bolt", enemy = "Lightning Bolt",
fade = 0.2 fade = 0.2,
} }
elseif class == "PRIEST" then elseif class == "PRIEST" then
return { return {
friendly = "Flash Heal", friendly = "Flash Heal",
enemy = "Smite", enemy = "Smite",
fade = 0.2 fade = 0.2,
} }
else else
return { return {
fade = 0.2 fade = 0.2,
} }
end end
end end
@@ -61,17 +61,20 @@ local function MouseConfig()
button = "mouse2", button = "mouse2",
mods = {}, mods = {},
kind = "macro", kind = "macro",
data = data = "/use [@UNIT,dead,help]Ancestral Vision; [@UNIT,help]Chain Heal",
"/use [@UNIT,dead,help]Ancestral Vision; [@UNIT,help]Chain Heal"
}, },
{ {
button = "mouse3", button = "mouse3",
mods = {}, mods = {},
kind = "macro", kind = "macro",
data = data = "/use [@UNIT,dead,help]Ancestral Spirit; [@UNIT,help]Purify Spirit",
"/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" }, { button = "wheel-down", mods = {}, kind = "macro", data = "/use [@UNIT,help]Riptide" },
-- alt -- alt
@@ -84,8 +87,7 @@ local function MouseConfig()
button = "wheel-up", button = "wheel-up",
mods = { shift = true }, mods = { shift = true },
kind = "macro", kind = "macro",
data = data = "/cast [@UNIT,help]Water Walking;\n/stopspelltarget",
"/cast [@UNIT,help]Water Walking;\n/stopspelltarget"
}, },
} }
elseif class == "PRIEST" then elseif class == "PRIEST" then
@@ -96,16 +98,21 @@ local function MouseConfig()
button = "mouse2", button = "mouse2",
mods = {}, mods = {},
kind = "macro", 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", button = "mouse3",
mods = {}, mods = {},
kind = "macro", 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 = "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" }, { button = "wheel-down", mods = {}, kind = "macro", data = "/use [@UNIT,help]Renew" },
-- alt -- alt
@@ -121,13 +128,13 @@ local function MouseConfig()
button = "wheel-up", button = "wheel-up",
mods = { shift = true }, mods = { shift = true },
kind = "macro", kind = "macro",
data = "/cast [@UNIT,help]Levitate;\n/stopspelltarget" data = "/cast [@UNIT,help]Levitate;\n/stopspelltarget",
}, },
{ {
button = "wheel-down", button = "wheel-down",
mods = { shift = true }, mods = { shift = true },
kind = "macro", kind = "macro",
data = "/cast [@UNIT,help]Leap of Faith;\n/stopspelltarget" data = "/cast [@UNIT,help]Leap of Faith;\n/stopspelltarget",
}, },
} }
elseif class == "MONK" then elseif class == "MONK" then
@@ -138,19 +145,26 @@ local function MouseConfig()
button = "mouse2", button = "mouse2",
mods = {}, mods = {},
kind = "macro", kind = "macro",
data = ("/use [@UNIT,known:Reawaken,dead,help]Reawaken; " data = (
"/use [@UNIT,known:Reawaken,dead,help]Reawaken; "
.. "[@UNIT,dead,help]Resuscitate; " .. "[@UNIT,dead,help]Resuscitate; "
.. "[@UNIT,help]Tiger's Lust"), .. "[@UNIT,help]Tiger's Lust"
),
}, },
{ {
button = "mouse3", button = "mouse3",
mods = {}, mods = {},
kind = "macro", 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 = "mouse4", mods = {}, kind = "spell", data = "Shadow Covenant" },
{ button = "wheel-up", mods = {}, kind = "macro", data = "/use [@UNIT,help]Vivify" }, { 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 -- alt
{ button = "mouse1", mods = { alt = true }, kind = "spell", data = "Power Word: Life" }, { button = "mouse1", mods = { alt = true }, kind = "spell", data = "Power Word: Life" },
@@ -165,15 +179,71 @@ local function MouseConfig()
button = "wheel-up", button = "wheel-up",
mods = { shift = true }, mods = { shift = true },
kind = "macro", kind = "macro",
data = "/cast [@UNIT,help]Levitate;\n/stopspelltarget" data = "/cast [@UNIT,help]Levitate;\n/stopspelltarget",
}, },
{ {
button = "wheel-down", button = "wheel-down",
mods = { shift = true }, mods = { shift = true },
kind = "macro", 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 else
return { return {
-- Super basic defaults -- Super basic defaults
@@ -199,7 +269,7 @@ local function TriggerClassConfig()
y = -3, y = -3,
color = colors.white, color = colors.white,
showStacks = true, showStacks = true,
} },
}, },
{ {
kind = "AuraTrigger", kind = "AuraTrigger",
@@ -213,21 +283,20 @@ local function TriggerClassConfig()
y = -3, y = -3,
color = colors.white, color = colors.white,
showStacks = true, showStacks = true,
} },
}, },
{ {
kind = "AuraTrigger", kind = "AuraTrigger",
spellId = 61295, spellId = 61295,
own = true, -- Riptide own = true, -- Riptide
indicator = { indicator = {
kind = "SquareIndicator", kind = "IconIndicator",
size = 17, size = 17,
point = "BOTTOMLEFT", point = "BOTTOMLEFT",
x = 3, x = 3,
y = 3, y = 3,
color = colors.cyan,
fadeTime = 10.0, fadeTime = 10.0,
} },
}, },
{ {
kind = "StatusTrigger", kind = "StatusTrigger",
@@ -238,7 +307,7 @@ local function TriggerClassConfig()
thickness = 3.0, thickness = 3.0,
color = colors.red, color = colors.red,
level = 0, level = 0,
} },
}, },
} }
elseif class == "PRIEST" then elseif class == "PRIEST" then
@@ -255,7 +324,7 @@ local function TriggerClassConfig()
y = -3, y = -3,
color = colors.white, color = colors.white,
fadeTime = 10.0, fadeTime = 10.0,
} },
}, },
{ {
kind = "AuraTrigger", kind = "AuraTrigger",
@@ -270,7 +339,7 @@ local function TriggerClassConfig()
color = colors.orange, color = colors.orange,
fadeTime = 10.0, fadeTime = 10.0,
flashTime = 1.3, flashTime = 1.3,
} },
}, },
{ {
kind = "AuraTrigger", kind = "AuraTrigger",
@@ -284,7 +353,7 @@ local function TriggerClassConfig()
y = -3, y = -3,
color = { 0.7, 0.9, 1 }, color = { 0.7, 0.9, 1 },
showStacks = true, showStacks = true,
} },
}, },
{ {
kind = "AuraTrigger", kind = "AuraTrigger",
@@ -298,7 +367,7 @@ local function TriggerClassConfig()
y = 3, y = 3,
color = colors.cyan, color = colors.cyan,
fadeTime = 10.0, fadeTime = 10.0,
} },
}, },
{ {
kind = "AuraTrigger", kind = "AuraTrigger",
@@ -313,7 +382,7 @@ local function TriggerClassConfig()
color = colors.white, color = colors.white,
fadeTime = 10.0, fadeTime = 10.0,
flashTime = 1.3, flashTime = 1.3,
} },
}, },
{ {
kind = "AuraTrigger", kind = "AuraTrigger",
@@ -327,7 +396,7 @@ local function TriggerClassConfig()
y = 3, y = 3,
color = colors.violet, color = colors.violet,
fadeTime = 10.0, fadeTime = 10.0,
} },
}, },
{ {
kind = "StatusTrigger", kind = "StatusTrigger",
@@ -338,26 +407,161 @@ local function TriggerClassConfig()
thickness = 3.0, thickness = 3.0,
color = colors.red, color = colors.red,
level = 0, level = 0,
},
},
} }
}, elseif class == "PALADIN" then
--[[{ return {
kind="MultiTrigger", invert=false, {
children = { kind = "AuraTrigger",
{kind="StatusTrigger", status="Immune", defaultData={color=colors.violet}}, -- Renew spellId = 287280, -- Glimmer of Light
{kind="AuraTrigger", spellId=139, own=true, defaultData={color=colors.cyan}}, -- Renew own = true,
{kind="AuraTrigger", spellId=21562, own=true, defaultData={color=colors.white}}, -- pw:f
},
indicator = { indicator = {
kind = "SquareIndicator", kind = "SquareIndicator",
size = 17, size = 17,
point="TOPRIGHT", point = "TOPLEFT",
x=-3, y=-3, x = 3,
y = -3,
color = colors.white, 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 else
return {} return {
{
kind = "StatusTrigger",
status = "Burn",
invert = false,
indicator = {
kind = "BorderIndicator",
thickness = 3.0,
color = colors.red,
level = 0,
},
},
}
end end
end end
@@ -377,12 +581,13 @@ local function MakeDebuffTrigger(slot, spellid, color, stacks)
y = -3, y = -3,
color = color, color = color,
showStacks = stacks, showStacks = stacks,
} },
} }
end end
local function TriggerConfig() local function TriggerConfig()
local triggers = TriggerClassConfig() local triggers = TriggerClassConfig()
print("Class triggers:", #triggers)
-- slot, spellid, color, stacks -- slot, spellid, color, stacks
local debuffs = { local debuffs = {
@@ -423,12 +628,26 @@ local function TriggerConfig()
{ 1, 429785, colors.red }, -- Loom (line stun) { 1, 429785, colors.red }, -- Loom (line stun)
{ 1, 417807, colors.red, true }, -- Fyrakk { 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 for _, debuff in ipairs(debuffs) do
table.insert(triggers, MakeDebuffTrigger(debuff[1], debuff[2], debuff[3], debuff[4])) table.insert(triggers, MakeDebuffTrigger(debuff[1], debuff[2], debuff[3], debuff[4]))
end end
print("All triggers:", #triggers)
-- Some more debuffs in the bottom row -- Some more debuffs in the bottom row
table.insert(triggers, { table.insert(triggers, {
@@ -443,7 +662,7 @@ local function TriggerConfig()
color = colors.red, color = colors.red,
fadeTime = 3.0, fadeTime = 3.0,
showStacks = true, showStacks = true,
} },
}) })
return triggers return triggers
@@ -462,7 +681,7 @@ function HideBlizzardFrames()
TargetFrame, TargetFrame,
FocusFrame, FocusFrame,
PartyFrame, PartyFrame,
CompactRaidFrameContainer CompactRaidFrameContainer,
} }
for _, frame in ipairs(blizzardFrames) do for _, frame in ipairs(blizzardFrames) do