WoWInterface SVN fernir_UI

[/] [settings.lua] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 Wildbreath-135052
local addonName, ns = ...
2 Wildbreath-135052
oUF = ns.oUF or oUF
3 Wildbreath-135052
if not oUF then return end
4 Wildbreath-135052
 
5 Wildbreath-135052
local media = "Interface\\Addons\\"..addonName.."\\textures\\"
6 Wildbreath-135052
local _, playerclass = UnitClass('player')
7 Wildbreath-135052
 
8 Wildbreath-135052
oUF_Settings = {
9 Wildbreath-135052
 
10 Wildbreath-135052
    UIScale = true,
11 Wildbreath-135052
 
12 Wildbreath-135052
    Portraits = true,
13 Wildbreath-135052
 
14 Wildbreath-135052
    MinimapScale = 0.8,
15 Wildbreath-135052
 
16 Wildbreath-135052
    powerbar = false,
17 Wildbreath-135052
 
18 Wildbreath-135052
    cornerPoints = true,
19 Wildbreath-135052
 
20 Wildbreath-135052
    corners = {
21 Wildbreath-135052
      {spellID = 48440, point = "BOTTOMLEFT", width = 10, height = 10, action = "HELPFUL", count = false, color = {1, .1, 1, 1 }, }, --rejuvenation
22 Wildbreath-135052
      {spellID = 48443, point = "TOPLEFT", width = 10, height = 10, action = "HELPFUL", count = false, color = { 0, 1, .4, 1 }, }, --regrowth
23 Wildbreath-135052
      {spellID = 48450, point = "TOPRIGHT", width = 10, height = 10, action = "HELPFUL", count = true, color = { 0, 1, 0, 1 }, }, --lifebloom
24 Wildbreath-135052
      {spellID = 53249, point = "BOTTOMRIGHT", width = 10, height = 10, action = "HELPFUL", count = false, color = { 1, .8, 0, 1 }, }, --wildgrowth
25 Wildbreath-135052
      {spellID = 47486, action = "HARMFUL", }, --mortal strike
26 Wildbreath-135052
      {spellID = 43235, action = "HARMFUL", }, --wound poison
27 Wildbreath-135052
    },
28 Wildbreath-135052
 
29 Wildbreath-135052
    runecolors = {
30 Wildbreath-135052
       [1] = {.69,.31,.31},
31 Wildbreath-135052
       [2] = {.69,.31,.31},
32 Wildbreath-135052
       [3] = {.33,.59,.33},
33 Wildbreath-135052
       [4] = {.33,.59,.33},
34 Wildbreath-135052
       [5] = {.31,.45,.63},
35 Wildbreath-135052
       [6] = {.31,.45,.63},
36 Wildbreath-135052
    },
37 Wildbreath-135052
 
38 Wildbreath-135052
    powercolors = { -- my colors for power bars
39 Wildbreath-135052
        ["MANA"] = {.2, .4, 1},
40 Wildbreath-135052
        ["RAGE"] = {.9, .1, .1},
41 Wildbreath-135052
        ["FOCUS"] = {.9, .9, .1},
42 Wildbreath-135052
        ["ENERGY"] = {.9, .9, .1},
43 Wildbreath-135052
        ["RUNIC_POWER"] = {.1, .9, .9},
44 Wildbreath-135052
    },
45 Wildbreath-135052
 
46 Wildbreath-135052
    texture = media.."tex_smooth",          -- Texture for all bars
47 Wildbreath-135052
    buffTex = media.."gloss",               -- border for aura icons
48 Wildbreath-135052
    indicator = media.."indicator",         -- Raid corner texture
49 Wildbreath-135052
    font = media.."myriadpro.ttf",          -- global font
50 Wildbreath-135052
    fsize = 13,                             -- global font size
51 Wildbreath-135052
    borderGlow = media.."simplesquare_glow",
52 Wildbreath-135052
    striped = media.."tex_striped",
53 Wildbreath-135052
    buffGloss = media.."gloss_border",
54 Wildbreath-135052
    normTex = media.."normTex",             -- nameplate normal texture
55 Wildbreath-135052
    glowTex = media.."glowTex",             -- nameplate glow texture
56 Wildbreath-135052
 
57 Wildbreath-135052
    ClassColor = true,               -- color healthbar by class or reaction
58 Wildbreath-135052
    OwnColor = { 0.6, 1, 0.9 },      -- or use own color
59 Wildbreath-135052
    PowerColorByType = true,         -- color power bar by power type (rage = red, mana = blue tc)
60 Wildbreath-135052
    OwnPowerColor = { 0.2, 0.2, 1 }, -- or use own power color
61 Wildbreath-135052
    chatcolor = { .1, .1, .1 },
62 Wildbreath-135052
    ccolor = _G["RAID_CLASS_COLORS"][select(2, UnitClass("player"))] or {0,0,0},  -- DO NOT EDIT OR DELETE!
63 Wildbreath-135052
    chatalpha = 1,
64 Wildbreath-135052
 
65 Wildbreath-135052
    Frames = {
66 Wildbreath-135052
        ["player"] = {Width = 200, Height = 45, ManaBarHeight = 12},
67 Wildbreath-135052
        ["target"] = {Width = 200, Height = 45, ManaBarHeight = 12},
68 Wildbreath-135052
        ["targettarget"] = {Width = 100, Height = 25, ManaBarHeight = 6},
69 Wildbreath-135052
        ["focus"] = {Width = 100, Height = 10, ManaBarHeight = 3},
70 Wildbreath-135052
        ["focustarget"] = {Width = 100, Height = 10, ManaBarHeight = 3},
71 Wildbreath-135052
        ["pet"] = {Width = 45, Height = 45, ManaBarHeight = 6},
72 Wildbreath-135052
    },
73 Wildbreath-135052
    Positions = {
74 Wildbreath-135052
        ["player"] = {"TOPRIGHT", UIParent, "BOTTOM", -100, 300},
75 Wildbreath-135052
        ["target"] = {"TOPLEFT", UIParent, "BOTTOM", 100, 300},
76 Wildbreath-135052
        ["targettarget"] = {"TOP", UIParent, "BOTTOM", 0, 300},
77 Wildbreath-135052
        ["focus"] = {"TOPLEFT", UIParent, "BOTTOMLEFT", 32, 300},
78 Wildbreath-135052
        ["focustarget"] = {"LEFT", oUF.units.focus, "RIGHT", 5, 0},
79 Wildbreath-135052
        ["pet"] = {"TOP", oUF.units.player, "BOTTOM", 0, -20},
80 Wildbreath-135052
    },
81 Wildbreath-135052
 
82 Wildbreath-135052
    RaidFrames = {Width = 60, Height = 50, ManaBar = 3},
83 Wildbreath-135052
    RaidPositions = {"TOPLEFT", UIParent, 27, -27}, -- first raid group
84 Wildbreath-135052
 
85 Wildbreath-135052
}
86 Wildbreath-135052
 
87 Wildbreath-135052
if playerclass == "DEATHKNIGHT" then
88 Wildbreath-135052
   table.insert(oUF_Settings.corners,
89 Wildbreath-135052
    {spellID = 57623, point = "TOPLEFT", width = 10, height = 10, action = "HELPFUL", count = false, color = {0, 0, 1, 1 }, }
90 Wildbreath-135052
   )--winter horn
91 Wildbreath-135052
elseif playerclass == "SHAMAN" then
92 Wildbreath-135052
   table.insert(oUF_Settings.corners,
93 Wildbreath-135052
    {spellID = 57960, point = "TOPLEFT", width = 15, height = 15, action = "HELPFUL", count = false, color = {0, 0, 1, 1 }, }
94 Wildbreath-135052
   )--water shield
95 Wildbreath-135052
end