Skip to content

Commit

Permalink
ehhh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratyyy committed Jun 23, 2024
1 parent d61c080 commit 9dbcc37
Show file tree
Hide file tree
Showing 50 changed files with 2,811 additions and 3,070 deletions.
Empty file.
25 changes: 25 additions & 0 deletions Content.Client/Revolutionary/UI/DeconvertedEui.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using Content.Client.Eui;

namespace Content.Client.Revolutionary.UI;

public sealed class DeconvertedEui : BaseEui
{
private readonly DeconvertedMenu _menu;

public DeconvertedEui()
{
_menu = new DeconvertedMenu();
}

public override void Opened()
{
_menu.OpenCentered();
}

public override void Closed()
{
base.Closed();

_menu.Close();
}
}
10 changes: 10 additions & 0 deletions Content.Client/Revolutionary/UI/DeconvertedMenu.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<controls:FancyWindow xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
Title="{Loc 'rev-deconverted-title'}">
<BoxContainer Orientation="Vertical" Margin="5">
<Label Text="{Loc 'rev-deconverted-text'}"/>
<BoxContainer Orientation="Horizontal" Align="Center">
<Button Name="ConfirmButton" Text="{Loc 'rev-deconverted-confirm'}"/>
</BoxContainer>
</BoxContainer>
</controls:FancyWindow>
16 changes: 16 additions & 0 deletions Content.Client/Revolutionary/UI/DeconvertedMenu.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Content.Client.UserInterface.Controls;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.XAML;

namespace Content.Client.Revolutionary.UI;

[GenerateTypedNameReferences]
public sealed partial class DeconvertedMenu : FancyWindow
{
public DeconvertedMenu()
{
RobustXamlLoader.Load(this);

ConfirmButton.OnPressed += _ => Close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
<Control/>
</BoxContainer>
<BoxContainer Name="VoteMenu" Access="Public" Margin="0 10 0 10" Orientation="Vertical"/>
<actions:ActionsBar Name="Actions" Access="Protected" />
</BoxContainer>
<widgets:GhostGui Name="Ghost" Access="Protected" />
<inventory:InventoryGui Name="Inventory" Access="Protected" />
<hotbar:HotbarGui Name="Hotbar" Access="Protected" />
<actions:ActionsBar Name="Actions" Access="Protected" />
<chat:ResizableChatBox Name="Chat" Access="Protected" />
<alerts:AlertsUI Name="Alerts" Access="Protected" />
</screens:DefaultGameScreen>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public DefaultGameScreen()
SetAnchorPreset(MainViewport, LayoutPreset.Wide);
SetAnchorPreset(ViewportContainer, LayoutPreset.Wide);
SetAnchorAndMarginPreset(TopLeft, LayoutPreset.TopLeft, margin: 10);
SetAnchorAndMarginPreset(Actions, LayoutPreset.BottomLeft, margin: 10);
SetAnchorAndMarginPreset(Ghost, LayoutPreset.BottomWide, margin: 80);
SetAnchorAndMarginPreset(Inventory, LayoutPreset.BottomLeft, margin: 5);
SetAnchorAndMarginPreset(Hotbar, LayoutPreset.BottomWide, margin: 5);
Expand All @@ -26,6 +25,7 @@ public DefaultGameScreen()

Chat.OnResized += ChatOnResized;
Chat.OnChatResizeFinish += ChatOnResizeFinish;
Actions.ActionsContainer.Columns = 1;
}

private void ChatOnResizeFinish(Vector2 _)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public SeparatedChatGameScreen()
SetAnchorPreset(ScreenContainer, LayoutPreset.Wide);
SetAnchorPreset(ViewportContainer, LayoutPreset.Wide);
SetAnchorPreset(MainViewport, LayoutPreset.Wide);
SetAnchorAndMarginPreset(Inventory, LayoutPreset.BottomLeft, margin: 5); // Откатываем динамический ui
SetAnchorAndMarginPreset(TopLeftContainer, LayoutPreset.BottomLeft, margin: 10); //
SetAnchorAndMarginPreset(Inventory, LayoutPreset.BottomLeft, margin: 5);
SetAnchorAndMarginPreset(TopLeftContainer, LayoutPreset.TopLeft, margin: 10);
SetAnchorAndMarginPreset(Ghost, LayoutPreset.BottomWide, margin: 80);
SetAnchorAndMarginPreset(Hotbar, LayoutPreset.BottomWide, margin: 5);
SetAnchorAndMarginPreset(Alerts, LayoutPreset.CenterRight, margin: 10);
Expand Down
Loading

0 comments on commit 9dbcc37

Please sign in to comment.