Advertisement
Guest User

Untitled

a guest
Mar 29th, 2013
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.22 KB | None | 0 0
  1.  
  2.   -- // rFilter3
  3.   -- // zork - 2012
  4.  
  5.   --get the addon namespace
  6.   local addon, ns = ...
  7.  
  8.   --object container
  9.   local cfg = CreateFrame("Frame")
  10.   ns.cfg = cfg
  11.  
  12.   cfg.rf3_BuffList, cfg.rf3_DebuffList, cfg.rf3_CooldownList = {}, {}, {}
  13.  
  14.   --local player_name, _ = UnitName("player")
  15.   local _, player_class = UnitClass("player")
  16.  
  17.   -----------------------------
  18.   -- DEFAULT CONFIG
  19.   -----------------------------
  20.  
  21.   cfg.highlightPlayerSpells = true  --player spells will have a blue border
  22.   cfg.updatetime            = 0.3   --how fast should the timer update itself
  23.   cfg.timeFontSize          = 12
  24.   cfg.countFontSize         = 12
  25.  
  26.   --warrior defaults
  27.     if player_class == "WARRIOR" then
  28.  
  29.     cfg.rf3_BuffList = {
  30.       [1] = {
  31.         spellid = 112048, --shield barrier
  32.         spec = 3,
  33.         size = 30,
  34.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  35.         unit = "player",
  36.         validate_unit   = true,
  37.         ismine          = true,
  38.         desaturate      = true,
  39.         move_ingame     = true,
  40.         hide_ooc        = true,
  41.         show_value      = 1,
  42.         alpha = {
  43.           found = {
  44.             frame = 1,
  45.             icon = 1,
  46.           },
  47.           not_found = {
  48.             frame = 0.2,
  49.             icon = 0.6,
  50.           },
  51.         },
  52.       },
  53.       [2] = {
  54.         spellid = 132404, --shield block
  55.         spec = 3,
  56.         size = 30,
  57.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  58.         unit = "player",
  59.         validate_unit   = true,
  60.         ismine          = true,
  61.         desaturate      = true,
  62.         move_ingame     = true,
  63.         hide_ooc        = true,
  64.         alpha = {
  65.           found = {
  66.             frame = 1,
  67.             icon = 1,
  68.           },
  69.           not_found = {
  70.             frame = 0.2,
  71.             icon = 0.6,
  72.           },
  73.         },
  74.       },      
  75.       [3] = {
  76.         spellid = 131116, --raging blow stack
  77.         spec = 2,
  78.         size = 30,
  79.         framestrata = "BACKGROUND",
  80.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  81.         unit = "player",
  82.         validate_unit   = true,
  83.         ismine          = true,
  84.         desaturate      = true,
  85.         move_ingame     = true,
  86.         hide_ooc        = true,
  87.         alpha = {
  88.           found = {
  89.             frame = 1,
  90.             icon = 1,
  91.           },
  92.           not_found = {
  93.             frame = 0,
  94.             icon = 0.6,
  95.           },
  96.         },
  97.       },
  98.       [4] = {
  99.         spellid = 85739, --meat cleaver
  100.         spec = nil,
  101.         size = 26,
  102.         framestrata = "BACKGROUND",
  103.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  104.         unit = "player",
  105.         validate_unit   = true,
  106.         ismine          = true,
  107.         desaturate      = true,
  108.         move_ingame     = true,
  109.         hide_ooc        = true,
  110.         alpha = {
  111.           found = {
  112.             frame = 1,
  113.             icon = 1,
  114.           },
  115.           not_found = {
  116.             frame = 0,
  117.             icon = 0.6,
  118.           },
  119.         },
  120.       },      
  121.       [5] = {
  122.         spellid = 46915, --bloodsurge
  123.         spec = nil,
  124.         size = 26,
  125.         framestrata = "BACKGROUND",
  126.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  127.         unit = "player",
  128.         validate_unit   = true,
  129.         ismine          = true,
  130.         desaturate      = true,
  131.         move_ingame     = true,
  132.         hide_ooc        = true,
  133.         alpha = {
  134.           found = {
  135.             frame = 1,
  136.             icon = 1,
  137.           },
  138.           not_found = {
  139.             frame = 0,
  140.             icon = 0.6,
  141.           },
  142.         },
  143.       },
  144.     }
  145.  
  146.     -- Warrior Debuff List
  147.     cfg.rf3_DebuffList = {
  148.       [1] = {
  149.         spellid = 86346, --colossus
  150.         spec = nil,
  151.         size = 30,
  152.         framestrata = "LOW",
  153.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  154.         unit = "target",
  155.         validate_unit   = true,
  156.         ismine          = true,
  157.         desaturate      = true,
  158.         move_ingame     = true,
  159.         hide_ooc        = false,
  160.         alpha = {
  161.           found = {
  162.             frame = 1,
  163.             icon = 1,
  164.           },
  165.           not_found = {
  166.             frame = 0,
  167.             icon = 0.6,
  168.           },
  169.         },
  170.       },
  171.     }
  172.  
  173.   -- Warrior Cooldown List
  174.     cfg.rf3_CooldownList = {
  175.       [1] = {
  176.         spellid = 118000, --dragon roar
  177.         spelllist = { 118000, 46968, 46924, },
  178.         --spec = 1,
  179.         size = 26,
  180.         framestrata = "LOW",
  181.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  182.         desaturate      = true,
  183.         move_ingame     = true,
  184.         hide_ooc        = true,
  185.         alpha = {
  186.           cooldown = {
  187.             frame = 0.6,
  188.             icon = 0.6,
  189.           },
  190.           no_cooldown = {
  191.             frame = 1,
  192.             icon = 1,
  193.           },
  194.         },
  195.       },
  196.       [2] = {
  197.         spellid = 86346, --colossus
  198.         spec = nil,
  199.         size = 30,
  200.         framestrata = "BACKGROUND",
  201.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  202.         desaturate      = true,
  203.         move_ingame     = true,
  204.         hide_ooc        = true,
  205.         alpha = {
  206.           cooldown = {
  207.             frame = 0.6,
  208.             icon = 0.6,
  209.           },
  210.           no_cooldown = {
  211.             frame = 1,
  212.             icon = 1,
  213.           },
  214.         },
  215.       },
  216.       [3] = {
  217.         spellid = 6544, --leap
  218.         spec = nil,
  219.         size = 26,
  220.         pos = { a1 = "CENTER", a2 = "CENTER", af = "UIParent", x = 0, y = 0 },
  221.         desaturate      = true,
  222.         move_ingame     = true,
  223.         hide_ooc        = true,
  224.         alpha = {
  225.           cooldown = {
  226.             frame = 0.6,
  227.             icon = 0.6,
  228.           },
  229.           no_cooldown = {
  230.             frame = 1,
  231.             icon = 1,
  232.           },
  233.         },
  234.       },
  235.     }
  236.  
  237.   end
  238.  
  239.   --rogue defaults
  240.   if player_class == "ROGUE" then
  241.     --default rogue buffs
  242.     cfg.rf3_BuffList = {}
  243.     --default rogue debuffs
  244.     cfg.rf3_DebuffList = {}
  245.     --default rogue cooldowns
  246.     cfg.rf3_CooldownList = {}
  247.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement