2017-10-20 02:00:49 +00:00
|
|
|
class ExtPerksContainer_Header extends KFGFxPerksContainer_Header;
|
|
|
|
|
|
|
|
final function ExUpdatePerkHeader( Ext_PerkBase PerkClass )
|
|
|
|
{
|
|
|
|
local GFxObject PerkDataProvider;
|
|
|
|
|
|
|
|
PerkDataProvider = CreateObject( "Object" );
|
2020-11-28 19:53:57 +00:00
|
|
|
PerkDataProvider.SetString( "perkTitle", PerkClass.PerkName );
|
|
|
|
PerkDataProvider.SetString( "perkLevel", LevelString@PerkClass.CurrentLevel);
|
|
|
|
PerkDataProvider.SetString( "iconSource", PerkClass.GetPerkIconPath(PerkClass.CurrentLevel) );
|
|
|
|
PerkDataProvider.SetString( "prestigeLevel", ""); //not used yet so not point to populating with data
|
|
|
|
PerkDataProvider.SetString( "xpString", PerkClass.CurrentEXP$"/"$PerkClass.NextLevelEXP );
|
|
|
|
PerkDataProvider.SetFloat( "xpPercent", PerkClass.GetProgressPercent() );
|
2017-10-20 02:00:49 +00:00
|
|
|
SetObject( "perkData", PerkDataProvider );
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
}
|