Various changes #1
							
								
								
									
										405
									
								
								src/frames.lua
									
									
									
									
									
								
							
							
						
						
									
										405
									
								
								src/frames.lua
									
									
									
									
									
								
							| @@ -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 | ||||||
| @@ -56,128 +56,198 @@ local function MouseConfig() | |||||||
|     if class == "SHAMAN" then |     if class == "SHAMAN" then | ||||||
|         return { |         return { | ||||||
|             -- No modifier |             -- No modifier | ||||||
|             { button = "mouse1",     mods = {},               kind = "target" }, |             { button = "mouse1", mods = {}, kind = "target" }, | ||||||
|             { |             { | ||||||
|                 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-down", mods = {},               kind = "macro",     data = "/use [@UNIT,help]Riptide" }, |                 button = "wheel-up", | ||||||
|  |                 mods = {}, | ||||||
|  |                 kind = "macro", | ||||||
|  |                 data = "/use [@UNIT,help]Healing Surge", | ||||||
|  |             }, | ||||||
|  |             { button = "wheel-down", mods = {}, kind = "macro", data = "/use [@UNIT,help]Riptide" }, | ||||||
|  |  | ||||||
|             -- alt |             -- alt | ||||||
|             { button = "wheel-up",   mods = { alt = true },   kind = "spell",     data = "Healing Wave" }, |             { button = "wheel-up", mods = { alt = true }, kind = "spell", data = "Healing Wave" }, | ||||||
|             { button = "wheel-down", mods = { alt = true },   kind = "spell",     data = "Earth Shield" }, |             { button = "wheel-down", mods = { alt = true }, kind = "spell", data = "Earth Shield" }, | ||||||
|  |  | ||||||
|             -- Shift |             -- Shift | ||||||
|             { button = "mouse2",     mods = { shift = true }, kind = "togglemenu" }, |             { button = "mouse2", mods = { shift = true }, kind = "togglemenu" }, | ||||||
|             { |             { | ||||||
|                 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 | ||||||
|         return { |         return { | ||||||
|             -- No modifier |             -- No modifier | ||||||
|             { button = "mouse1",     mods = {},               kind = "target" }, |             { button = "mouse1", mods = {}, kind = "target" }, | ||||||
|             { |             { | ||||||
|                 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-down", mods = {},               kind = "macro",     data = "/use [@UNIT,help]Renew" }, |                 button = "wheel-up", | ||||||
|  |                 mods = {}, | ||||||
|  |                 kind = "macro", | ||||||
|  |                 data = "/use [@UNIT,help]Flash Heal", | ||||||
|  |             }, | ||||||
|  |             { button = "wheel-down", mods = {}, kind = "macro", data = "/use [@UNIT,help]Renew" }, | ||||||
|  |  | ||||||
|             -- alt |             -- alt | ||||||
|             { button = "mouse1",     mods = { alt = true },   kind = "spell",     data = "Power Word: Life" }, |             { button = "mouse1", mods = { alt = true }, kind = "spell", data = "Power Word: Life" }, | ||||||
|             { button = "mouse2",     mods = { alt = true },   kind = "spell",     data = "Pain Suppression" }, |             { button = "mouse2", mods = { alt = true }, kind = "spell", data = "Pain Suppression" }, | ||||||
|             { button = "mouse3",     mods = { alt = true },   kind = "spell",     data = "Power Infusion" }, |             { button = "mouse3", mods = { alt = true }, kind = "spell", data = "Power Infusion" }, | ||||||
|             { button = "wheel-up",   mods = { alt = true },   kind = "spell",     data = "Rapture" }, |             { button = "wheel-up", mods = { alt = true }, kind = "spell", data = "Rapture" }, | ||||||
|             { button = "wheel-down", mods = { alt = true },   kind = "spell",     data = "Power Word: Shield" }, |             { button = "wheel-down", mods = { alt = true }, kind = "spell", data = "Power Word: Shield" }, | ||||||
|  |  | ||||||
|             -- Shift |             -- Shift | ||||||
|             { button = "mouse2",     mods = { shift = true }, kind = "togglemenu" }, |             { button = "mouse2", mods = { shift = true }, kind = "togglemenu" }, | ||||||
|             { |             { | ||||||
|                 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 | ||||||
|         return { |         return { | ||||||
|             -- No modifier |             -- No modifier | ||||||
|             { button = "mouse1",     mods = {},               kind = "target" }, |             { button = "mouse1", mods = {}, kind = "target" }, | ||||||
|             { |             { | ||||||
|                 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 = "wheel-up", mods = {}, kind = "macro", data = "/use [@UNIT,help]Vivify" }, | ||||||
|  |             { | ||||||
|  |                 button = "wheel-down", | ||||||
|  |                 mods = {}, | ||||||
|  |                 kind = "macro", | ||||||
|  |                 data = "/use [@UNIT,help]Soothing Mist", | ||||||
|             }, |             }, | ||||||
|             { 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" }, |  | ||||||
|  |  | ||||||
|             -- alt |             -- alt | ||||||
|             { button = "mouse1",     mods = { alt = true },   kind = "spell",     data = "Power Word: Life" }, |             { button = "mouse1", mods = { alt = true }, kind = "spell", data = "Power Word: Life" }, | ||||||
|             { button = "mouse2",     mods = { alt = true },   kind = "spell",     data = "Pain Suppression" }, |             { button = "mouse2", mods = { alt = true }, kind = "spell", data = "Pain Suppression" }, | ||||||
|             { button = "mouse3",     mods = { alt = true },   kind = "spell",     data = "Power Infusion" }, |             { button = "mouse3", mods = { alt = true }, kind = "spell", data = "Power Infusion" }, | ||||||
|             { button = "wheel-up",   mods = { alt = true },   kind = "spell",     data = "Rapture" }, |             { button = "wheel-up", mods = { alt = true }, kind = "spell", data = "Rapture" }, | ||||||
|             { button = "wheel-down", mods = { alt = true },   kind = "spell",     data = "Power Word: Shield" }, |             { button = "wheel-down", mods = { alt = true }, kind = "spell", data = "Power Word: Shield" }, | ||||||
|  |  | ||||||
|             -- Shift |             -- Shift | ||||||
|             { button = "mouse2",     mods = { shift = true }, kind = "togglemenu" }, |             { button = "mouse2", mods = { shift = true }, kind = "togglemenu" }, | ||||||
|             { |             { | ||||||
|                 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 | ||||||
|             { button = "mouse1", mods = {},               kind = "target" }, |             { button = "mouse1", mods = {}, kind = "target" }, | ||||||
|             { button = "mouse2", mods = { shift = true }, kind = "togglemenu" }, |             { button = "mouse2", mods = { shift = true }, kind = "togglemenu" }, | ||||||
|         } |         } | ||||||
|     end |     end | ||||||
| @@ -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, | ||||||
|                 } |  | ||||||
|             }, |  | ||||||
|             --[[{ |  | ||||||
|                 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 = { |                 indicator = { | ||||||
|                     kind="SquareIndicator", |                     kind = "SquareIndicator", | ||||||
|                     size=17, |                     size = 17, | ||||||
|                     point="TOPRIGHT", |                     point = "TOPLEFT", | ||||||
|                     x=-3, y=-3, |                     x = 3, | ||||||
|                     color=colors.white, |                     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 |     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,58 +581,73 @@ 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 = { | ||||||
|         -- Kezzara, Aberrus |         -- Kezzara, Aberrus | ||||||
|         { 1, 406525, colors.orange },       -- Dread Rift |         { 1, 406525, colors.orange }, -- Dread Rift | ||||||
|         { 2, 402253, colors.red },          -- Ray of Anguish |         { 2, 402253, colors.red }, -- Ray of Anguish | ||||||
|         { 3, 404743, colors.violet, true }, -- Terror Claws |         { 3, 404743, colors.violet, true }, -- Terror Claws | ||||||
|  |  | ||||||
|         -- Forgotten Experiment, Aberrus |         -- Forgotten Experiment, Aberrus | ||||||
|         { 1, 406365, colors.red,    true }, -- Rending Charge (p1) |         { 1, 406365, colors.red, true }, -- Rending Charge (p1) | ||||||
|         { 1, 407327, colors.cyan,   true }, -- Unstable Essence (p2/p3) |         { 1, 407327, colors.cyan, true }, -- Unstable Essence (p2/p3) | ||||||
|         { 3, 407313, colors.violet, true }, -- Infused Strikes |         { 3, 407313, colors.violet, true }, -- Infused Strikes | ||||||
|  |  | ||||||
|         -- Uldaman: Legacy of Tyr |         -- Uldaman: Legacy of Tyr | ||||||
|         { 1, 377510, colors.cyan,   true }, -- Stolen Time |         { 1, 377510, colors.cyan, true }, -- Stolen Time | ||||||
|  |  | ||||||
|         -- Brackenhide Hollow |         -- Brackenhide Hollow | ||||||
|         { 1, 367521, colors.cyan,   true }, -- Bone Bolt |         { 1, 367521, colors.cyan, true }, -- Bone Bolt | ||||||
|  |  | ||||||
|         -- The Underrot |         -- The Underrot | ||||||
|         --{1, 273226, colors.green, true},    -- Decaying Spores |         --{1, 273226, colors.green, true},    -- Decaying Spores | ||||||
|  |  | ||||||
|         -- Sarkareth, Aberrus |         -- Sarkareth, Aberrus | ||||||
|         { 3, 401330, colors.violet },       -- Burning Claws (P1 tank) |         { 3, 401330, colors.violet }, -- Burning Claws (P1 tank) | ||||||
|         { 3, 411241, colors.violet },       -- Void Claws (P2 tank) |         { 3, 411241, colors.violet }, -- Void Claws (P2 tank) | ||||||
|         { 3, 408429, colors.violet },       -- Void Slash (P3 tank) |         { 3, 408429, colors.violet }, -- Void Slash (P3 tank) | ||||||
|         { 2, 404218, colors.blue },         -- Void Fracture (carry bomb) |         { 2, 404218, colors.blue }, -- Void Fracture (carry bomb) | ||||||
|         { 1, 401951, colors.cyan,   true }, -- Oblivion |         { 1, 401951, colors.cyan, true }, -- Oblivion | ||||||
|  |  | ||||||
|         -- Darkheart Thicket |         -- Darkheart Thicket | ||||||
|         { 3, 225484, colors.violet }, -- Grievous Rip |         { 3, 225484, colors.violet }, -- Grievous Rip | ||||||
|         { 3, 196376, colors.violet }, -- Grievous Tear |         { 3, 196376, colors.violet }, -- Grievous Tear | ||||||
|  |  | ||||||
|         -- Throne of the Tides |         -- Throne of the Tides | ||||||
|         { 1, 426660, colors.red,    true }, -- Razor Jaws |         { 1, 426660, colors.red, true }, -- Razor Jaws | ||||||
|  |  | ||||||
|         -- Nymue, Amirdrassil |         -- Nymue, Amirdrassil | ||||||
|         { 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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user