按钮在没有名字的情况下显示内部名

This commit is contained in:
MrZ626
2020-11-30 01:45:39 +08:00
parent 3bc5608476
commit 8ffff57b72

View File

@@ -154,6 +154,9 @@ function button:draw()
gc.printf(t,x+2,y0+2,w,"center")
gc.setColor(r*.5,g*.5,b*.5)
gc.printf(t,x,y0,w,"center")
else
self.text=self.name or"NONAME"
self.color=COLOR.dPurple
end
end
function button:getInfo()