Thread Tools Display Modes
02-29-16, 09:02 PM   #1
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
"Runebar" element seems to be bugging(?)

So, I have created a rune bar which works pretty fine.

However, every time I use "Hearthstone" or "Garrison Hearthstone", it fails to process the following lines of code:
Lua Code:
  1. local start, duration, runeReady = GetRuneCooldown(rid)
  2.  
  3. if(runeReady) then
  4.     rune:SetMinMaxValues(0, 1)
  5.     rune:SetValue(1)
  6.     rune:SetScript("OnUpdate", nil)
  7. else
  8.     rune.duration = GetTime() - start
  9.     rune.max = duration
  10.     rune:SetMinMaxValues(1, duration)
  11.     rune:SetScript("OnUpdate", OnUpdate)
  12. end

So, I've tested to find where the error was occurring and seems like when I use "Hearthstone", the "RUNE_POWER_UPDATE" event fails to process "GetRuneCooldown(rid)" which returns nil for its three outputs, start, duration and runeReady.

I don't get why this is happening ...

Could anyone please help me out with this?
  Reply With Quote
03-01-16, 08:29 PM   #2
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
Hi! Download latest version of oUF from github, this issue was fixed quite long ago.
__________________
  Reply With Quote
03-01-16, 11:09 PM   #3
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Originally Posted by lightspark View Post
Hi! Download latest version of oUF from github, this issue was fixed quite long ago.
Hi lightspark!

damn......................... I thought I was having the newest version of it D:......

Thx for notification

Last edited by Layback_ : 03-01-16 at 11:16 PM.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » "Runebar" element seems to be bugging(?)


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