微调textBox控件的clear方法

This commit is contained in:
MrZ626
2021-03-07 20:01:09 +08:00
parent c1e36b0669
commit 40f9bb28f5

View File

@@ -868,11 +868,9 @@ function textBox:scroll(n)
end
end
function textBox:clear()
if not self.fix then
self.texts={}
self.scrollPos=0
SFX.play("fall")
end
self.texts={}
self.scrollPos=0
SFX.play("fall")
end
function textBox:draw()
local x,y,w,h=self.x,self.y,self.w,self.h