]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Various item status fixes/tweaks (#27267)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Wed, 24 Apr 2024 14:01:31 +0000 (16:01 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Apr 2024 14:01:31 +0000 (00:01 +1000)
commit7b90c08a2c7315b2c5a6cb17dfd82a5ac9863a53
treee4d197d7f6ac8ec7d5511bd702648f56dffd5ad0
parent38f490e5ebd3fe945464eafaa20f6fe7a8328920
Various item status fixes/tweaks (#27267)

* Always display item status panel fully

Initial feedback from the UI changes seems to be that a lot of people go "why is there empty space" so let's fix that.

* Fix item status middle hand being on the wrong side

I think I switched this around when fixing the left/right being inverted in the UI code.

* Minor status panel UI tweaks

Bottom-align contents now that the panel itself doesn't dynamically expand, prevent weird gaps.

Clip contents for panel

* Fix clipping on implanters and network configurators.

Made them take less space. For implanters the name has to be cut off, which I did by adding a new ClipControl to achieve that in rich text.

* Update visibility of item status panels based on whether you have hands at all.

This avoids UI for borgs looking silly.

Added a new "HandUILocation" enum that doesn't have middle hands to avoid confusion in UI code.

* Use BulletRender for laser guns too.

Provides all the benefits like fixing layout overflow and allowing multi-line stuff. Looks great now.

This involved generalizing BulletRender a bit so it can be used for not-just-bullets.

* Fix geiger word wrapping if you're really fucked
16 files changed:
Content.Client/Implants/UI/ImplanterStatusControl.cs
Content.Client/Stylesheets/StyleNano.cs
Content.Client/UserInterface/Controls/ClipControl.cs [new file with mode: 0644]
Content.Client/UserInterface/Systems/Hands/Controls/HandButton.cs
Content.Client/UserInterface/Systems/Hands/HandsUIController.cs
Content.Client/UserInterface/Systems/Hotbar/Widgets/HotbarGui.xaml
Content.Client/UserInterface/Systems/Hotbar/Widgets/HotbarGui.xaml.cs
Content.Client/UserInterface/Systems/Inventory/Controls/ItemStatusPanel.xaml
Content.Client/UserInterface/Systems/Inventory/Controls/ItemStatusPanel.xaml.cs
Content.Client/Weapons/Ranged/ItemStatus/BulletRender.cs
Content.Client/Weapons/Ranged/Systems/GunSystem.AmmoCounter.cs
Content.Shared/Hands/Components/HandsComponent.cs
Resources/Locale/en-US/devices/network-configurator.ftl
Resources/Locale/en-US/implant/implant.ftl
Resources/Locale/en-US/inventory/item-status.ftl [new file with mode: 0644]
Resources/Locale/en-US/radiation/geiger-component.ftl