debug2模式下按q可在游戏内展示控件属性

This commit is contained in:
MrZ626
2020-09-19 00:31:51 +08:00
parent f174a02bdc
commit 9636b2a34e

View File

@@ -70,7 +70,9 @@ function button:draw()
end
end
function button:printInfo()
DBP(format("x=%d,y=%d,w=%d,h=%d,font=%d",self.x+self.w*.5,self.y+self.h*.5,self.w,self.h,self.font))
local s=format("x=%d,y=%d,w=%d,h=%d,font=%d",self.x+self.w*.5,self.y+self.h*.5,self.w,self.h,self.font)
LOG.print(s)
DBP(s)
end
local key={