mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Update modules
This commit is contained in:
@@ -133,10 +133,9 @@ function Grid:applyPiece(piece)
|
||||
self:applyBigPiece(piece)
|
||||
return
|
||||
end
|
||||
offsets = piece:getBlockOffsets()
|
||||
for index, offset in pairs(offsets) do
|
||||
x = piece.position.x + offset.x
|
||||
y = piece.position.y + offset.y
|
||||
for index, offset in pairs(piece:getBlockOffsets()) do
|
||||
local x = piece.position.x + offset.x
|
||||
local y = piece.position.y + offset.y
|
||||
if y + 1 > 0 and y < self.height then
|
||||
self.grid[y+1][x+1] = {
|
||||
skin = piece.skin,
|
||||
|
||||
@@ -137,15 +137,16 @@ local global_toggle=false
|
||||
VCTRL={}
|
||||
VCTRL.focus=nil -- Focusing buttons
|
||||
|
||||
---@type table
|
||||
---@class VCTRL.data
|
||||
---@field type string
|
||||
---@field type 'button'
|
||||
---@field x number
|
||||
---@field y number
|
||||
---@field shape string
|
||||
---@field key string
|
||||
---@field iconSize number
|
||||
---@field alpha number
|
||||
---@field show boolean
|
||||
---@field shape? string
|
||||
---@field key? string
|
||||
---@field iconSize? number
|
||||
---@field alpha? number
|
||||
---@field show? boolean
|
||||
|
||||
---@param ... VCTRL.data
|
||||
---Adding (multiple) virtual button(s)
|
||||
|
||||
Reference in New Issue
Block a user