Skip to content

Commit

Permalink
update:
Browse files Browse the repository at this point in the history
- fixed missing font template strings
  • Loading branch information
sinaris committed Sep 12, 2012
1 parent c736a44 commit c79087a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion AsphyxiaUI/Core/System.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ if( C["global"]["fonttemplate"] == "default" ) then

PanelsDefault = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),

UFFontString = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),
UnitframesHealth = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),
UnitframesPower = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),
UnitframesName = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),
Expand All @@ -83,6 +82,8 @@ if( C["global"]["fonttemplate"] == "default" ) then

FAQTitle = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),
FAQButtons = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),

SkinsDefault = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),
}
elseif( C["global"]["fonttemplate"] == "pixel" or C["global"]["fonttemplate"] == nil ) then
local PixelFont, PixelSize
Expand Down Expand Up @@ -159,5 +160,7 @@ elseif( C["global"]["fonttemplate"] == "pixel" or C["global"]["fonttemplate"] ==

FAQTitle = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),
FAQButtons = CreateFontTemplate( C["media"]["font"], 12, "OUTLINE" ),

SkinsDefault = CreateFontTemplate( PixelFont, PixelSize, "MONOCHROMEOUTLINE" ),
}
end
2 changes: 1 addition & 1 deletion AsphyxiaUI/Modules/Extras/RaidCooldowns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ end

local CreateFS = function( frame, fsize, fstyle )
local fstring = frame:CreateFontString( nil, "OVERLAY" )
fstring:SetFont( S.CreateFontString() )
fstring:SetFont( unpack( S.FontTemplate.SkinsDefault.BuildFont ) )
fstring:SetShadowOffset( 1.25, -1.25 )
return fstring
end
Expand Down
4 changes: 2 additions & 2 deletions AsphyxiaUI/Modules/Skins/Addons/BigWigs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ local applystyle = function( bar )
bar:Set( "bigwigs:tukui_bigwigs:ibg", ibg )
end

bar.candyBarLabel:SetFont( S.CreateFontString() )
bar.candyBarLabel:SetFont( unpack( S.FontTemplate.SkinsDefault.BuildFont ) )
bar.candyBarLabel:SetShadowColor( 0, 0, 0, 0 )
bar.candyBarLabel:SetJustifyH( "LEFT" )
bar.candyBarLabel:ClearAllPoints()
bar.candyBarLabel:Point( "BOTTOMLEFT", bar, "TOPLEFT", -2, 4 )

bar.candyBarDuration:SetFont( S.CreateFontString() )
bar.candyBarDuration:SetFont( unpack( S.FontTemplate.SkinsDefault.BuildFont ) )
bar.candyBarDuration:SetShadowColor( 0, 0, 0, 0 )
bar.candyBarDuration:SetJustifyH( "RIGHT" )
bar.candyBarDuration:ClearAllPoints()
Expand Down
10 changes: 5 additions & 5 deletions AsphyxiaUI/Modules/Skins/Addons/DBM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ local function SkinBars( self )
name:Point( "BOTTOMLEFT", frame, "TOPLEFT", 0, 4 )
name:SetWidth( 165 )
name:SetHeight( 8 )
name:SetFont( S.CreateFontString() )
name:SetFont( unpack( S.FontTemplate.SkinsDefault.BuildFont ) )
name:SetJustifyH( "LEFT" )
name:SetShadowColor( 0, 0, 0, 0 )
name.SetFont = S.dummy
Expand All @@ -125,7 +125,7 @@ local function SkinBars( self )
if( not timer.styled ) then
timer:ClearAllPoints()
timer:Point( "BOTTOMRIGHT", frame, "TOPRIGHT", -1, 2 )
timer:SetFont( S.CreateFontString() )
timer:SetFont( unpack( S.FontTemplate.SkinsDefault.BuildFont ) )
timer:SetJustifyH( "RIGHT" )
timer:SetShadowColor( 0, 0, 0, 0 )
timer.SetFont = S.dummy
Expand Down Expand Up @@ -166,7 +166,7 @@ local SkinBossTitle = function()
if( not anchor.styled ) then
local header = { anchor:GetRegions() }
if( header[1]:IsObjectType( "FontString" ) ) then
header[1]:SetFont( S.CreateFontString() )
header[1]:SetFont( unpack( S.FontTemplate.SkinsDefault.BuildFont ) )
header[1]:SetTextColor( 1, 1, 1, 1 )
header[1]:SetShadowColor( 0, 0, 0, 0 )
anchor.styled = true
Expand Down Expand Up @@ -222,7 +222,7 @@ local SkinBoss=function()
if( not name.styled ) then
name:ClearAllPoints()
name:Point( "BOTTOMLEFT", bar, "TOPLEFT", 1, 2 )
name:SetFont( S.CreateFontString() )
name:SetFont( unpack( S.FontTemplate.SkinsDefault.BuildFont ) )
name:SetJustifyH( "LEFT" )
name:SetShadowColor( 0, 0, 0, 0 )
name.styled = true
Expand All @@ -231,7 +231,7 @@ local SkinBoss=function()
if( not timer.styled ) then
timer:ClearAllPoints()
timer:Point( "BOTTOMRIGHT", bar, "TOPRIGHT", 0, 2 )
timer:SetFont( S.CreateFontString() )
timer:SetFont( unpack( S.FontTemplate.SkinsDefault.BuildFont ) )
timer:SetJustifyH( "RIGHT" )
timer:SetShadowColor( 0, 0, 0, 0 )
timer.styled = true
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Modules/Skins/Addons/TinyDPS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if( not IsAddOnLoaded( "TinyDPS" ) or C["addonskins"]["tinydps"] ~= true ) then

local frame = CreateFrame( "Frame" )
frame:RegisterEvent( "PLAYER_LOGIN" )
frame:SetScript( "OnEvent", function( self, event )
frame:SetScript( "OnEvent", function( self, event )
local frame = tdpsFrame
local anchor = tdpsAnchor
local status = tdpsStatusBar
Expand Down

0 comments on commit c79087a

Please sign in to comment.