48 lines
932 B
Ucode
48 lines
932 B
Ucode
class SystemAdminRank extends Object
|
|
dependson(Types)
|
|
config(YAS);
|
|
|
|
`include(Build.uci)
|
|
`include(Logger.uci)
|
|
|
|
var config string Rank;
|
|
var config ColorRGBA TextColor;
|
|
var config Fields ApplyColorToFields;
|
|
|
|
public static function YASSettingsAdmin DefaultSettings()
|
|
{
|
|
local YASSettingsAdmin Settings;
|
|
|
|
`callstack_static("DefaultSettings");
|
|
|
|
return Settings;
|
|
}
|
|
|
|
public static function YASSettingsAdmin Settings()
|
|
{
|
|
local YASSettingsAdmin Settings;
|
|
|
|
`callstack_static("Settings");
|
|
|
|
Settings.Rank = default.Rank;
|
|
Settings.TextColor = default.TextColor;
|
|
Settings.ApplyColorToFields = default.ApplyColorToFields;
|
|
|
|
return Settings;
|
|
}
|
|
|
|
public static function WriteSettings(YASSettingsAdmin Settings)
|
|
{
|
|
`callstack_static("WriteSettings");
|
|
|
|
default.Rank = Settings.Rank;
|
|
default.TextColor = Settings.TextColor;
|
|
default.ApplyColorToFields = Settings.ApplyColorToFields;
|
|
|
|
StaticSaveConfig();
|
|
}
|
|
|
|
DefaultProperties
|
|
{
|
|
|
|
}
|