控件系统文本框的显示调整,输入框新增clear方法

This commit is contained in:
MrZ626
2021-02-27 23:25:55 +08:00
parent 2bddffd538
commit a330d29a28
2 changed files with 23 additions and 16 deletions

View File

@@ -260,19 +260,11 @@ function love.keyreleased(i)
if SCN.keyUp then SCN.keyUp(i)end
end
function love.textedited(text)
EDITING=text
function love.textedited(texts)
EDITING=texts
end
function love.textinput(text)
local W=WIDGET.sel
if W and W.type=="inputBox"then
if not W.regex or text:match(W.regex)then
WIDGET.sel.value=WIDGET.sel.value..text
SFX.play("move")
else
SFX.play("finesseError",.3)
end
end
function love.textinput(texts)
WIDGET.textinput(texts)
end
function love.joystickadded(JS)