Download
(5Kb)
Download
Updated: 09-02-18 03:36 AM
Pictures
File Info
Compatibility:
Battle for Azeroth (8.0.1)
Updated:09-02-18 03:36 AM
Created:04-09-09 11:46 AM
Downloads:30,392
Favorites:140
MD5:

rFilter  Popular! (More than 5000 hits)

Version: 800.20180901
by: zork [More]


Intro

Buff, debuff and cooldown filter button framework. Does nothing on its own. Needs a layout like rFilter_Zork.
Slash Command
/rfilter
API documentation
rFilter API documentation
Requires
rLib
Git
https://github.com/zorker/rothui/tre...wow8.0/rFilter

Optional Files (0)


Post A Reply Comment Options
Unread 01-25-12, 01:10 PM  
leizeQ
A Murloc Raider
 
leizeQ's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 8
File comments: 44
Uploads: 1
Originally Posted by zork
Hmm. I think I got you. Gonna add it.

*edit*
Update is available. You can now change the spec setting to: nil, 1, 2 or 3
when we are this far ... what about making it this way:
1. tree = 1 (2^0)
2. tree = 2 (2^1)
3. tree = 4 (2^2)

and then we can make some multitree version:
1.+3. tree = 5
1.+2. tree = 3
2.+3. tree = 6
1.+2.+3. tree = 7(=nil)

