From 73394436040a5a27cb12e1f889e5332e438708e3 Mon Sep 17 00:00:00 2001 From: SITUVNgcd <44901211+SITUVNgcd@users.noreply.github.com> Date: Wed, 14 Feb 2024 11:17:41 +0700 Subject: [PATCH] Fix TextInput::message on mobile (#9549) This issue from https://github.com/Anuken/Arc/commit/70f345cc75f541de8f592d3167245691cc9a765b --- core/src/mindustry/core/UI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/core/UI.java b/core/src/mindustry/core/UI.java index 3deb6bd4d8..d634e122b5 100644 --- a/core/src/mindustry/core/UI.java +++ b/core/src/mindustry/core/UI.java @@ -279,7 +279,7 @@ public class UI implements ApplicationListener, Loadable{ public void showTextInput(String titleText, String text, int textLength, String def, boolean numbers, boolean allowEmpty, Cons confirmed, Runnable closed){ if(mobile){ - var description = text; + var description = (text.startsWith("@") ? Core.bundle.get(text.substring(1)) : text); var empty = allowEmpty; Core.input.getTextInput(new TextInput(){{ this.title = (titleText.startsWith("@") ? Core.bundle.get(titleText.substring(1)) : titleText);