rename SCE to YAS

This commit is contained in:
GenZmeY 2021-06-20 23:09:12 +03:00
parent 91f05dcb9a
commit 185f1d758a
10 changed files with 50 additions and 50 deletions

View File

@ -15,18 +15,18 @@ var config int Suicide_High;
var config int HellOnEarth_Low;
var config int HellOnEarth_High;
public static function SCESettingsLevel DefaultSettings()
public static function YASSettingsLevel DefaultSettings()
{
local SCESettingsLevel Settings;
local YASSettingsLevel Settings;
`callstack_static("DefaultSettings");
return Settings;
}
public static function SCESettingsLevel Settings()
public static function YASSettingsLevel Settings()
{
local SCESettingsLevel Settings;
local YASSettingsLevel Settings;
`callstack_static("Settings");
@ -43,7 +43,7 @@ public static function SCESettingsLevel Settings()
return Settings;
}
public static function WriteSettings(SCESettingsLevel Settings)
public static function WriteSettings(YASSettingsLevel Settings)
{
`callstack_static("WriteSettings");

View File

@ -10,18 +10,18 @@ var config int Low;
var config int High;
var config bool bShowPingBars;
public static function SCESettingsPing DefaultSettings()
public static function YASSettingsPing DefaultSettings()
{
local SCESettingsPing Settings;
local YASSettingsPing Settings;
`callstack_static("DefaultSettings");
return Settings;
}
public static function SCESettingsPing Settings()
public static function YASSettingsPing Settings()
{
local SCESettingsPing Settings;
local YASSettingsPing Settings;
`callstack_static("Settings");
@ -33,7 +33,7 @@ public static function SCESettingsPing Settings()
return Settings;
}
public static function WriteSettings(SCESettingsPing Settings)
public static function WriteSettings(YASSettingsPing Settings)
{
`callstack_static("WriteSettings");

View File

@ -9,18 +9,18 @@ var config bool bEnabled;
var config int Low;
var config int High;
public static function SCESettingsState DefaultSettings()
public static function YASSettingsState DefaultSettings()
{
local SCESettingsState Settings;
local YASSettingsState Settings;
`callstack_static("DefaultSettings");
return Settings;
}
public static function SCESettingsState Settings()
public static function YASSettingsState Settings()
{
local SCESettingsState Settings;
local YASSettingsState Settings;
`callstack_static("Settings");
@ -31,7 +31,7 @@ public static function SCESettingsState Settings()
return Settings;
}
public static function WriteSettings(SCESettingsState Settings)
public static function WriteSettings(YASSettingsState Settings)
{
`callstack_static("WriteSettings");

View File

@ -27,7 +27,7 @@ var array<String> PerkNames;
var array<RankInfo> CustomRanks;
var array<UIDRankRelation> RankRelations;
var SCESettings Settings;
var YASSettings Settings;
// Localization
var localized string Players;
@ -129,7 +129,7 @@ function DrawMenu()
local PlayerController PC;
local KFPlayerReplicationInfo KFPRI;
local PlayerReplicationInfo PRI;
local float XPos, YPos, YL, XL, FontScalar, XPosCenter, BoxW, BoxX, BoxH, MinBoxW, DoshSize;
local float XPos, YPos, YL, XL, FontScalar, XPoYASnter, BoxW, BoxX, BoxH, MinBoxW, DoshSize;
local int i, j, NumSpec, NumPlayer, NumAlivePlayer, Width;
local float BorderSize;
@ -196,9 +196,9 @@ function DrawMenu()
BorderSize = Owner.HUDOwner.ScaledBorderSize;
// Server Info
XPosCenter = Canvas.ClipX * 0.5;
XPoYASnter = Canvas.ClipX * 0.5;
Width = Canvas.ClipX * 0.4; // Full Box Width
XPos = XPosCenter - Width * 0.5;
XPos = XPoYASnter - Width * 0.5;
YPos = YL;
BoxW = Width;

View File

@ -60,18 +60,18 @@ var config ColorRGBA PingTextColorLow;
var config ColorRGBA PingTextColorMid;
var config ColorRGBA PingTextColorHigh;
public static function SCEStyle DefaultSettings()
public static function YASStyle DefaultSettings()
{
local SCEStyle Settings;
local YASStyle Settings;
`callstack_static("DefaultSettings");
return Settings;
}
public static function SCEStyle Settings()
public static function YASStyle Settings()
{
local SCEStyle Settings;
local YASStyle Settings;
`callstack_static("Settings");
@ -133,7 +133,7 @@ public static function SCEStyle Settings()
return Settings;
}
public static function WriteSettings(SCEStyle Settings)
public static function WriteSettings(YASStyle Settings)
{
`callstack_static("WriteSettings");

View File

@ -9,18 +9,18 @@ var config string Rank;
var config ColorRGBA TextColor;
var config Fields ApplyColorToFields;
public static function SCESettingsAdmin DefaultSettings()
public static function YASSettingsAdmin DefaultSettings()
{
local SCESettingsAdmin Settings;
local YASSettingsAdmin Settings;
`callstack_static("DefaultSettings");
return Settings;
}
public static function SCESettingsAdmin Settings()
public static function YASSettingsAdmin Settings()
{
local SCESettingsAdmin Settings;
local YASSettingsAdmin Settings;
`callstack_static("Settings");
@ -31,7 +31,7 @@ public static function SCESettingsAdmin Settings()
return Settings;
}
public static function WriteSettings(SCESettingsAdmin Settings)
public static function WriteSettings(YASSettingsAdmin Settings)
{
`callstack_static("WriteSettings");

View File

@ -9,18 +9,18 @@ var config string Rank;
var config ColorRGBA TextColor;
var config Fields ApplyColorToFields;
public static function SCESettingsPlayer DefaultSettings()
public static function YASSettingsPlayer DefaultSettings()
{
local SCESettingsPlayer Settings;
local YASSettingsPlayer Settings;
`callstack_static("DefaultSettings");
return Settings;
}
public static function SCESettingsPlayer Settings()
public static function YASSettingsPlayer Settings()
{
local SCESettingsPlayer Settings;
local YASSettingsPlayer Settings;
`callstack_static("Settings");
@ -31,7 +31,7 @@ public static function SCESettingsPlayer Settings()
return Settings;
}
public static function WriteSettings(SCESettingsPlayer Settings)
public static function WriteSettings(YASSettingsPlayer Settings)
{
`callstack_static("WriteSettings");

View File

@ -73,7 +73,7 @@ struct UIDRankRelation
}
};
struct SCESettingsAdmin
struct YASSettingsAdmin
{
var string Rank;
var ColorRGBA TextColor;
@ -87,7 +87,7 @@ struct SCESettingsAdmin
}
};
struct SCESettingsPlayer
struct YASSettingsPlayer
{
var string Rank;
var ColorRGBA TextColor;
@ -101,7 +101,7 @@ struct SCESettingsPlayer
}
};
struct SCESettingsState
struct YASSettingsState
{
var bool Dynamic;
var int Low;
@ -115,7 +115,7 @@ struct SCESettingsState
}
};
struct SCESettingsPing
struct YASSettingsPing
{
var bool Dynamic;
var int Low;
@ -131,7 +131,7 @@ struct SCESettingsPing
}
};
struct SCESettingsLevel
struct YASSettingsLevel
{
var bool Dynamic;
var int Low[4];
@ -151,7 +151,7 @@ struct SCESettingsLevel
}
};
struct SCEStyle
struct YASStyle
{
var int EdgeSize;
var int ShapeServerNameBox;
@ -296,13 +296,13 @@ struct SCEStyle
}
};
struct SCESettings
struct YASSettings
{
var SCEStyle Style;
var SCESettingsAdmin Admin;
var SCESettingsPlayer Player;
var SCESettingsState State;
var SCESettingsPing Ping;
var SCESettingsLevel Level;
var YASStyle Style;
var YASSettingsAdmin Admin;
var YASSettingsPlayer Player;
var YASSettingsState State;
var YASSettingsPing Ping;
var YASSettingsLevel Level;
};

View File

@ -21,7 +21,7 @@ var private array<SClient> RepClients;
var private array<UIDRankRelation> UIDRankRelationsPlayers;
var private array<UIDRankRelation> UIDRankRelationsSteamGroups;
var private array<UIDRankRelation> UIDRankRelationsActive;
var private SCESettings Settings;
var private YASSettings Settings;
function PostBeginPlay()
{

View File

@ -14,7 +14,7 @@ var private OnlineSubsystemSteamworks SW;
var public array<UIDRankRelation> SteamGroupRelations;
var private array<UIDRankRelation> RankRelations;
var public array<RankInfo> CustomRanks;
var public SCESettings Settings;
var public YASSettings Settings;
var public UIDRankRelation RankRelation; // Current player rank relation
var private int CustomRanksRepProgress, SteamGroupsRepProgress;
@ -69,7 +69,7 @@ public function StartFirstTimeReplication()
SetTimer(0.01f, true, nameof(ReplicateSteamGroupRelations));
}
private reliable client function ClientAddSettings(SCESettings Set)
private reliable client function ClientAddSettings(YASSettings Set)
{
`callstack();