Compare commits

...

3 Commits

Author SHA1 Message Date
WONIU 11b0a8b3e4 Merge remote-tracking branch 'origin/dong' into yi 2024-12-20 22:18:00 +08:00
Lenheart 347f301d81 no message 2024-12-20 21:52:49 +08:00
Lenheart 64a763a6d6 修复输入框的BUG 2024-12-20 21:52:35 +08:00
4 changed files with 10 additions and 4 deletions

Binary file not shown.

View File

@ -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);
}
}
}

View File

@ -69,6 +69,7 @@ class Yosin_InputBox extends Yosin_CommonUi {
//接收文本数据
function Imm_Input(str) {
if (!this) return -1;
if (!IsFocus) return;
//退格键
if (str == "\b") {

View File

@ -86,11 +86,11 @@ class _Login_Window extends Yosin_Window {
function RegisterWidget() {
//账号输入框
local AccountInputBox = Yosin_InputBox(752, 240, 200);
AccountInputBox = Yosin_InputBox(752, 240, 200);
AddUIChild(AccountInputBox);
//密码输入框
local PasswordInputBox = Yosin_InputBox(752, 280, 200);
PasswordInputBox = Yosin_InputBox(752, 280, 200);
AddUIChild(PasswordInputBox);
//登录按钮