Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-01-16, 09:51 AM   #1
Ereki
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 25
"Unhiding" RuneFrame

Hi
In my addon RuneHUD I've used a simple fix to stop addons which hides the player unitframe to stop hiding the RuneFrame by simply changing it's parent to a new frame. If I do this after 7.0 I get error messages since Blizzard changed the RuneFrame.lua in FrameXML to suport 7 runes. The change they made is the following:
Code:
function RuneFrame_UpdateNumberOfShownRunes()
	CURRENT_MAX_RUNES = UnitPowerMax(RuneFrame:GetParent().unit, SPELL_POWER_RUNES);
	for i=1, MAX_RUNE_CAPACITY do
		local runeButton = _G["RuneButtonIndividual"..i];
		if(i <= CURRENT_MAX_RUNES) then
			runeButton:Show();
		else
			runeButton:Hide();
		end
		-- Shrink the runes sizes if you have all 7
		if (CURRENT_MAX_RUNES == MAX_RUNE_CAPACITY) then
			runeButton.Border:SetSize(21, 21);
			runeButton.rune:SetSize(21, 21);
			runeButton.Textures.Shine:SetSize(52, 31);
			runeButton.energize.RingScale:SetFromScale(0.6, 0.7);
			runeButton.energize.RingScale:SetToScale(0.7, 0.7);
			runeButton:SetSize(15, 15);
		else
			runeButton.Border:SetSize(24, 24);
			runeButton.rune:SetSize(24, 24);
			runeButton.Textures.Shine:SetSize(60, 35);
			runeButton.energize.RingScale:SetFromScale(0.7, 0.8);
			runeButton.energize.RingScale:SetToScale(0.8, 0.8);
			runeButton:SetSize(18, 18);
		end
	end
end
Is there any way to work around this (I can't come up with anything) or is there another good solution to "unhide" the runeframe when the player unitframe is hidden by another addon?
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » "Unhiding" RuneFrame

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off