Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
greven committed Nov 23, 2020
1 parent f878ece commit f54674b
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 20 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### Version 9.3.1:

- Fixes

### Version 9.3.0:

- Major release for Shadowlands
- Overhaul refactoring
- Introduced the Player Plate unit
- Optional SpellWatchers element
- Swing bar (configurable per class)

### Version 9.2.0:

- Refactoring
Expand Down
47 changes: 31 additions & 16 deletions config/config.lua
Original file line number Diff line number Diff line change
@@ -1,40 +1,28 @@
local _, ns = ...

local cfg, m, filters = ns.cfg, ns.m, ns.filters
local cfg, m, filters, watchers = ns.cfg, ns.m, ns.filters, ns.watchers

-- ------------------------------------------------------------------------
-- > Your configuration here (will override the defaults.lua settings)
-- ------------------------------------------------------------------------

-- Important: Override each property individually or copy all the defaults

-- Textures
-- m.textures = {
-- status_texture = "Interface\\AddOns\\oUF_lumen\\media\\statusbar",
-- bg_texture = "Interface\\AddOns\\oUF_lumen\\media\\texture_bg",
-- aura_border = "Interface\\AddOns\\oUF_lumen\\media\\aura_border",
-- button_border = "Interface\\AddOns\\oUF_lumen\\media\\button_border",
-- white_square = "Interface\\AddOns\\oUF_lumen\\media\\white",
-- glow_texture = "Interface\\AddOns\\oUF_lumen\\media\\glow",
-- damager_texture = "Interface\\AddOns\\oUF_lumen\\media\\damager",
-- healer_texture = "Interface\\AddOns\\oUF_lumen\\media\\healer",
-- tank_texture = "Interface\\AddOns\\oUF_lumen\\media\\tank"
-- }

-- Examples
-- cfg.fontsize = 14 -- The Global Font Size
-- cfg.scale = 1.1 -- The elements Scale

-- Compact UI
-- cfg.frames.main.margin = 10
-- cfg.units.player.pos = {a1 = "LEFT", a2 = "CENTER", af = "UIParent", x = -213, y = -320}
-- cfg.units.player.pos = {a1 = "LEFT", a2 = "CENTER", af = "UIParent", x = -213, y = -342}
-- cfg.units.player.power.show = true
-- cfg.units.player.castbar.width = 418
-- cfg.units.player.castbar.pos = {
-- a1 = "TOPLEFT",
-- a2 = "BOTTOMLEFT",
-- af = "oUF_LumenPlayer",
-- x = cfg.frames.main.height + 2,
-- y = -101
-- y = -80
-- }
-- cfg.units.target.pos = {
-- a1 = "BOTTOMLEFT",
Expand All @@ -43,6 +31,7 @@ local cfg, m, filters = ns.cfg, ns.m, ns.filters
-- x = cfg.frames.main.margin,
-- y = 0
-- }
-- cfg.units.playerplate.show = false

-- Show BarTimers with the normal theme
-- cfg.elements.barTimers.theme = "normal"
Expand All @@ -59,4 +48,30 @@ local cfg, m, filters = ns.cfg, ns.m, ns.filters
-- debuffs = {}
-- }

-- SpellWatchers

-- watchers.ROGUE = {
-- [259] = { -- Assassination
-- [1] = {spellID = 8676, auraID = 121153, glow = "button"}, -- Ambush / Blindside
-- [2] = {spellID = 79140}, -- Vendetta
-- [3] = {spellID = 5938}, -- Shiv
-- [4] = {spellID = 2094}, -- Blind
-- [5] = {spellID = 31224} -- Cloak of Shadows
-- },
-- [260] = { -- Outlaw
-- [1] = {spellID = 185763, auraID = 195627, glow = "button"}, -- Pistol Shot / Opportunity
-- [2] = {spellID = 315341}, -- Between the Eyes
-- [3] = {spellID = 315508}, -- Roll the Bones
-- [4] = {spellID = 13877}, -- Blade Flurry
-- [5] = {spellID = 13750} -- Adrenaline Rush
-- },
-- [261] = { -- Subtlety
-- [1] = {spellID = 212283}, -- Symbols of Death
-- [2] = {spellID = 185313, glow = "pixel"}, -- Shadow Dance
-- [3] = {spellID = 121471}, -- Shadow Blades
-- [4] = {spellID = 280719}, -- Secret Technique
-- [5] = {spellID = 31224} -- Cloak of Shadows
-- }
-- }

-- ------------------------------------------------------------------------
3 changes: 2 additions & 1 deletion elements/spellwatchers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ local function UpdateSpellState(button, spellID, auraID, altID, texture, glow, a
-- Check if spell is usable (OOM, etc.)
if isUsable then
button.icon:SetVertexColor(1.0, 1.0, 1.0)
-- Pixel Glow
-- Glow for usable spells (enough power)
if not auraID then
-- Note: Maybe check if glow is already applied and don't re-apply?
if not expirationTime and (glow and glow == "pixel") then
PixelGlow_Start(button.glow, unpack(pixelGlowConfig))
else
Expand Down
5 changes: 2 additions & 3 deletions functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,15 @@ function lum:CreateAdditionalPower(self)
local gap = -18
local r, g, b = unpack(oUF.colors.power[ADDITIONAL_POWER_BAR_NAME])

local AdditionalPower = CreateFrame("StatusBar", nil, self,
"BackdropTemplate")
local AdditionalPower = CreateFrame("StatusBar", nil, self, "BackdropTemplate")
AdditionalPower:SetStatusBarTexture(m.textures.status_texture)
AdditionalPower:GetStatusBarTexture():SetHorizTile(false)
AdditionalPower:SetSize(self.cfg.width, self.cfg.additionalpower.height)
AdditionalPower:SetStatusBarColor(r, g, b)
AdditionalPower.frequentUpdates = true

if cfg.units.player.power.show then
AdditionalPower:SetPoint("TOP", self.Health, "BOTTOM", 0, -16)
AdditionalPower:SetPoint("TOP", self.Health, "BOTTOM", 0, -14)
api:SetBackdrop(AdditionalPower, 1.5, 1.5, 1.5, 1.5)
else
-- If power is not showing position the additional power below health
Expand Down

0 comments on commit f54674b

Please sign in to comment.