Quantcast
Download
(13 Kb)
Download
Updated: 09-16-13 04:42 AM
Pictures
File Info
Updated:09-16-13 04:42 AM
Created:01-18-11 06:13 PM
Downloads:9,106
Favorites:69
MD5:

rThreat  Popular! (More than 5000 hits)

Version: 50400.01
by: zork [More]


Intro

rThreat updated for World of Warcraft Mist of Pandaria.

A simple mod to display a stylish threat table. Check the config.lua for some config values.
The zip file contains two folders. rLib and rThreat. Put both into your AddOns folder.
Slash commands
Code:
/rthreat
/rthreat unlock
/rthreat lock
/rthreat reset
GIT
https://github.com/zorker/rothui/tre...wow5.0/rThreat


50400.01
- updated toc to 50400

50200.02
- major code review. complete overhaul.

50200.01
- updated for patch 5.2

50100.01
- updated for patch 5.1

50001.01
- updated for MoP patch 5.0.5

4.005
- updated toc for patch 4.2

4.004
- frame becomes visible once unlocked. status before unlock is saved and frame will return to that status once locked.

4.003
- updated toc for patch 4.1

4.002a
- added rcolors to the package to prevent the error message

4.002
- added option to mark the player bar in red color
- added option to hide frame out of party
- added option to hide title
- fixed frame movement
- added slash command "/rthreat" for more

4.001
- initial release
Optional Files (0)


Archived Files (11)
File Name
Version
Size
Author
Date
50200.02a
13kB
zork
04-12-13 02:26 PM
50200.01
14kB
zork
03-04-13 05:48 PM
50100.01
14kB
zork
11-28-12 12:59 PM
50001.01
14kB
zork
09-21-12 01:48 PM
40300.01
11kB
zork
11-30-11 12:53 PM
4.005
11kB
zork
06-29-11 04:20 PM
4.004
11kB
zork
04-30-11 09:45 AM
4.003
11kB
zork
04-29-11 10:20 AM
4.002a
11kB
zork
01-20-11 05:13 PM
4.002
11kB
zork
01-19-11 02:40 PM
4.001
10kB
zork
01-18-11 06:13 PM


Post A Reply Comment Options
Unread 04-30-11, 09:41 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1571
File comments: 3542
Uploads: 103
Good point. Added it.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | TDMOG

"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 Compiler - Click to view compilations

Forum posts: 111
File comments: 64
Uploads: 4
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: 1571
File comments: 3542
Uploads: 103
Well you could use ToogleFrame("rThreatDragFrame") aswell. That even runs from a macro.

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

"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: 1571
File comments: 3542
Uploads: 103
Same. rColors is not installed.
4.002a is there, it has rcolors in.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | TDMOG

"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: 8
File comments: 220
Uploads: 8
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: 1571
File comments: 3542
Uploads: 103
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 | TDMOG

"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  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 716
File comments: 724
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: 419
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: 1571
File comments: 3542
Uploads: 103
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 | TDMOG

"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
Unread 01-19-11, 10:33 AM  
Gawain
A Defias Bandit

Forum posts: 2
File comments: 12
Uploads: 0
Great work, Zork! Fits very well with Roth UI also!
Would be nice if you put and option to remove the title bar tho
Report comment to moderator  
Reply With Quote
Unread 01-19-11, 09:12 AM  
Lailend
A Kobold Labourer

Forum posts: 0
File comments: 52
Uploads: 0
Great mod rlly like it. I have one little question though. I saw that we are able to mod the add-ons to only show in combat though im wondering is there also a in-game command which we could use to hide/show it? since I don't like fighting mobs with just my pet and then im bothered with a threat window..
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: