save settings if needed

This commit is contained in:
GenZmeY 2021-06-08 23:31:56 +03:00
parent 4601d2542c
commit f9947ca798
2 changed files with 13 additions and 2 deletions

View File

@ -682,6 +682,14 @@ defaultproperties
IdealPing=50.0 IdealPing=50.0
MaxPing=200.0 MaxPing=200.0
PingBars=5.0 PingBars=5.0
SystemAdminRank="Admin"
SystemAdminColor=(R=250,G=0,B=0)
SystemAdminApplyColorToFields=(Rank=True,Player=True,Perk=False,Dosh=False,Kills=False,Assists=False,Health=False,Ping=False)
SystemPlayerRank="Player"
SystemPlayerColor=(R=250,G=250,B=250)
SystemPlayerApplyColorToFields=(Rank=True,Player=True,Perk=False,Dosh=False,Kills=False,Assists=False,Health=False,Ping=False)
Begin Object Class=KFGUI_List Name=PlayerList Begin Object Class=KFGUI_List Name=PlayerList
XSize=0.625 XSize=0.625

View File

@ -110,8 +110,11 @@ private function InitConfig()
break; break;
} }
ConfigVersion = CurrentVersion; if (ConfigVersion != CurrentVersion)
SaveConfig(); {
ConfigVersion = CurrentVersion;
SaveConfig();
}
} }
private function LoadGroupPlayers() private function LoadGroupPlayers()