]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Give silicons proper lobby/character editor previews (#33763)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Sun, 8 Dec 2024 01:46:41 +0000 (02:46 +0100)
committerGitHub <noreply@github.com>
Sun, 8 Dec 2024 01:46:41 +0000 (02:46 +0100)
commit299b13f21b91166fa0db6a4dd97578a03a1ef966
treed488140bcfe1705bf53b50d09b311049c4154e16
parent3d53e748fa657b0a31f54d6ba5b76704da46553f
Give silicons proper lobby/character editor previews (#33763)

* Give silicons proper lobby/character editor previews

No more naked dummies, properly show a borg/AI sprite now.

This means taking the JobEntity into account when spawning the dummy. For AIs I had to add a "JobPreviewEntity" field because they'd look like a posibrain otherwise. AI therefore uses a custom dummy entity I defined.

Also I had to add some margins to the UI, because otherwise the 32x32 sprite of the AI would look bad.

* Update Content.Shared/Roles/JobPrototype.cs

* Update Content.Client/Lobby/LobbyUIController.cs

* Update Resources/Prototypes/Entities/Mobs/Player/silicon.yml

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Client/Lobby/LobbyUIController.cs
Content.Client/Lobby/UI/CharacterPickerButton.xaml
Content.Client/Lobby/UI/HumanoidProfileEditor.xaml
Content.Shared/Roles/JobPrototype.cs
Resources/Prototypes/Entities/Mobs/Player/silicon.yml
Resources/Prototypes/Roles/Jobs/Science/borg.yml