Download
(7Kb)
Download
Updated: 10-27-16 12:35 PM
Pictures
File Info
Compatibility:
Return to Karazhan (7.1.5)
Updated:10-27-16 12:35 PM
Created:01-18-11 06:13 PM
Downloads:11,573
Favorites:65
MD5:

rThreat  Popular! (More than 5000 hits)

Version: 710.20161027
by: zork [More]


Intro

rThreat will display a simple threat table.
Requires
rLib
Git
https://github.com/zorker/rothui/tre...wow7.0/rThreat

Optional Files (0)


Post A Reply Comment Options
Unread 05-05-11, 03:09 AM  
EKE
An Aku'mai Servant
 
EKE's Avatar
AddOn Author - Click to view AddOns

Forum posts: 37
File comments: 548
Uploads: 13
Can this addon Track and estimate temporary threat created by Tricks and Misdirect?
Just like omen, the part of misdirection on tank threat bar is gray, but omen use too much memory...
Report comment to moderator  
Reply With Quote
Unread 04-30-11, 11:00 AM  
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 111
File comments: 64
Uploads: 2
Another configuration option that could be very useful to people is the option to have the bars grow up instead of down. It's not necessary, but it would make the addon much more robust. By the way, that was a very quick update on your part and I thank you for it.
Report comment to moderator  
Reply With Quote
Unread 04-30-11, 09:41 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Good point. Added it.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 04-29-11, 07:07 PM  
tenub
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 111
File comments: 64
Uploads: 2
Can we please get an updated version so that we can have the frame still hidden out of combat or not in party/raid but with the ability to position / drag the frame to our liking without having to edit the config to always show the frame just to be able to position it then having to edit the config again to hide? I mean, there's minimal and then there's too minimal and this is the latter. I will still be using this over Omen regardless. It's just annoying to have to go through all that hassle just to reposition the frame.
Last edited by tenub : 04-29-11 at 07:09 PM.
Report comment to moderator  
Reply With Quote
Unread 03-26-11, 01:30 PM  
boombeef
A Kobold Labourer

Forum posts: 1
File comments: 40
Uploads: 0
I see the config.lua option to disable (show = false) "backdrop shadow settings".

Should this be turning the shaded background off because it is not doing so right now? Just verifying.
Report comment to moderator  
Reply With Quote
Unread 01-29-11, 12:04 PM  
Ets
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
I'd love to use that command but I get this error message :


