WoWInterface SVN Chimaine

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 5 to Rev 6
    Reverse comparison

Rev 5 → Rev 6

trunk/Chimaine/Chimaine.lua New file
0,0 → 1,92
local bg = {
bgFile = "Interface\\AddOns\\Chimaine\\media\\PlainBackdrop",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
edgeSize = 16,
insets = {left = 2, right = 2, top = 2, bottom = 2},
tile = false, tileSize = 16,
}
 
local sbg = {
bgFile = "Interface\\AddOns\\Chimaine\\media\\PlainBackdrop",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
edgeSize = 4,
insets = {left = 1, right = 1, top = 1, bottom = 1},
tile = false, tileSize = 1,
}
--Unit Frames
local uf = CreateFrame("Frame", nil, UIParent)
uf:SetPoint("CENTER", UIParent, "CENTER", -94.5, -280)
uf:SetHeight(105.3)
uf:SetWidth(185.25)
uf:SetFrameStrata("BACKGROUND")
uf:EnableMouse(false)
uf:SetBackdrop(bg)
uf:SetBackdropColor(0.074, 0.203, 0.372, 0.81)
uf:SetBackdropBorderColor(0, 0.211, 0.670, 1)
 
--Action Bar
local ab = CreateFrame("Frame", nil, UIParent)
ab:SetPoint("CENTER", UIParent, "CENTER", 95.5, -280)
ab:SetHeight(105.3)
ab:SetWidth(185.25)
ab:SetFrameStrata("BACKGROUND")
ab:EnableMouse(false)
ab:SetBackdrop(bg)
ab:SetBackdropColor(0.074, 0.203, 0.372, 0.81)
ab:SetBackdropBorderColor(0, 0.211, 0.670, 1)
 
--Button
local bn = CreateFrame("Frame", nil, UIParent)
bn:SetPoint("CENTER", uf, "RIGHT", 2, 0)
bn:SetHeight(93.59)
bn:SetWidth(15.19)
bn:SetFrameStrata("LOW")
bn:EnableMouse(false)
bn:SetBackdrop(sbg)
bn:SetBackdropColor(0.074, 0.203, 0.372, 0.81)
bn:SetBackdropBorderColor(0, 0.211, 0.670, .6)
 
--Target
local tg = CreateFrame("Frame", nil, UIParent)
tg:SetPoint("BOTTOM", uf, "BOTTOM", 0, -55)
tg:SetHeight(52.65)
tg:SetWidth(185.25)
tg:SetFrameStrata("BACKGROUND")
tg:EnableMouse(false)
tg:SetBackdrop(bg)
tg:SetBackdropColor(0.074, 0.203, 0.372, 0.81)
tg:SetBackdropBorderColor(0, 0.211, 0.670, 1)
 
--Minimap
local map = CreateFrame("Frame", nil, UIParent)
map:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", 0, 0)
map:SetHeight(154.44)
map:SetWidth(154.44)
map:SetFrameStrata("BACKGROUND")
map:EnableMouse(false)
map:SetBackdrop(bg)
map:SetBackdropColor(0.223, 0.262, 0.372, 1)
map:SetBackdropBorderColor(0.470, 0.552, 0.788, 1)
 
--Map Bar
local mb = CreateFrame("Frame", nil, UIParent)
mb:SetPoint("BOTTOM", map, "BOTTOM", 0, -35)
mb:SetHeight(36.96)
mb:SetWidth(154.44)
mb:SetFrameStrata("BACKGROUND")
mb:EnableMouse(false)
mb:SetBackdrop(bg)
mb:SetBackdropColor(0.223, 0.262, 0.372, 1)
mb:SetBackdropBorderColor(0.470, 0.552, 0.788, 1)
 
--[[
function tg:PLAYER_TARGET_CHANGED()
if UnitExists("target")then
tg:Show()
else
tg:Hide()
end
end
 
tg:RegisterEvent("PLAYER_TARGET_CHANGED")
]]--
\ No newline at end of file