Skip to content
This repository

Runebar not updating #3

ghost opened this Issue · 2 comments

1 participant

Chris Bannister
Deleted user

As the title says, using runes doesnt update it.

On a side note, shouldn't it be .Runes instead of .runes, to match the rest of the elements?

Chris Bannister

Helps if you post something, such as the relavent parts from your layout.

Deleted user

I just spawned it right off in the layout, no functions to modify it, no if checks except of unit is player and playerclass is dk.

Here is the full code:
if(unit == 'player' and select(2, UnitClass('player')) == 'DEATHKNIGHT') then
self.runes = CreateFrame('Frame', nil, self)
self.runes:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', 0, -1)
self.runes:SetBackdropColor(0, 0, 0)
self.runes.anchor = 'TOPLEFT'
self.runes.growth = 'RIGHT'

    for index = 1, 6 do
        self.runes[index] = CreateFrame('StatusBar', nil, self.runes)

        self.runes[index].bg = self.runes[index]:CreateTexture(nil, 'BACKGROUND')
        self.runes[index].bg:SetTexture(0.3, 0.3, 0.3)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.