mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- removed UNIT_RUNIC_POWER hack in player & target mana modules since blizzard seems to have fixed the bug in the latest beta build
- fixed bug with runes module where the last rune would never show as being used (because i was thinking in 0-based array world) - added hax to the runes module to swap placement of frost and unholy runes since blizzard has had their hack in for 2 builds now
This commit is contained in:
@ -162,7 +162,7 @@ end
|
||||
|
||||
-- simply shows/hides the foreground rune when it becomes usable/unusable. this allows the background transparent rune to show only
|
||||
function Runes.prototype:UpdateRunePower(rune, usable)
|
||||
if not rune or not self.frame.graphical or #self.frame.graphical <= rune then
|
||||
if not rune or not self.frame.graphical or #self.frame.graphical < rune then
|
||||
return
|
||||
end
|
||||
|
||||
@ -245,7 +245,16 @@ function Runes.prototype:CreateRune(i, type, name)
|
||||
self.frame.graphicalBG[i]:SetFrameStrata("BACKGROUND")
|
||||
self.frame.graphicalBG[i]:SetWidth(self.runeSize)
|
||||
self.frame.graphicalBG[i]:SetHeight(self.runeSize)
|
||||
self.frame.graphicalBG[i]:SetPoint("TOPLEFT", (i-1) * (self.runeSize-5) + (i-1), 0)
|
||||
-- hax for blizzard's swapping the unholy and frost rune placement on the default ui...
|
||||
local runeSwapI
|
||||
if i == 3 or i == 4 then
|
||||
runeSwapI = i + 2
|
||||
elseif i == 5 or i == 6 then
|
||||
runeSwapI = i - 2
|
||||
else
|
||||
runeSwapI = i
|
||||
end
|
||||
self.frame.graphicalBG[i]:SetPoint("TOPLEFT", (runeSwapI-1) * (self.runeSize-5) + (runeSwapI-1), 0)
|
||||
self.frame.graphicalBG[i]:SetAlpha(0.25)
|
||||
|
||||
self.frame.graphicalBG[i]:SetStatusBarColor(self:GetColor("Runes"..name))
|
||||
|
Reference in New Issue
Block a user