KF2-YetAnotherScoreboard/YAS/Classes/CustomRanks.uc

45 lines
1.2 KiB
Ucode
Raw Normal View History

2021-06-08 21:48:03 +00:00
class CustomRanks extends Object
dependson(Types)
2021-06-20 05:04:22 +00:00
config(YAS);
2021-06-12 20:11:37 +00:00
`include(Build.uci)
`include(Logger.uci)
2021-06-08 21:48:03 +00:00
2021-06-13 07:29:12 +00:00
var config array<RankInfo> Rank;
2021-07-05 03:02:30 +00:00
public static function InitConfig(int ConfigVersion)
{
local RankInfo ExampleRank;
`callstack_static("InitConfig");
switch (ConfigVersion)
{
case 0:
// Example rank for player(s)
ExampleRank.ID = 0;
ExampleRank.Rank = "YAS Creator";
ExampleRank.TextColor.R = 130;
ExampleRank.TextColor.G = 250;
ExampleRank.TextColor.B = 235;
ExampleRank.OverrideAdminRank = false;
default.Rank.AddItem(ExampleRank);
// Example rank for steam group members
ExampleRank.ID = 1;
ExampleRank.Rank = "MSK-GS";
ExampleRank.TextColor.R = 130;
ExampleRank.TextColor.G = 250;
ExampleRank.TextColor.B = 130;
ExampleRank.OverrideAdminRank = false;
default.Rank.AddItem(ExampleRank);
case 2147483647:
StaticSaveConfig();
}
}
DefaultProperties
{
}