еще приколы

This commit is contained in:
Remuchi
2024-04-13 12:55:14 +07:00
parent f21ef6953c
commit 7ca05487a9
12 changed files with 186277 additions and 44 deletions

View File

@@ -42,7 +42,7 @@ public sealed class HumanoidAppearanceSystem : SharedHumanoidAppearanceSystem
component.BaseLayers.Clear();
// add default species layers
var bodyTypeProto = _prototypeManager.Index<BodyTypePrototype>(component.BodyType);
var bodyTypeProto = _prototypeManager.Index(component.BodyType);
foreach (var (key, id) in bodyTypeProto.Sprites)
{
oldLayers.Remove(key);

View File

@@ -42,7 +42,7 @@ namespace Content.Client.Options.UI.Tabs
var id = 0;
foreach (var layout in Enum.GetValues(typeof(ScreenType)))
{
var name = Loc.GetString($"ui-options-hud-type-{layout!.ToString()!.ToLower()}");
var name = layout.ToString()!;
HudLayoutOption.AddItem(name, id);
if (name == hudLayout)
{

View File

@@ -947,7 +947,7 @@ namespace Content.Client.Preferences.UI
}
// If current body type is not valid.
if (!_bodyTypesList.Select(proto => proto.ID).Contains(Profile.BodyType))
if (!_bodyTypesList.Select(proto => proto.ID).Contains(Profile.BodyType.Id))
{
// Then replace it with a first valid body type.
SetBodyType(_bodyTypesList.First().ID);