Skip to content

Commit

Permalink
5.26
Browse files Browse the repository at this point in the history
- better skins for omen & Recount
  • Loading branch information
Duffed committed Feb 23, 2011
1 parent 17125b2 commit e9109e8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Tukui/Tukui.toc
Expand Up @@ -3,7 +3,7 @@
## Project Collaborators: Elv22, Nightcracker
## Credits to: Caith, Caellian, Shestak, Haste, Tekkub, Alza, Roth, P3lim, Tulla, Hungtar, hankthetank, Ishtara and others...
## Special Thanks to: Admins, Moderator and VIP's from tukui.org
## Version: 13.05 (Duffed UI v5.25)
## Version: 13.05 (Duffed UI v5.26)
## Title: |cffC495DDTukui|r
## Notes: UI of awesomeness!
## SavedVariables: TukuiData
Expand Down
1 change: 0 additions & 1 deletion Tukui/config/profiles.lua
Expand Up @@ -50,7 +50,6 @@ if IsAddOnLoaded("b") then
C.Addon_Skins.background = true
C.actionbar.hotkey = true
C.datatext.classcolored = true
C.chat.rightchatbackground = false
C.castbar.classcolored = true
C.unitframes.vengeancebar = true
end
2 changes: 2 additions & 0 deletions Tukui/modules/skins/addons/Omen.lua
Expand Up @@ -58,6 +58,8 @@ Mod_AddonSkins:RegisterSkin("Omen",function(Skin, skin, Layout, layout, config)
self:UpdateBackdrop_()
skin:SkinBackgroundFrame(self.BarList)
-- skin:SkinBackgroundFrame(self.Title)
self.Title:SetBackdropColor(0,0,0,0)
self.Title:SetBackdropBorderColor(0,0,0,0)
self.BarList:SetPoint("TOPLEFT", self.Title, "BOTTOMLEFT",0,-1)
end
-- Hook bar creation to apply settings
Expand Down
35 changes: 26 additions & 9 deletions Tukui/modules/skins/addons/Recount.lua
Expand Up @@ -17,17 +17,30 @@ local T, C, L = unpack(select(2, ...)) -- Import Functions/Constants, Config, Lo
if not IsAddOnLoaded("Recount") then return end
local Recount = _G.Recount

local LSM = LibStub("LibSharedMedia-3.0")
if LSM then LSM:Register("font","Tukui Font", [[Interface\AddOns\Tukui\medias\fonts\uf_font.ttf]]) end

Mod_AddonSkins:RegisterSkin("Recount",function(Skin, skin, Layout, layout, config)

local function SkinFrame(frame)
frame.bgMain = CreateFrame("Frame",nil,frame)
skin:SkinBackgroundFrame(frame.bgMain)
frame.bgMain:SetPoint("BOTTOMLEFT",frame,"BOTTOMLEFT")
frame.bgMain:SetPoint("BOTTOMRIGHT",frame,"BOTTOMRIGHT")
frame.bgMain:SetPoint("TOP",frame,"TOP",0,-7)
frame.bgMain = CreateFrame("Frame",nil,frame)
skin:SkinBackgroundFrame(frame.bgMain)
frame.bgMain:SetPoint("BOTTOMLEFT",frame,"BOTTOMLEFT")
frame.bgMain:SetPoint("BOTTOMRIGHT",frame,"BOTTOMRIGHT")
frame.bgMain:SetPoint("TOP",frame,"TOP",0,-30)
frame.bgMain:SetFrameStrata("BACKGROUND")
frame.CloseButton:SetPoint("TOPRIGHT",frame,"TOPRIGHT",-1,-9)
frame.CloseButton:SetPoint("TOPRIGHT",frame,"TOPRIGHT",-1,-9)
frame:SetBackdrop(nil)
frame.Title:SetFont(C.datatext.font, C.datatext.fontsize)
frame.CloseButton:SetNormalTexture("")
frame.CloseButton:SetPushedTexture("")
frame.CloseButton:SetHighlightTexture("")
frame.CloseButton.t = frame.CloseButton:CreateFontString(nil, "OVERLAY")
frame.CloseButton.t:SetFont(C.datatext.font, C.datatext.fontsize)
frame.CloseButton.t:SetPoint("CENTER")
frame.CloseButton.t:SetText("X")
frame.CloseButton:SetScript("OnEnter", function() frame.CloseButton.t:SetText(T.panelcolor.."X") end)
frame.CloseButton:SetScript("OnLeave", function() frame.CloseButton.t:SetText("X") end)
end

-- Override bar textures
Expand All @@ -36,6 +49,10 @@ Mod_AddonSkins:RegisterSkin("Recount",function(Skin, skin, Layout, layout, confi
v.StatusBar:SetStatusBarTexture(config.normTexture)
v.StatusBar:GetStatusBarTexture():SetHorizTile(false)
v.StatusBar:GetStatusBarTexture():SetVertTile(false)
v.LeftText:SetPoint("LEFT", 4, 0)
v.LeftText:SetFont(C.datatext.font, C.datatext.fontsize)
v.RightText:SetPoint("RIGHT", -4, 0)
v.RightText:SetFont(C.datatext.font, C.datatext.fontsize)
end
Recount:SetFont("Tukui Font")
end
Expand All @@ -51,9 +68,9 @@ Mod_AddonSkins:RegisterSkin("Recount",function(Skin, skin, Layout, layout, confi
-- Skin frames when they're created
Recount.CreateFrame_ = Recount.CreateFrame
Recount.CreateFrame = function(self, Name, Title, Height, Width, ShowFunc, HideFunc)
local frame = self:CreateFrame_(Name, Title, Height, Width, ShowFunc, HideFunc)
SkinFrame(frame)
return frame
local frame = self:CreateFrame_(Name, Title, Height, Width, ShowFunc, HideFunc)
SkinFrame(frame)
return frame
end

-- Skin existing frames
Expand Down

0 comments on commit e9109e8

Please sign in to comment.