mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Adding touch screen configuration scene (placeholder)
This commit is contained in:
@@ -9,13 +9,18 @@ function SCENE:onInputPress() end
|
||||
function SCENE:onInputRelease() end
|
||||
|
||||
ExitScene = require "scene.exit"
|
||||
|
||||
GameScene = require "scene.game"
|
||||
NameEntryScene = require "scene.name_entry"
|
||||
|
||||
KeyConfigScene = require "scene.key_config"
|
||||
StickConfigScene = require "scene.stick_config"
|
||||
TouchConfigScene = require "scene.touch_config"
|
||||
InputConfigScene = require "scene.input_config"
|
||||
|
||||
ReplaySelectScene = require "scene.replay"
|
||||
TrainingScene = require "scene.training"
|
||||
|
||||
FullscreenScene = require "scene.fullscreen"
|
||||
MusicToggleScene = require "scene.music_toggle"
|
||||
TrainingScene = require "scene.training"
|
||||
TitleScene = require "scene.title"
|
||||
@@ -3,7 +3,8 @@ ConfigScene.title = "Input Config"
|
||||
|
||||
local menu_screens = {
|
||||
KeyConfigScene,
|
||||
StickConfigScene
|
||||
StickConfigScene,
|
||||
TouchConfigScene
|
||||
}
|
||||
|
||||
function ConfigScene:new(first_time)
|
||||
@@ -27,11 +28,11 @@ function ConfigScene:render()
|
||||
end
|
||||
|
||||
love.graphics.setColor(1, 1, 1, 0.5)
|
||||
love.graphics.rectangle("fill", 75, 118 + 50 * self.menu_state, 200, 33)
|
||||
love.graphics.rectangle("fill", 75, 118 + 50 * self.menu_state, 300, 35)
|
||||
|
||||
love.graphics.setColor(1, 1, 1, 1)
|
||||
for i, screen in pairs(menu_screens) do
|
||||
drawText(screen.title, 80, 120 + 50 * i, 200, "left")
|
||||
drawText(screen.title, 80, 120 + 50 * i, 300, "left")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -47,7 +48,7 @@ function ConfigScene:onInputPress(e)
|
||||
self:changeOption(-1)
|
||||
elseif e.input == "down" or e.scancode == "down" then
|
||||
self:changeOption(1)
|
||||
elseif SETTINGS.input and (
|
||||
elseif not SETTINGS.firstTime and (
|
||||
e.input == "menu_back" or e.input == "rotate_right" or e.scancode == "backspace" or e.scancode == "delete"
|
||||
) then
|
||||
SCENE = TitleScene()
|
||||
|
||||
21
scene/touch_config.lua
Normal file
21
scene/touch_config.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
local TouchConfigScene = SCENE:extend()
|
||||
TouchConfigScene.title = "Touchscreen config\n(you can tap anywhere to select this)"
|
||||
|
||||
function TouchConfigScene:new()
|
||||
-- TODO
|
||||
end
|
||||
function TouchConfigScene:update()
|
||||
-- TODO
|
||||
end
|
||||
function TouchConfigScene:onInputPress(e)
|
||||
end
|
||||
|
||||
function TouchConfigScene:onInputRelease(e)
|
||||
end
|
||||
|
||||
|
||||
function TouchConfigScene:render()
|
||||
MainBackground()
|
||||
end
|
||||
|
||||
return TouchConfigScene
|
||||
Reference in New Issue
Block a user