22 lines
445 B
Lua
22 lines
445 B
Lua
|
import "CoreLibs/keyboard"
|
||
|
|
||
|
local gfx <const> = playdate.graphics
|
||
|
|
||
|
function newProject()
|
||
|
mode = "newproj"
|
||
|
playdate.keyboard.show("test")
|
||
|
end
|
||
|
|
||
|
function updateNewproj()
|
||
|
gfx.clear()
|
||
|
gfx.drawText("LEVEL NAME:", 0, 105)
|
||
|
gfx.drawText(playdate.keyboard.text:upper(),0,125)
|
||
|
end
|
||
|
|
||
|
function playdate.keyboard.keyboardWillHideCallback(ok)
|
||
|
if ok == false then
|
||
|
page = 0
|
||
|
playdate.wait(0.3)
|
||
|
editLoad()
|
||
|
end
|
||
|
end
|