整理代码,调整textBox控件机制

This commit is contained in:
MrZ626
2021-04-08 15:27:01 +08:00
parent 1e22364429
commit 2a098a9445
3 changed files with 29 additions and 33 deletions

View File

@@ -845,7 +845,7 @@ function textBox:update()
end
function textBox:push(t)
ins(self.texts,t)
if self.scrollPos==#self.texts-1 then
if self.scrollPos==#self.texts-1 and not(self.hide and self.hide())then
self.scrollPos=#self.texts
else
SFX.play("spin_0",.8)