Code:
Message: Interface\FrameXML\UIParent.lua:1859: attempt to call method 'IsShown' (a nil value)
Time: 01/29/11 13:15:30
Count: 2
Stack: Interface\FrameXML\UIParent.lua:1859: in function `ToggleFrame'
[string "ToggleFrame("rThreatDragFrame")"]:1: in main chunk
[C]: in function `RunScript'
Interface\FrameXML\ChatFrame.lua:2032: in function `?'
Interface\FrameXML\ChatFrame.lua:4126: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3737: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:2536: in function <Interface\FrameXML\ChatFrame.lua:2529>
[C]: in function `UseAction'
Interface\FrameXML\SecureTemplates.lua:274: in function `handler'
Interface\FrameXML\SecureTemplates.lua:541: in function <Interface\FrameXML\SecureTemplates.lua:489>

Locals: frame = "rThreatDragFrame"
(*temporary) = nil
(*temporary) = "rThreatDragFrame"
(*temporary) = "attempt to call method 'IsShown' (a nil value)"
any ideas ?

also, it's toggle -not tOOgle. :P
Last edited by Ets : 01-29-11 at 12:17 PM.
Report comment to moderator  
Reply With Quote
Unread 01-27-11, 05:33 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Well you could use ToogleFrame("rThreatDragFrame") aswell. That even runs from a macro.

Code:
/run ToogleFrame("rThreatDragFrame")
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 01-27-11 at 05:34 PM.
Report comment to moderator  
Reply With Quote
Unread 01-27-11, 01:28 PM  
Ets
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Thinking I might be able to do it, I copy pasted your code and just "hacked" at it until it worked.

I have NO CLUE if this is acceptable code or if I'm forcing hundreds of useless calls or anything of the like, but for now, it works.

So to anyone wanting a /slash command to show/hide the threat meter :

in slashcmd.lua, change this part :
Code:
local function SlashCmd(cmd)    
    if (cmd:match"unlock") then
      rThreat_unlockFrames()
    elseif (cmd:match"lock") then
      rThreat_lockFrames()
    else
      print("|c00FFAA00rThreat command list:|r")
      print("|c00FFAA00\/rthreat lock|r, to lock")
      print("|c00FFAA00\/rthreat unlock|r, to unlock")
    end
  end
to :
Code:
function rThreat_Show()
    for _, v in pairs(rThreat_Frames) do
      local f = _G[v]
      f:Show()
    end
  end

function rThreat_Hide()
    for _, v in pairs(rThreat_Frames) do
      local f = _G[v]
      f:Hide()
    end
  end
  
  local function SlashCmd(cmd)    
    if (cmd:match"unlock") then
      rThreat_unlockFrames()
    elseif (cmd:match"lock") then
      rThreat_lockFrames()
    elseif (cmd:match"show") then
      rThreat_Show()
    elseif (cmd:match"hide") then
      rThreat_Hide()
    else
      print("|c00FFAA00rThreat command list:|r")
      print("|c00FFAA00\/rthreat lock|r, to lock")
      print("|c00FFAA00\/rthreat unlock|r, to unlock")
      print("|c00FFAA00\/rthreat show|r, to show")
      print("|c00FFAA00\/rthreat hide|r, to hide")
    end
  end
Here's hoping a better solution is brought forth soon, I feel weird having "my code" in there...
Report comment to moderator  
Reply With Quote
Unread 01-26-11, 05:11 PM  
Ets
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
I second the call for a /slash command that "toggles" the view.

I usually want a threat-meter for specific pulls or when a problem player shows up.

I like my screen as free as possible (one of the main reasons I love your UI so much) and being able to "summon/dismiss" things I only need once in a while is a big part of that.

In any case, thank you greatly for all your work.

Ets
Report comment to moderator  
Reply With Quote
Unread 01-20-11, 05:11 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Same. rColors is not installed.
4.002a is there, it has rcolors in.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 01-20-11 at 05:14 PM.
Report comment to moderator  
Reply With Quote
Unread 01-20-11, 12:10 PM  
Rufio
A Murloc Raider
 
Rufio's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 289
Uploads: 5
Code:
[19:09:09] Interface\AddOns\rThreat\core.lua:115: attempt to index global 'rRAID_CLASS_COLORS' (a nil value)
[C]: ?
Interface\AddOns\rThreat\core.lua:115: in function <Interface\AddOns\rThreat\core.lua:111>
Interface\AddOns\rThreat\core.lua:214: in function <Interface\AddOns\rThreat\core.lua:148>
Interface\AddOns\rThreat\core.lua:248: in function <Interface\AddOns\rThreat\core.lua:235>
while doning arenas
Report comment to moderator  
Reply With Quote
Unread 01-20-11, 12:01 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
That is wierd because there is a
Code:
color = rRAID_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
condition. It should grad the second variable if the first one is nil.

Wierd. Temp fix is to install rColors from Roth UI or making the line
Code:
color = RAID_CLASS_COLORS[class]
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 01-20-11, 11:07 AM  
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 784
File comments: 150
Uploads: 14
Just grabbed this error :x

Code:
Message: Interface\AddOns\rThreat\core.lua:115: attempt to index global 'rRAID_CLASS_COLORS' (a nil value)
Time: 01/20/11 18:06:33
Count: 4
Stack: Interface\AddOns\rThreat\core.lua:115: in function <Interface\AddOns\rThreat\core.lua:111>
Interface\AddOns\rThreat\core.lua:214: in function <Interface\AddOns\rThreat\core.lua:148>
Interface\AddOns\rThreat\core.lua:248: in function <Interface\AddOns\rThreat\core.lua:235>

Locals: unit = "player"
color = <table> {
 b = 1
 g = 0
 r = 1
}
_ = "Priest"
class = "PRIEST"
(*temporary) = nil
(*temporary) = "attempt to index global 'rRAID_CLASS_COLORS' (a nil value)
Report comment to moderator  
Reply With Quote
Unread 01-19-11, 03:04 PM  
ballagarba
A Fallenroot Satyr
 
ballagarba's Avatar

Forum posts: 22
File comments: 472
Uploads: 0
Haven't really tried the addon yet, but the seemingly high threat values from your screenshots tipped me off, you might want to divide all threat values with 100 to line it up with other threat addons (the popular Omen for example), seems to be a common praxis. Might be confusing if someone claims they are 1 000 000 behind on threat, and another say 10 000. I believe it has something to do with bringing threat values to that of health, but couldn't be sure.

Otherwise, sweet work
Last edited by ballagarba : 01-19-11 at 04:26 PM.
Report comment to moderator  
Reply With Quote
Unread 01-19-11, 02:38 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Yeah all this is in 4.002 included. Upload coming. Version is tested.

Added a slash command. Check /rthreat for more.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 01-19-11 at 02:44 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: