From: B_Kirill <153602297+B-Kirill@users.noreply.github.com> Date: Tue, 6 May 2025 17:24:58 +0000 (+1000) Subject: Add collapse button to lobby right panel (#37140) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c156c5c465825a6b9e9689dadc14fcfeead1e24b;p=space-station-14.git Add collapse button to lobby right panel (#37140) * Add collapse button to lobby right panel * Half sized buttons --- diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml b/Content.Client/Lobby/UI/LobbyGui.xaml index 615d8cb271..761795452e 100644 --- a/Content.Client/Lobby/UI/LobbyGui.xaml +++ b/Content.Client/Lobby/UI/LobbyGui.xaml @@ -100,7 +100,27 @@ + + + + diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml.cs b/Content.Client/Lobby/UI/LobbyGui.xaml.cs index 6471edb6f3..61f9f5f64b 100644 --- a/Content.Client/Lobby/UI/LobbyGui.xaml.cs +++ b/Content.Client/Lobby/UI/LobbyGui.xaml.cs @@ -23,6 +23,9 @@ namespace Content.Client.Lobby.UI LeaveButton.OnPressed += _ => _consoleHost.ExecuteCommand("disconnect"); OptionsButton.OnPressed += _ => UserInterfaceManager.GetUIController().ToggleWindow(); + + CollapseButton.OnPressed += _ => TogglePanel(false); + ExpandButton.OnPressed += _ => TogglePanel(true); } public void SwitchState(LobbyGuiState state) @@ -53,6 +56,12 @@ namespace Content.Client.Lobby.UI } } + private void TogglePanel(bool value) + { + RightSide.Visible = value; + ExpandPanel.Visible = !value; + } + public enum LobbyGuiState : byte { /// diff --git a/Resources/Textures/Interface/Default/filled_left_arrow.svg b/Resources/Textures/Interface/Default/filled_left_arrow.svg new file mode 100644 index 0000000000..23c7ace4ed --- /dev/null +++ b/Resources/Textures/Interface/Default/filled_left_arrow.svg @@ -0,0 +1,11 @@ + + + + + diff --git a/Resources/Textures/Interface/Default/filled_left_arrow.svg.192dpi.png b/Resources/Textures/Interface/Default/filled_left_arrow.svg.192dpi.png new file mode 100644 index 0000000000..02c05e303b Binary files /dev/null and b/Resources/Textures/Interface/Default/filled_left_arrow.svg.192dpi.png differ diff --git a/Resources/Textures/Interface/Default/filled_left_arrow.svg.192dpi.png.yml b/Resources/Textures/Interface/Default/filled_left_arrow.svg.192dpi.png.yml new file mode 100644 index 0000000000..5c43e23305 --- /dev/null +++ b/Resources/Textures/Interface/Default/filled_left_arrow.svg.192dpi.png.yml @@ -0,0 +1,2 @@ +sample: + filter: true diff --git a/Resources/Textures/Interface/Default/filled_right_arrow.svg b/Resources/Textures/Interface/Default/filled_right_arrow.svg new file mode 100644 index 0000000000..5551942522 --- /dev/null +++ b/Resources/Textures/Interface/Default/filled_right_arrow.svg @@ -0,0 +1,11 @@ + + + + + diff --git a/Resources/Textures/Interface/Default/filled_right_arrow.svg.192dpi.png b/Resources/Textures/Interface/Default/filled_right_arrow.svg.192dpi.png new file mode 100644 index 0000000000..d5db044d0e Binary files /dev/null and b/Resources/Textures/Interface/Default/filled_right_arrow.svg.192dpi.png differ diff --git a/Resources/Textures/Interface/Default/filled_right_arrow.svg.192dpi.png.yml b/Resources/Textures/Interface/Default/filled_right_arrow.svg.192dpi.png.yml new file mode 100644 index 0000000000..5c43e23305 --- /dev/null +++ b/Resources/Textures/Interface/Default/filled_right_arrow.svg.192dpi.png.yml @@ -0,0 +1,2 @@ +sample: + filter: true