//=============================================================================//
// ___ ___ _ _ _ __ _ ___ ___ __ __
// |_ _|| __| / \ | \_/ | / _| / \ | o \ o \\ V /
// | | | _| | o || \_/ | ( |_n| o || / / \ /
// |_| |___||_n_||_| |_| \__/|_n_||_|\\_|\\ |_| 2009
//
//=============================================================================//
local PANEL = {}
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:Init()
self.NameShadow:
SetFont( "Trebuchet22" )
self.NameShadow:
SetText( "Unnammed" )
self.Desc:
SetText( "Kill 15 pigeons with a shotgun bitch" )
self:SetBackgroundColor
( Color( 100,
100,
100,
255 ) )
end
function PANEL:SetContentsAlpha( alpha )
self.m_bDull = true
/*
self.Name:SetAlpha( alpha )
self.NameShadow:SetAlpha( alpha )
self.Desc:SetAlpha( alpha )
self.Icon:SetAlpha( alpha )
self.ProgressBar:SetAlpha( alpha )
*/
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:SetNumber( i )
self.Icon:SetAchievement( i )
local iCount
= achievements.
GetCount( i
)
local iGoal = achievements.GetGoal( i )
if ( iGoal > 1 ) then
self.ProgressBar:SetMin( 0 )
self.ProgressBar:SetMax( iGoal )
self.ProgressBar:SetValue( iCount )
end
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:PerformLayout()
self.NameShadow.x = self.NameShadow.x + 2
self.NameShadow.y = self.NameShadow.y + 2
self.ProgressBar:
SetPos( 10,
10 )
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:PaintOver()
if ( self.m_bDull ) then
end
end