mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
Cherrypick fixes
This commit is contained in:
@@ -5,7 +5,7 @@ using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
using Robust.Shared.Utility;
|
||||
using Content.Client._Funkystation.NanoChat
|
||||
using Content.Client._Funkystation.NanoChat;
|
||||
|
||||
namespace Content.Client._DV.CartridgeLoader.Cartridges;
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ public sealed partial class NanoChatUiFragment : BoxContainer
|
||||
|
||||
_newChatPopup = new(_maxNameLength, _maxIdJobLength);
|
||||
_editChatPopup = new(_maxNameLength, _maxIdJobLength);
|
||||
_createGroupChatPopup = new();
|
||||
_createGroupChatPopup = new(_maxNameLength);
|
||||
_inviteToGroupPopup = new();
|
||||
_groupMembersPopup = new();
|
||||
_emojiPickerPopup = new();
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later AND MIT
|
||||
|
||||
using Content.Shared.Access.Components;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
@@ -15,7 +14,7 @@ public sealed partial class CreateGroupChatPopup : DefaultWindow
|
||||
{
|
||||
public event Action<string>? OnGroupCreated;
|
||||
|
||||
public CreateGroupChatPopup()
|
||||
public CreateGroupChatPopup(int maxFullNameLength)
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
@@ -30,8 +29,8 @@ public sealed partial class CreateGroupChatPopup : DefaultWindow
|
||||
|
||||
GroupNameInput.OnTextChanged += args =>
|
||||
{
|
||||
if (args.Text.Length > IdCardConsoleComponent.MaxFullNameLength)
|
||||
GroupNameInput.Text = args.Text[..IdCardConsoleComponent.MaxFullNameLength];
|
||||
if (args.Text.Length > maxFullNameLength)
|
||||
GroupNameInput.Text = args.Text[..maxFullNameLength];
|
||||
ValidateInputs();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user