Fixed PaperSystem bugs (#22896)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Shared.Input;
|
||||
using Robust.Shared.Utility;
|
||||
@@ -49,15 +48,12 @@ public sealed class PaperBoundUserInterface : BoundUserInterface
|
||||
|
||||
private void Input_OnTextEntered(string text)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(text))
|
||||
{
|
||||
SendMessage(new PaperInputTextMessage(text));
|
||||
SendMessage(new PaperInputTextMessage(text));
|
||||
|
||||
if (_window != null)
|
||||
{
|
||||
_window.Input.TextRope = Rope.Leaf.Empty;
|
||||
_window.Input.CursorPosition = new TextEdit.CursorPos(0, TextEdit.LineBreakBias.Top);
|
||||
}
|
||||
if (_window != null)
|
||||
{
|
||||
_window.Input.TextRope = Rope.Leaf.Empty;
|
||||
_window.Input.CursorPosition = new TextEdit.CursorPos(0, TextEdit.LineBreakBias.Top);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user