Upload files to "src"
This commit is contained in:
30
src/main.lua
Normal file
30
src/main.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
pinLabel = main:addLabel()
|
||||
:setText("")
|
||||
:setFontSize(1)
|
||||
|
||||
enterButton = main:addButton()
|
||||
:setText(">>>>")
|
||||
:setBackground(colors.blue)
|
||||
:setPosition(6,3)
|
||||
:setSize(1.5,3.2)
|
||||
:onClick(unlockDoor)
|
||||
|
||||
for i = 1, 9 do
|
||||
local button = main:addButton()
|
||||
:setPosition(btnX,btnY)
|
||||
:setText(tostring(i))
|
||||
:setSize(2,1)
|
||||
:onClick(
|
||||
function()
|
||||
addToPin(i)
|
||||
end)
|
||||
btnX = btnX + 2
|
||||
|
||||
if btnX >= 6 then
|
||||
btnY = btnY + 1
|
||||
btnX = 1
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
basalt.autoUpdate()
|
||||
Reference in New Issue
Block a user