more changes!
Pawkette [03-16-14 - 19:30]
diff --git a/PSBT.lua b/PSBT.lua
index bed7633..6f18b4d 100644
--- a/PSBT.lua
+++ b/PSBT.lua
@@ -50,6 +50,17 @@ function PSBT:Initialize( control )
self.control:RegisterForEvent( EVENT_ADD_ON_LOADED, function( _, addon ) self:OnLoaded( addon ) end )
end
+
+function PSBT:FormatFont( fontObject )
+ local path, size, decoration = fontObject:GetFontInfo()
+ local fmt = '%s|%d'
+ if ( decoration ) then
+ fmt = fmt .. '|%s'
+ end
+
+ return fmt:format( path, size, decoration )
+end
+
function PSBT:OnLoaded( addon )
if ( addon ~= 'PSBT' ) then
return
@@ -123,6 +134,14 @@ function PSBT:NewEvent( scrollArea, sticky, icon, text )
return
end
+ if ( sticky ) then
+ entry.label:SetFont( self:FormatFont( ZoFontCallout ) )
+ entry.control:SetDrawTier( DT_HIGH )
+ else
+ entry.label:SetFont( self:FormatFont( ZoFontGameBold ) )
+ entry.control:SetDrawTier( DT_LOW )
+ end
+
entry:SetExpire( -1 ) --pending
entry:SetText( text )
entry:SetTexture( icon )
diff --git a/PSBT.xml b/PSBT.xml
index 12f499a..5c88351 100644
--- a/PSBT.xml
+++ b/PSBT.xml
@@ -4,7 +4,7 @@
<Dimensions x="300" y="24" />
<Controls>
- <Label name="$(parent)_Name" font="ZoFontGameBold" horizontalAlignment="CENTER" verticalAlignment="CENTER" wrapMode="ELLIPSIS">
+ <Label name="$(parent)_Name" horizontalAlignment="CENTER" verticalAlignment="CENTER" wrapMode="ELLIPSIS">
<AnchorFill/>
</Label>
diff --git a/PSBT_Combat.lua b/PSBT_Combat.lua
index 5882676..1f55836 100644
--- a/PSBT_Combat.lua
+++ b/PSBT_Combat.lua
@@ -91,7 +91,7 @@ local combat_events =
area = PSBT_AREAS.OUTGOING
end
- return zo_strformat( '+<<1>> [|c080C3F2<<2>>|r]!', hitValue, name ), area, true
+ return zo_strformat( '+<<1>> [|c80C3F2<<2>>|r]!', hitValue, name ), area, true
end,
[ ACTION_RESULT_DAMAGE ] = function( abilityName, abilityGraphic, abilityActionSlotType, sourceName, sourceType, targetName, targetType, hitValue, mechanicValue, damageType )
local area = nil