32 lines
635 B
Ucode
32 lines
635 B
Ucode
class KFAchievementsListBox extends GUIListBoxBase;
|
|
|
|
var KFAchievementsList List;
|
|
|
|
function InitComponent(GUIController MyController, GUIComponent MyOwner)
|
|
{
|
|
Super.InitComponent(MyController,MyOwner);
|
|
|
|
if ( DefaultListClass != "" )
|
|
{
|
|
List = KFAchievementsList(AddComponent(DefaultListClass));
|
|
if ( List == none )
|
|
{
|
|
log(Class$".InitComponent - Could not create default list ["$DefaultListClass$"]");
|
|
return;
|
|
}
|
|
}
|
|
|
|
if ( List == none )
|
|
{
|
|
Warn("Could not initialize list!");
|
|
return;
|
|
}
|
|
|
|
InitBaseList(List);
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
DefaultListClass="KFGUI.KFAchievementsList"
|
|
}
|