перенос файлов клиента из папки White в _White

This commit is contained in:
Remuchi
2024-01-28 17:32:55 +07:00
parent c80b10a688
commit 21dbccfec9
139 changed files with 345 additions and 434 deletions

View File

@@ -9,7 +9,6 @@ namespace Content.Client._White.Cult.UI.ConstructSelector;
public sealed class ConstructSelectorBui : BoundUserInterface
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;
private SpriteSystem _spriteSystem = default!;
@@ -29,7 +28,8 @@ public sealed class ConstructSelectorBui : BoundUserInterface
shellSelector.Closed += () =>
{
if(_selected) return;
if (_selected)
return;
SendMessage(new ConstructFormSelectedEvent(shellComponent.ConstructForms.First()));
};
@@ -37,7 +37,8 @@ public sealed class ConstructSelectorBui : BoundUserInterface
foreach (var form in shellComponent.ConstructForms)
{
var formPrototype = _prototypeManager.Index<EntityPrototype>(form);
var button = shellSelector.AddButton(formPrototype.Name, _spriteSystem.GetPrototypeIcon(formPrototype).Default);
var button = shellSelector.AddButton(formPrototype.Name,
_spriteSystem.GetPrototypeIcon(formPrototype).Default);
button.Controller.OnPressed += _ =>
{