mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Fix grid drawing
This commit is contained in:
@@ -46,7 +46,7 @@ control_type.button.__index=control_type.button
|
||||
function control_type.button:new(data)
|
||||
local data=data or {}
|
||||
return setmetatable({
|
||||
show=data.show~=nil and data.show or true,
|
||||
show=data.show==nil and true or data.show,
|
||||
x=data.x or 320,
|
||||
y=data.y or 240,
|
||||
r=data.r or 80, -- size
|
||||
@@ -59,6 +59,7 @@ function control_type.button:new(data)
|
||||
end
|
||||
function control_type.button:export()
|
||||
return {
|
||||
type = 'button',
|
||||
show = self.show,
|
||||
x = self.x,
|
||||
y = self.y,
|
||||
|
||||
Reference in New Issue
Block a user