From: James Simonson Date: Mon, 19 Feb 2024 22:18:26 +0000 (+0800) Subject: Vending UI facelift (#25377) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=99aa72e30dd79ed2388a449de41a2b3f70491356;p=space-station-14.git Vending UI facelift (#25377) * Convert to fancy window + added footer + add list spacing * margin add --- diff --git a/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml b/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml index a990c4eff6..1fcb1a7898 100644 --- a/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml +++ b/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml @@ -1,10 +1,28 @@ - + - + + ItemSeparation="2" + Margin="4 0" + SelectMode="Button" + StyleClasses="transparentBackgroundItemList"> + + + + + + - + diff --git a/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml.cs b/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml.cs index a2741cc17a..8b53290f7f 100644 --- a/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml.cs +++ b/Content.Client/VendingMachines/UI/VendingMachineMenu.xaml.cs @@ -4,14 +4,15 @@ using Robust.Client.AutoGenerated; using Robust.Client.GameObjects; using Robust.Client.Graphics; using Robust.Client.UserInterface.Controls; -using Robust.Client.UserInterface.CustomControls; +using Content.Client.Stylesheets; using Robust.Client.UserInterface.XAML; using Robust.Shared.Prototypes; +using FancyWindow = Content.Client.UserInterface.Controls.FancyWindow; namespace Content.Client.VendingMachines.UI { [GenerateTypedNameReferences] - public sealed partial class VendingMachineMenu : DefaultWindow + public sealed partial class VendingMachineMenu : FancyWindow { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; diff --git a/Resources/Locale/en-US/vending-machines/vending-machine.ftl b/Resources/Locale/en-US/vending-machines/vending-machine.ftl index d527f42cfb..637a9c7568 100644 --- a/Resources/Locale/en-US/vending-machines/vending-machine.ftl +++ b/Resources/Locale/en-US/vending-machines/vending-machine.ftl @@ -1 +1,3 @@ vending-machine-thanks = Thanks for using { $name }! +vending-machine-flavor-left = Request refills at cargo +vending-machine-flavor-right = v1.1