修复选择器控件输出坐标错误(debug功能)

This commit is contained in:
MrZ626
2020-10-16 16:14:45 +08:00
parent 0bdfaf34bb
commit 7810ad7aa6

View File

@@ -389,7 +389,7 @@ function selector:draw()
mStr(self.selText,x+w*.5,y+43-21) mStr(self.selText,x+w*.5,y+43-21)
end end
function selector:getInfo() function selector:getInfo()
return format("x=%d,y=%d,w=%d",self.x,self.y,self.w) return format("x=%d,y=%d,w=%d",self.x+self.w*.5,self.y+30,self.w)
end end
local keyboardNames={--15*5 keys local keyboardNames={--15*5 keys
@@ -776,7 +776,6 @@ function WIDGET.keyPressed(i)
W.change() W.change()
end end
elseif W.type=="selector"then elseif W.type=="selector"then
print(1)
local s=W.select local s=W.select
if i=="left"then if i=="left"then
if s>1 then if s>1 then