Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // rFilter3
- -- // zork - 2012
- --get the addon namespace
- local addon, ns = ...
- --object container
- local cfg = CreateFrame("Frame")
- ns.cfg = cfg
- cfg.rf3_BuffList, cfg.rf3_DebuffList, cfg.rf3_CooldownList = {}, {}, {}
- --local player_name, _ = UnitName("player")
- local _, player_class = UnitClass("player")
- -----------------------------
- -- DEFAULT CONFIG
- -----------------------------
- cfg.highlightPlayerSpells = true --player spells will have a blue border
- cfg.updatetime = 0.3 --how fast should the timer update itself
- cfg.timeFontSize = 12
- cfg.countFontSize = 12
- --warrior defaults
- if player_class == "WARRIOR" then
- cfg.rf3_BuffList = {
- [1] = {
- spellid = 112048, --shield barrier
- spec = 3,
- size = 30,
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- unit = "player",
- validate_unit = true,
- ismine = true,
- desaturate = true,
- move_ingame = true,
- hide_ooc = true,
- show_value = 1,
- alpha = {
- found = {
- frame = 1,
- icon = 1,
- },
- not_found = {
- frame = 0.2,
- icon = 0.6,
- },
- },
- },
- [2] = {
- spellid = 132404, --shield block
- spec = 3,
- size = 30,
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- unit = "player",
- validate_unit = true,
- ismine = true,
- desaturate = true,
- move_ingame = true,
- hide_ooc = true,
- alpha = {
- found = {
- frame = 1,
- icon = 1,
- },
- not_found = {
- frame = 0.2,
- icon = 0.6,
- },
- },
- },
- [3] = {
- spellid = 131116, --raging blow stack
- spec = 2,
- size = 30,
- framestrata = "BACKGROUND",
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- unit = "player",
- validate_unit = true,
- ismine = true,
- desaturate = true,
- move_ingame = true,
- hide_ooc = true,
- alpha = {
- found = {
- frame = 1,
- icon = 1,
- },
- not_found = {
- frame = 0,
- icon = 0.6,
- },
- },
- },
- [4] = {
- spellid = 85739, --meat cleaver
- spec = nil,
- size = 26,
- framestrata = "BACKGROUND",
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- unit = "player",
- validate_unit = true,
- ismine = true,
- desaturate = true,
- move_ingame = true,
- hide_ooc = true,
- alpha = {
- found = {
- frame = 1,
- icon = 1,
- },
- not_found = {
- frame = 0,
- icon = 0.6,
- },
- },
- },
- [5] = {
- spellid = 46915, --bloodsurge
- spec = nil,
- size = 26,
- framestrata = "BACKGROUND",
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- unit = "player",
- validate_unit = true,
- ismine = true,
- desaturate = true,
- move_ingame = true,
- hide_ooc = true,
- alpha = {
- found = {
- frame = 1,
- icon = 1,
- },
- not_found = {
- frame = 0,
- icon = 0.6,
- },
- },
- },
- }
- -- Warrior Debuff List
- cfg.rf3_DebuffList = {
- [1] = {
- spellid = 86346, --colossus
- spec = nil,
- size = 30,
- framestrata = "LOW",
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- unit = "target",
- validate_unit = true,
- ismine = true,
- desaturate = true,
- move_ingame = true,
- hide_ooc = false,
- alpha = {
- found = {
- frame = 1,
- icon = 1,
- },
- not_found = {
- frame = 0,
- icon = 0.6,
- },
- },
- },
- }
- -- Warrior Cooldown List
- cfg.rf3_CooldownList = {
- [1] = {
- spellid = 118000, --dragon roar
- spelllist = { 118000, 46968, 46924, },
- --spec = 1,
- size = 26,
- framestrata = "LOW",
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- desaturate = true,
- move_ingame = true,
- hide_ooc = true,
- alpha = {
- cooldown = {
- frame = 0.6,
- icon = 0.6,
- },
- no_cooldown = {
- frame = 1,
- icon = 1,
- },
- },
- },
- [2] = {
- spellid = 86346, --colossus
- spec = nil,
- size = 30,
- framestrata = "BACKGROUND",
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- desaturate = true,
- move_ingame = true,
- hide_ooc = true,
- alpha = {
- cooldown = {
- frame = 0.6,
- icon = 0.6,
- },
- no_cooldown = {
- frame = 1,
- icon = 1,
- },
- },
- },
- [3] = {
- spellid = 6544, --leap
- spec = nil,
- size = 26,
- pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
- desaturate = true,
- move_ingame = true,
- hide_ooc = true,
- alpha = {
- cooldown = {
- frame = 0.6,
- icon = 0.6,
- },
- no_cooldown = {
- frame = 1,
- icon = 1,
- },
- },
- },
- }
- end
- --rogue defaults
- if player_class == "ROGUE" then
- --default rogue buffs
- cfg.rf3_BuffList = {}
- --default rogue debuffs
- cfg.rf3_DebuffList = {}
- --default rogue cooldowns
- cfg.rf3_CooldownList = {}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement