- add: interface for interaction

This commit is contained in:
2024-02-20 14:28:01 +03:00
parent c3135f160e
commit 28c8b45eec
32 changed files with 319 additions and 14 deletions

View File

@@ -0,0 +1,27 @@
using Content.Client.Eui;
using Content.Shared.Eui;
namespace Content.Client._Amour.InteractionPanel;
public sealed class InteractionPanelEui : BaseEui
{
private InteractionPanelWindow _interactionPanelWindow;
public InteractionPanelEui()
{
_interactionPanelWindow = new InteractionPanelWindow();
_interactionPanelWindow.OnClose += () => SendMessage(new CloseEuiMessage());
}
public override void Closed()
{
base.Closed();
_interactionPanelWindow.Close();
}
public override void Opened()
{
base.Opened();
_interactionPanelWindow.OpenCentered();
}
}

View File

@@ -0,0 +1,51 @@
<controls:InteractionPanelWindow
xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client._Amour.InteractionPanel"
xmlns:controls1="clr-namespace:Content.Client.UserInterface.Controls"
Title="{Loc 'interaction-panel-title'}"
MinSize="300 500">
<BoxContainer Orientation="Vertical" Margin="5 5 5 5">
<BoxContainer Orientation="Vertical" Margin="5 20 5 20" HorizontalAlignment="Stretch" HorizontalExpand="True">
<TextureRect TexturePath="/Textures/Interface/Misc/beakerlarge.png" Margin="5 10 5 15" HorizontalAlignment="Center"/>
<BoxContainer HorizontalAlignment="Center" HorizontalExpand="True">
<BoxContainer Orientation="Vertical" HorizontalAlignment="Left" Margin="5 5 5 5">
<PanelContainer/>
<Label Text="- У меня есть ручки"/>
<Label Text="- У меня есть ножки"/>
</BoxContainer>
<controls1:HighDivider HorizontalAlignment="Center" Margin="5 5 5 5"/>
<BoxContainer Orientation="Vertical" HorizontalAlignment="Right" Margin="5 5 5 5">
<PanelContainer/>
<Label Text="- У него есть дырка"/>
<Label Text="- Он няшный"/>
</BoxContainer>
</BoxContainer>
<ProgressBar Name="CummingProgress"
HorizontalExpand="True"
MinValue="0"
MaxValue="1"
MinHeight = "25"
Page="0"
Margin="10 10 0 0"
Value="0.5"
Modulate="#795695">
<Label Text="Смешной прогресс"/>
</ProgressBar>
</BoxContainer>
<PanelContainer StyleClasses="LowDivider" />
<BoxContainer Orientation="Vertical" Margin="5 20 5 20">
<Button Modulate="#ffaaaa">
<BoxContainer HorizontalAlignment="Left">
<TextureRect TexturePath="/Textures/Interface/NavMap/beveled_circle.png" Margin="5 5 5 5"/>
<Label Text="Трахать" Margin="10 0 15 0"/>
</BoxContainer>
<controls1:HighDivider HorizontalAlignment="Center"/>
<Label Text=">" Margin="5 0 5 0" HorizontalAlignment="Right"/>
</Button>
</BoxContainer>
</BoxContainer>
</controls:InteractionPanelWindow>

View File

@@ -0,0 +1,16 @@
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
namespace Content.Client._Amour.InteractionPanel;
[GenerateTypedNameReferences]
public sealed partial class InteractionPanelWindow : DefaultWindow
{
public InteractionPanelWindow()
{
RobustXamlLoader.Load(this);
}
}