Skip to content

Commit

Permalink
iz an update!
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldpaw committed Oct 27, 2024
1 parent 574c22c commit ba7b8dd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AzeriteUI/Components/UnitFrames/Units/Party.lua
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ end

local Power_PostUpdate = function(element, unit, cur, min, max)

local shouldShow = UnitIsConnected(unit) and not UnitIsDeadOrGhost(unit) and element.displayType == Enum.PowerType.Mana
local shouldShow = UnitIsConnected(unit) and not UnitIsDeadOrGhost(unit) --[[and element.displayType == Enum.PowerType.Mana]]

if (not shouldShow or cur == 0 or max == 0) then
element:SetAlpha(0)
Expand Down
2 changes: 1 addition & 1 deletion AzeriteUI/Components/UnitFrames/Units/Raid25.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ end

local Power_PostUpdate = function(element, unit, cur, min, max)

local shouldShow = UnitIsConnected(unit) and not UnitIsDeadOrGhost(unit) and element.displayType == Enum.PowerType.Mana
local shouldShow = UnitIsConnected(unit) and not UnitIsDeadOrGhost(unit) --[[and element.displayType == Enum.PowerType.Mana]]

if (not shouldShow or cur == 0 or max == 0) then
element:SetAlpha(0)
Expand Down
2 changes: 1 addition & 1 deletion AzeriteUI/Components/UnitFrames/Units/Raid40.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ end

local Power_PostUpdate = function(element, unit, cur, min, max)

local shouldShow = UnitIsConnected(unit) and not UnitIsDeadOrGhost(unit) and element.displayType == Enum.PowerType.Mana
local shouldShow = UnitIsConnected(unit) and not UnitIsDeadOrGhost(unit) --[[and element.displayType == Enum.PowerType.Mana]]

if (not shouldShow or cur == 0 or max == 0) then
element:SetAlpha(0)
Expand Down
9 changes: 7 additions & 2 deletions AzeriteUI/Core/Development.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,22 @@ Development.OnInitialize = function(self)
local label = UIParent:CreateFontString()
label:SetIgnoreParentScale(true)
label:SetScale(ns.API.GetEffectiveScale())
label:SetDrawLayer("HIGHLIGHT", 1)
--label:SetDrawLayer("HIGHLIGHT", 1) -- conflicts with actionbars and remains invisible at all times.
label:SetFontObject(ns.API.GetFont(12,true))
label:SetTextColor(ns.Colors.offwhite[1], ns.Colors.offwhite[2], ns.Colors.offwhite[3], .85)
label:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 20, 10)
label:SetText((ns.db.global.enableDevelopmentMode and "Dev Mode|n" or "") .. (ns.IsDevelopment and "Git Version" or ns.Version))

--self.VersionLabel = label
self.VersionLabel = label
end

self:RegisterChatCommand("devmode", function(self)
ns.db.global.enableDevelopmentMode = not ns.db.global.enableDevelopmentMode
ReloadUI()
end)
end

Development.OnEnable = function(self)
-- Needed as scaling information isn't available at logon like it used to be.
self.VersionLabel:SetScale(ns.API.GetEffectiveScale())
end
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Be aware th
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [5.2.187-Release] 2024-10-27
### Changed
- All power bars should be visible on all group frames now. The exception being units completely out of range, as this appears to be a blizzard limitation of sorts.
- The on-screen text indicating if you have an alpha or beta version, or running in dev mode, is once again forcibly visible.

## [5.2.186-Release] 2024-10-20
- Started updating our custom LibActionButton fork.

Expand Down

0 comments on commit ba7b8dd

Please sign in to comment.