KF2-Server-Extension/ServerExt/Classes/ExtPerksContainer_Header.uc

19 lines
776 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
class ExtPerksContainer_Header extends KFGFxPerksContainer_Header;
2020-11-28 20:04:55 +00:00
final function ExUpdatePerkHeader(Ext_PerkBase PerkClass)
2017-10-20 02:00:49 +00:00
{
local GFxObject PerkDataProvider;
2020-11-28 20:04:55 +00:00
PerkDataProvider = CreateObject("Object");
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());
SetObject("perkData", PerkDataProvider);
2017-10-20 02:00:49 +00:00
}
defaultproperties
{
}