so then you can set spec = 1 or 2 or 3 or 4 or 5 or 6 or 7 and do some binary magic around it (;

just my thought
Report comment to moderator  
Reply With Quote
Unread 01-30-12, 05:08 AM  
Monolit
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 81
File comments: 428
Uploads: 7
Originally Posted by leizeQ
Originally Posted by zork
Hmm. I think I got you. Gonna add it.

*edit*
Update is available. You can now change the spec setting to: nil, 1, 2 or 3
when we are this far ... what about making it this way:
1. tree = 1 (2^0)
2. tree = 2 (2^1)
3. tree = 4 (2^2)

and then we can make some multitree version:
1.+3. tree = 5
1.+2. tree = 3
2.+3. tree = 6
1.+2.+3. tree = 7(=nil)

so then you can set spec = 1 or 2 or 3 or 4 or 5 or 6 or 7 and do some binary magic around it (;

just my thought
or you could just add another optional var for secondary spec and modify spec checking function a little:
Code:
    if f.spec and f.spec ~= GetPrimaryTalentTree(false, false, GetActiveTalentGroup()) then
	  if not f.spec2 or f.spec2 and  f.spec2 ~= GetPrimaryTalentTree(false, false, GetActiveTalentGroup()) then 
		  f.iconframe:SetAlpha(0)
		  return
	   end
    end
then in config you can just do it like this (example from my warrior config)
Code:
	  table.insert(cfg.rf3_CooldownList, {
		spec = 1, -- for arms 
		spec2 = 2, -- and fury
        spellid = 86346, -- Colossus Smash
        pos = { a1 = "BOTTOMLEFT", a2 = "BOTTOM", af = "MainFilterFrame", x = 3, y = 0 },
        size = 36,
        desaturate = true,
        move_ingame     = false,
        alpha = {
          cooldown = {
            frame = 1,
            icon = 0.6,
          },
          no_cooldown = {
            frame = 1,
            icon = 1,
          },
        },
	  })
Report comment to moderator  
Reply With Quote
Unread 03-14-12, 09:26 AM  
F1NCH
A Kobold Labourer
 
F1NCH's Avatar

Forum posts: 0
File comments: 49
Uploads: 0
Hi^^
Erstmal, tolles Addon!
Habe leider aber ein kleines Problem...
Ich bin Druide und als Katze brauche ich Wildes Brüllen, als Bär Pulverisieren. Wie bekomme ich es hin das wenn ich in Katzengestalt bin Wildes Brüllen und in Bärengestalt Pulverisieren an der selben Stelle angezeigt wird? Gibt es einen Stance-Befehl?

Habe mal einen Screen gemacht, im roten Kreis sieht man, das obwohl ich Katze bin das Pulverisieren Icon dort ist, es wechselt zwar wenn ich Wildes Brüllen nutze, aber sobald der Kampf vorbei ist, ist dort wieder das Pulverisieren Icon^^

http://www.abload.de/img/rfilter3-probpkky4.jpg

Hoffe kannst mir evtl. helfen^^
__________________
Zum Lügen gehören immer 2, einer der lügt und einer der's glaubt!
Last edited by F1NCH : 03-14-12 at 09:28 AM.
Report comment to moderator  
Reply With Quote
Unread 03-14-12, 09:48 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
PUPPY DETECTED. LOADING GUNS.

Hint...the info page tell you about the spec attribute.
__________________
| 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 : 03-14-12 at 10:00 AM.
Report comment to moderator  
Reply With Quote
Unread 03-14-12, 05:25 PM  
F1NCH
A Kobold Labourer
 
F1NCH's Avatar

Forum posts: 0
File comments: 49
Uploads: 0
Originally Posted by zork
PUPPY DETECTED. LOADING GUNS.

Hint...the info page tell you about the spec attribute.
Das mit dem Talent Spec weiß ich ja, geht aber allgemein um Katze/Bär, im selben Spec^^
__________________
Zum Lügen gehören immer 2, einer der lügt und einer der's glaubt!
Report comment to moderator  
Reply With Quote
Unread 03-15-12, 03:07 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Hmm...interesting. Not yet possible but I got an idea.

visibility state-driver
http://www.wowace.com/addons/bartend...-state-header/

Code:
    actionbar:1/.../6 or bar:1/.../6 — Given action bar page is selected
    bonusbar:5 — The possess bar is active (controlling a vehicle or another player)
    button:1/.../5/<virtual click> or btn:1/.../5/<virtual click> — Macro activated with the given mouse button
    channeling:<spell name> — Channeling the given spell
    combat — In combat
    cursor — What the cursor is currently holding, see API_GetCursorInfo for types
    dead — Target is dead
    equipped:<item type> or worn:<item type> — item type is equipped (item type can be an inventory slot, item type, or item subtype)
    exists — Target exists
    flyable — In a zone where flying is allowed (this does not check if you have Cold Weather Flying, if you are in a flyable zone, but do not have this skill, the macro fails)
    flying — Mounted or in flight form AND in the air
    group:party/raid — You are in the given type of group
    harm — Can cast harmful spells on the target
    help — Can cast helpful spells on the target
    indoors — Self explanatory
    modifier:shift/ctrl/alt or mod:shift/ctrl/alt — Holding the given key
    mounted — Self explanatory
    outdoors — Self explanatory
    party — Target is in your party
    pet:<pet name or type> — The given pet is out
    raid — Target is in your raid/party
    spec:1/2 — Currently active talents
    stance:0/1/2/.../n — In a stance
    form:0/.../n — In a form which is no stance by itself (shadowdance)
    stealth — Stealthed
    swimming — Self explanatory
    unithasvehicleui — The target of the macro has vehicle UI
    vehicleui — The player has vehicle UI
Example:
Code:
RegisterStateDriver(myIconFrame, "visibility", "[spec:1]hide;[nocombat]fade:30;[target=target,noexists]fade:30;show")
The state driver would only affect the condition under which the icon frame can be shown at all. The check on the icon itself is a different story.
__________________
| 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 : 03-15-12 at 12:15 PM.
Report comment to moderator  
Reply With Quote
Unread 03-15-12, 12:45 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Added it and updated the documentation. Example

That is actually pretty neat. You can now show/hide an icon based ony any macro condition possible.
__________________
| 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 : 03-15-12 at 12:53 PM.
Report comment to moderator  
Reply With Quote
Unread 03-15-12, 08:45 PM  
F1NCH
A Kobold Labourer
 
F1NCH's Avatar

Forum posts: 0
File comments: 49
Uploads: 0
Originally Posted by zork
Added it and updated the documentation. Example

That is actually pretty neat. You can now show/hide an icon based ony any macro condition possible.
Sehr geil

Aber sorry nochmal für die Arbeit^^
__________________
Zum Lügen gehören immer 2, einer der lügt und einer der's glaubt!
Report comment to moderator  
Reply With Quote
Unread 03-16-12, 02:26 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Actually you brought me a good idea. That counts.
__________________
| 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-03-12, 08:06 AM  
WAHAHAHA
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
HI ,this addon is very cool .

I have a little problem, how to track pal's holy power?

I use spellID=85705 ,but it can't show

Thx
Report comment to moderator  
Reply With Quote
Unread 04-03-12, 09:08 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Depends. If the icon is displayed under your player auras you can track it. Otherwise it is a server side effect and you need special holypower addons to track 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)
Last edited by zork : 04-03-12 at 09:09 AM.
Report comment to moderator  
Reply With Quote
Unread 04-14-12, 06:36 AM  
suin
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
I really love rFilter3! Thanks for the great work!
Report comment to moderator  
Reply With Quote
Unread 05-27-12, 03:40 PM  
zin99
A Deviate Faerie Dragon

Forum posts: 12
File comments: 41
Uploads: 0
hi zork,

is there a way to enable the cooldown animation for rfilter icons, that clockwise sweep?
Report comment to moderator  
Reply With Quote
Unread 05-27-12, 04:44 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Nope. It's no actionbutton. Additonally refreshing cooldowns can be pretty hard to do.
__________________
| 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 07-09-12, 04:18 PM  
frenzy20
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Cooldown Clocks

A while ago I modified this to use the built in cooldown clocks that work with tullaCC/OmniCC instead of the text without the visual indicator. I haven't updated since before Zork added the in game move/resize functionality, but this should still work. You will need to have some clue what you're doing with lua. You can just comment out code instead of removing it but I'm going to say remove for simplicity.

1. Remove the entire GetFormattedTime function. It won't be needed anymore.

2. Find the createIcon function. Remove everything related to the variable "time". In it's place, add the following lines:
Code:
local cd = CreateFrame("COOLDOWN", nil, i)
cd:SetAllPoints(i)
cd:SetReverse(1)
Where you see i.time = time, remove it and add i.cd = cd

3. In both the checkDebuff and checkBuff fuctions, find the block like this:
Code:
local value = expires - GetTime()
if value < 10 then
    f.iconframe.time:SetTextColor(1, 0.4, 0)
else
    f.iconframe.time:SetTextColor(1, 0.8, 0)
end
f.iconframe.time:SetText(GetFormattedTime(value))
and replace it with this:
Code:
if(duration and duration > 0) then
    f.iconframe.cd:Show()
    f.iconframe.cd:SetCooldown(expires - duration, duration)
else
    f.iconframe.cd:Hide()
end
Also remove the two lines near the bottom of each function that say f.iconframe.time:SetText and SetTextColor.

4. Do something similar to the checkCooldown function. Replace the following:
Code:
if value < 10 then
    f.iconframe.time:SetTextColor(1, 0.4, 0)
else
    f.iconframe.time:SetTextColor(1, 0.8, 0)
end
f.iconframe.time:SetText(GetFormattedTime(value))
with
Code:
f.iconframe.cd:Show()
f.iconframe.cd:SetCooldown(start, duration)
and remove the same two text related lines as you did in the buff and debuff sections.

5. In the "for i,_ in ipairs(rf3_CooldownList) do" loop, add "f.iconframe.cd:SetReverse(0)" to the line following "createIcon(f,i,"Cooldown")" This makes the circle go the same way as it does on cooldowns in the default UI.

That should be all that is necessary. Enjoy.

Note: The whitespace is significantly different in the actual core.lua than what is posted here, so ctrl+F won't quite work and if you care what the file looks like you'll have to pretty it up yourself.
Also, this could be implemented with a switch in the config but I had no use for the default version of the timers so I hard coded it.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: