View Single Post
07-13-10, 09:00 PM   #48
Cynyr
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 9
Runebar

Having taken a look at both lily and classic and p3lim, I cannot figure out how to get a rune bar working for my DK alt. If i use Lily I get bliz's runebar up in the upperleft. I'd really like something like p3lim's in oUF 1.3. The github wiki is still missing a page on runebars, and they don't work like combo points, despite the element files looking similar.

the bits out of runebar.lua seem to suggest it should be both an array and a frame at the same time...
Code:
local runes = self.Runes
	if(runes and unit == 'player') then
		for i=1, 6 do
			local rune = runes[i]
			rune:SetID(i)
			-- From my minor testing this is a okey solution. A full login always remove
			-- the death runes, or at least the clients knowledge about them.
			UpdateType(self, nil, i, math.floor((i+1)/2))

			if(not rune:GetStatusBarTexture()) then
				rune:SetStatusBarTexture[[Interface\TargetingFrame\UI-StatusBar]]
			end
		end

		self:RegisterEvent("RUNE_POWER_UPDATE", UpdateRune)
		self:RegisterEvent("RUNE_TYPE_UPDATE", UpdateType)

		runes:Show()
		RuneFrame:Hide()
how does "local rune = runes[i]" and "runes:Show()" both work at the same time? Any help would be appreciated.
  Reply With Quote