From 64a763a6d67d653bb0311e40a8b9fc15f3e7674c Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Fri, 20 Dec 2024 21:52:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sqr/Core/UI_Class/UI_Core.nut | 9 +++++++-- sqr/User/UI/Widget/InputBox.nut | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sqr/Core/UI_Class/UI_Core.nut b/sqr/Core/UI_Class/UI_Core.nut index 87796e5..70c66d4 100644 --- a/sqr/Core/UI_Class/UI_Core.nut +++ b/sqr/Core/UI_Class/UI_Core.nut @@ -475,7 +475,12 @@ function _Yosin_Windows_Mouse_Logic_(MouseState, Wheel, MousePos_X, MousePos_Y) _Imm_Input_Func_ <- {}; //输入逻辑入口 function _Yosin_Imm_Input_Logic_(Str) { - foreach(Func in _Imm_Input_Func_) { - Func(Str); + + foreach(Key, Func in _Imm_Input_Func_) { + local Ret = Func(Str); + //主体对象释放 删除自己 + if (Ret == -1) { + _Imm_Input_Func_.rawdelete(Key); + } } } \ No newline at end of file diff --git a/sqr/User/UI/Widget/InputBox.nut b/sqr/User/UI/Widget/InputBox.nut index 6bb9009..b17524d 100644 --- a/sqr/User/UI/Widget/InputBox.nut +++ b/sqr/User/UI/Widget/InputBox.nut @@ -69,6 +69,7 @@ class Yosin_InputBox extends Yosin_CommonUi { //接收文本数据 function Imm_Input(str) { + if (!this) return -1; if (!IsFocus) return; //退格键 if (str == "\b") { From 347f301d811c8dbd27bc963c3e6b00a2e55a867d Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Fri, 20 Dec 2024 21:52:49 +0800 Subject: [PATCH 2/2] no message --- Yosin_Engine.exe | Bin 4895232 -> 4895232 bytes sqr/User/UI/Window/0_Login.nut | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Yosin_Engine.exe b/Yosin_Engine.exe index 30d9280b5288992e2d6e6ed507696452e1c021d3..676af96dc73a5e6a3af50ec5b643fc2e777d5f51 100644 GIT binary patch delta 392 zcmX}oy-vbl6vpws^#f556#M`|1W_vD2S_U-74Q|Q48-&rNKBZy01^jw7w&70df=ry1{=p?iw=APo2IY=U?Jw SWV#aGZs8SeSdQtw&6dA*+-9x- delta 392 zcmX}oxlTd>5Cu@)b64DP!+pnnLsS$|pL<~p-(X^5%?FTJSYzWqSlQ8QMQd+o;b(X# zbdr-y?oFnc()Vjv;_WsF%lXGb@KgwDLh7iefkv8WriE78h|^97opjMn54|Mlqn`l= z86wFrBaAY}I1@}V#WXX_GRHhA7FcA7WmZ^ajdeEIWQ#Q0WY}SsJ+ka`K#oK59C6G^ zr4U5#>1;WFcONq$*QCCpSgIP;qS#*-w