using Content.Shared.Clothing.Loadouts.Systems; namespace Content.Client.Lobby.UI; // WWDP PARTIAL CLASS public sealed partial class HumanoidProfileEditor { private void InitializeCharacterMenu() { Loadouts.OnLoadoutsChanged += OnLoadoutsChange; } private void UpdateLoadouts() { if (Profile == null) return; var highJob = _controller.GetPreferredJob(Profile); Loadouts.SetData( Profile.LoadoutPreferencesList, new( highJob, Profile, _requirements.GetRawPlayTimeTrackers(), _requirements.IsWhitelisted() ) ); } private void CheckpointLoadouts() { if (Profile == null) return; Loadouts.SetCheckpoint(); } private void OnLoadoutsChange(List loadouts) { if (Profile is null) return; Profile = Profile.WithLoadoutPreference(loadouts); ReloadProfilePreview(); ReloadClothes(); UpdateLoadouts(); } }