Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

KFGui.KFLobbyTitleLabel


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
//By: Alex (AND PROUD OF IT. THIS TOOK ALL DAY)  >:(
// ONLY TO LATER COMMENT IT ALL OUT IN FAVOR OF DOING THINGS FROM THE LOBBY CLASS :-/
class KFLobbyTitleLabel extends GUILabel;

//var() localized String   MapName;
//var localized string      SkillLevel[8];
//var String SkillString;

/*
function SetCaption( string NewCaption )
{
    Caption = GetMapName(Caption);
}


function String GetMapName(string TitleName)
{
 local class <KFScoreBoard> KFScoreBoardType;
 local KFScoreBoard A;

if (PlayerOwner().Level.Game!=None)
{
 //if (SkillString == "" && PlayerOwner().Level.Game.ScoreBoardType != "")
 if (PlayerOwner().Level.Game.ScoreBoardType != "")
 {
  KFScoreBoardType = class<KFScoreBoard>(DynamicLoadObject(PlayerOwner().Level.Game.ScoreBoardType, class'Class'));
  A = PlayerOwner().Spawn(KFScoreBoardType);
 // SkillString = A.SkillLevel[Clamp(KFGameReplicationInfo(PlayerOwner().GameReplicationInfo).BaseDifficulty,0,7)];

 }

 if (KFGameReplicationInfo(PlayerOwner().GameReplicationInfo) != none)
 {

  //  return SkillText@KFGameReplicationInfo(PlayerOwner().GameReplicationInfo).GameName$" on "$PlayerOwner().Level.Title;
  return A.SkillLevel[Clamp(KFGameReplicationInfo(PlayerOwner().GameReplicationInfo).BaseDifficulty,0,7)]@KFGameReplicationInfo(PlayerOwner().GameReplicationInfo).GameName$" on "$PlayerOwner().Level.Title;
  A.Destroy();
  }
   else
    return "Killing Floor";
}
}

*/

defaultproperties
{
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fri 13-10-2023 03:17:26.000 - Creation time: Fri 13-10-2023 03:19:03.625 - Created with UnCodeX