Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.80 KB | None | 0 0
  1.   local addon, ns = ...
  2.   local cfg = CreateFrame("Frame")
  3.  
  4.   cfg.oUF = {
  5.     -- CONFIG
  6.     settings = {        -- general settings
  7.         ReverseHPbars = false,              -- fill health bars from right to left instead of standard left -> right direction
  8.         health_spark = true,                -- add spark to the health bar
  9.         class_color_power = true,           -- class color power bar
  10.         show_class = false,                 -- display additional class indication @ unit frames
  11.         pvp_flag = false,                   -- enables PVP flag next to player's name
  12.         playerauras = "NONE",               -- small aura frame for player, available options: "BUFFS", "DEBUFFS", "AURAS", "NONE"
  13.         auratimers = {
  14.             ["enable"] = false,             -- aura timers
  15.             ["font_size"] = 11,             -- aura timer font size
  16.         },
  17.         ghost_target = false,               -- fake target bars that spawn if you don't have anything targeted
  18.         raid_mark = {
  19.             ["enable"] = true,              -- enable raid marks
  20.             ["alpha"] = 0.6,                -- raid mark opacity
  21.             ["size"] = 16,                  -- raid mark size
  22.         },
  23.         CombatFeedback = false,             -- enables CombatFeedback on player and target unit frames
  24.         Portrait = false,                   -- enables 3d portraits on player and target unit frames
  25.         ClassBars = {
  26.             ["enable"] = true,              -- enable class specific bars (totems, runes etc.)
  27.             ["undock"] = false,             -- set a custom position for this element
  28.             ["position"] = {"CENTER",UIParent,"BOTTOM",0,250},
  29.         },
  30.         AltPowerBar = {
  31.             ["enable"] = true,              -- let oUF handle alternative powerbar
  32.             ["undock"] = true,              -- set custom position for it
  33.             ["position"] = {"BOTTOM", "UIParent", "BOTTOM", 0, 275},
  34.         },
  35.         click2focus = {                
  36.             ["enable"] = true,              -- set focus macro on modified frame click (may cause taint)
  37.             ["key"] = "Shift",              -- modifier key to focus
  38.         },
  39.     },
  40.     frames = {          -- unit frames settings
  41.         player = {                      -- Player's frame
  42.             ["position"] = {"BOTTOMLEFT","Anchorplayer","BOTTOM"},     
  43.             ["width"] = 229,
  44.             ["height"] = 24,
  45.             ["scale"] = 1,
  46.         },
  47.         target = {                      -- Target's frame
  48.             ["position"] = {"BOTTOMRIGHT","Anchortarget","BOTTOM"},
  49.             ["width"] = 229,
  50.             ["height"] = 24,
  51.             ["scale"] = 1,
  52.         },
  53.         tot = {
  54.             ["enable"] = true,          -- Target of Target
  55.             ["position"] = {"BOTTOMRIGHT", "Anchortot", "BOTTOM"},
  56.             ["width"] = 123,
  57.             ["height"] = 20,
  58.             ["scale"] = 0.9,
  59.         },
  60.         pet = {
  61.             ["enable"] = false,         -- Player's pet
  62.             ["position"] = {"TOPLEFT", "oUF_monoPlayerFrame", "BOTTOMLEFT", 0, -42},
  63.             ["width"] = 123,
  64.             ["height"] = 20,
  65.             ["scale"] = 0.9,
  66.         },
  67.         focus = {
  68.             ["enable"] = true,          -- Focus target + target of focus target
  69.             ["position"] = {"TOPRIGHT", "Anchorfocus"},
  70.             ["target_position"] = {"TOPLEFT", "Anchorfocus"},
  71.             ["width"] = 123,
  72.             ["height"] = 20,
  73.             ["scale"] = 0.9,
  74.         },
  75.         party = {
  76.             ["enable"] = false,         -- Party frames
  77.             ["position"] = {"BOTTOMLEFT", "UIParent", "BOTTOMLEFT", 120, 362},
  78.             ["spacing"] = 40,           -- spacing between party units
  79.             ["width"] = 196,
  80.             ["height"] = 22,
  81.             ["scale"] = 1,
  82.         },
  83.         arena_boss = {
  84.             ["enable_arena"] = false,   -- Boss & Arena frames
  85.             ["enable_boss"] = false,
  86.             ["position"] = {"BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -120, 362},
  87.             ["spacing"] = 56,           -- spacing between units
  88.             ["width"] = 196,
  89.             ["height"] = 22,
  90.             ["scale"] = 1,
  91.         },
  92.         raid = {                        -- Raid frames configuration
  93.             ["enable"] = false,        
  94.             ["position"] = {"TOPLEFT", "UIParent", "BOTTOM", -156, 177},
  95.            
  96.             ["party"] = false,                              -- show party as 5 men raid group
  97.             ["raid5"] = false,                              -- show raid frame for 5 (or less) men raid group
  98.             ["raid40"] = false,                                 -- allow raid frames to change their size if there are more than 30 players in the group
  99.             ["raid_menu"] = false,                          -- enable/disable right-click menu for raid frames
  100.             main_tank = {
  101.                 ["enable"] = false,                                                     -- enable Main tank frames
  102.                 ["position"] = {"BOTTOMLEFT", "UIParent", "BOTTOMRIGHT", -163, 233},    -- MTs frame position
  103.                 ["scale"] = 1.5,                                                        -- MT size relatively to unit size
  104.             },
  105.             ["width"] = 59,                                 -- raid unit width
  106.             ["height"] = 27,                                -- raid unit height
  107.             ["spacing"] = 4,                                -- spacing between units
  108.             ["name_length"] = 4,                            -- number of letters to display
  109.             ["font_size"] = 12,                             -- font size for names / hp values
  110.             ["orientation"] = "HORIZONTAL",                 -- hp/mp bar direction
  111.             ["focus_color"] = {.8, .8, .2, .7},             -- focus border color
  112.             ["DisableRaidManager"] = true,                  -- disable default compact Raid Manager button
  113.             ["update_time"] = .25,                          -- Enhances update rate for indicators (can be cpu intensive with lower values)
  114.             debuff = { 
  115.                 ["size"] = 11,                              -- debuff icon size
  116.                 ["timer"] = 5,                              -- enable/disable timer for raid debuffs
  117.             },
  118.             indicators = {                         
  119.                 ["enable"] = true,                          -- enable/disable raid frames indicators
  120.                 ["size"] = 5,                               -- square indicator size
  121.                 ["counter_size"] = 11,                      -- bottom right corner counter size
  122.             },
  123.             icons = {
  124.                 ["size"] = 10,                              -- informative icon size (aka RL,ML,A etc.)
  125.                 ["leader"] = true,                          -- toggle leader/assistant/master looter icons visibility on raid units
  126.                 ["raid_mark"] = true,                       -- toggle raid mark visibility on raid units
  127.                 ["ready_check"] = true,                     -- ready check icon
  128.                 ["role"] = true,                            -- toggle group role indication on/off
  129.             },
  130.             powerbar = {
  131.                 ["enable"] = true,                          -- toggle display of tiny power bars on raid frames
  132.                 ["size"] = 0.09,                            -- power bar thickness relatively to unit size
  133.             },
  134.             healbar = {                                
  135.                 ["enable"] = true,                          -- enable healing prediction bar
  136.                 ["healalpha"] = 0.25,                       -- heal prediction bar alpha
  137.                 ["healoverflow"] = 1.2,                         -- overhealing display (1 = disabled, may take values higher than 1)
  138.                 ["healtext"] = false,                       -- show/hide heal prediction text
  139.             },
  140.             ["absorbtext"] = false,                         -- display total absorbs text
  141.         },
  142.     },
  143.     castbar = {         -- cast bars settings
  144.         color = {
  145.             ["normal"] = {.3,.45,.65},
  146.             ["uninterruptable"] = {1,.49,0},
  147.         },
  148.         player = {
  149.             ["enable"] = false,                             -- enable cast bar for player frame
  150.             ["undock"] = false,                             -- detach cast bar from frame
  151.             ["position"] = {"CENTER",UIParent,"BOTTOM",10,320}, -- custom castbar position if undocked
  152.             ["width"] = 210,                                -- cast bar width if undocked
  153.             ["height"] = 17,                                -- cast bar height if undocked
  154.         },
  155.         target = {
  156.             ["enable"] = false,
  157.             ["undock"] = false,
  158.             ["position"] = {"CENTER",UIParent,"BOTTOM",10,360},
  159.             ["width"] = 210,
  160.             ["height"] = 17,
  161.         },
  162.         focus = {
  163.             ["enable"] = false,
  164.             ["undock"] = true,
  165.             ["position"] = {"CENTER",UIParent,"BOTTOM",10,470},
  166.             ["width"] = 280,
  167.             ["height"] = 17,
  168.         },
  169.     },
  170.     -- MEDIA
  171.     media = {
  172.         statusbar = "Interface\\Addons\\oUF_mono\\media\\statusbar",
  173.         auratex = "Interface\\Addons\\oUF_mono\\media\\iconborder",
  174.         font = "Interface\\Addons\\oUF_mono\\media\\font.ttf",
  175.         backdrop_texture = "Interface\\Addons\\oUF_mono\\media\\backdrop",
  176.         backdrop_edge_texture = "Interface\\Addons\\oUF_mono\\media\\backdrop_edge",
  177.        
  178.         aurafont = "Interface\\Addons\\oUF_mono\\media\\auras.ttf",
  179.         debuffborder = "Interface\\Addons\\oUF_mono\\media\\iconborder",
  180.         highlightTex = "Interface\\Buttons\\WHITE8x8",
  181.     },
  182.   }
  183.  
  184.   -- my config
  185.   if GetUnitName("player") == "Strigoy" or GetUnitName("player") == "Strig" then
  186.     cfg.oUF.settings.playerauras = "DEBUFFS"
  187.     cfg.oUF.frames.party.position = {"BOTTOMRIGHT", "oUF_monoPlayerFrame", "TOPLEFT", -50, 70}
  188.     cfg.oUF.frames.arena_boss.position = {"BOTTOMLEFT", "oUF_monoTargetFrame", "TOPRIGHT", 50, 70}
  189.     cfg.oUF.frames.arena_boss.position = {"BOTTOMLEFT", "oUF_monoTargetFrame", "TOPRIGHT", 50, 70}
  190.     cfg.oUF.frames.raid.main_tank.position = {"TOPLEFT", "UIParent", "BOTTOM", 167, 177}
  191.     cfg.oUF.frames.raid.main_tank.scale = 1.1
  192.   end
  193.   -- HANDOVER
  194.   ns.cfg = cfg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement