48 lines
948 B
Ucode
Raw Normal View History

2021-06-09 00:21:28 +03:00
class SystemPlayerRank extends Object
2021-05-31 04:46:53 +03:00
dependson(Types)
config(ScoreboardExt);
2021-06-12 23:11:37 +03:00
`include(Build.uci)
`include(Logger.uci)
2021-05-31 04:46:53 +03:00
var config string Rank;
2021-06-09 02:22:35 +03:00
var config ColorRGBA TextColor;
2021-05-31 04:46:53 +03:00
var config Fields ApplyColorToFields;
2021-06-07 05:04:40 +03:00
2021-06-09 03:58:31 +03:00
public static function SCESettingsPlayer DefaultSettings()
{
local SCESettingsPlayer Settings;
2021-06-12 23:11:37 +03:00
2021-06-13 03:02:17 +03:00
`callstack_static("DefaultSettings");
2021-06-12 23:11:37 +03:00
2021-06-09 03:58:31 +03:00
return Settings;
}
public static function SCESettingsPlayer Settings()
{
local SCESettingsPlayer Settings;
2021-06-13 03:02:17 +03:00
`callstack_static("Settings");
2021-06-12 23:11:37 +03:00
2021-06-09 03:58:31 +03:00
Settings.Rank = default.Rank;
Settings.TextColor = default.TextColor;
Settings.ApplyColorToFields = default.ApplyColorToFields;
return Settings;
}
public static function WriteSettings(SCESettingsPlayer Settings)
{
2021-06-13 03:02:17 +03:00
`callstack_static("WriteSettings");
2021-06-12 23:11:37 +03:00
2021-06-09 03:58:31 +03:00
default.Rank = Settings.Rank;
default.TextColor = Settings.TextColor;
default.ApplyColorToFields = Settings.ApplyColorToFields;
StaticSaveConfig();
}
2021-06-07 05:04:40 +03:00
DefaultProperties
{
}