输入框细节调整

This commit is contained in:
MrZ626
2020-10-21 10:59:33 +08:00
parent 4c035e698a
commit 84a0bb1000
2 changed files with 10 additions and 8 deletions

View File

@@ -625,20 +625,20 @@ function textBox:draw()
--Text
setFont(self.font)
t=self.text
if t then
gc.printf(t,x-412,y+h*.5-self.font*.7,400,"right")
end
if self.secret then
for i=1,#self.value do
gc.print("*",x-5+self.font*.5*i,y+h*.5-self.font*.7)
end
else
gc.print(self.value,x+10,y+h*.5-self.font*.7)
end
t=self.text
if t then
gc.printf(t,x-412,y+h*.5-self.font*.7,400,"right")
end
setFont(self.font-10)
if WIDGET.sel==self then
gc.print(EDITING,x+10,y+5-self.font*1.4)
setFont(self.font-10)
if WIDGET.sel==self then
gc.print(EDITING,x+10,y+12-self.font*1.4)
end
end
end
function textBox:getInfo()