mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Fix bugs related to the first time launching game
This commit is contained in:
@@ -4,7 +4,7 @@ ConfigScene.title = "Input Config"
|
||||
local menu_screens = {
|
||||
KeyConfigScene,
|
||||
StickConfigScene,
|
||||
TouchConfigScene
|
||||
TouchConfigScene,
|
||||
}
|
||||
|
||||
local buttonList
|
||||
@@ -45,6 +45,23 @@ function ConfigScene:new(first_time)
|
||||
end
|
||||
}
|
||||
}
|
||||
if not SETTINGS.firstTime then
|
||||
menu_screens[4] = TitleScene
|
||||
buttonList[4] = BUTTON.new{
|
||||
text = "⌂", font = FONT_big,
|
||||
x = 75, y = 280, w = 40, h = 40,
|
||||
codeWhenReleased = function()
|
||||
if self.menu_state ~= 4 then
|
||||
self.menu_state = 4
|
||||
else
|
||||
SCENE = TitleScene()
|
||||
end
|
||||
end
|
||||
}
|
||||
else
|
||||
menu_screens[4] = nil
|
||||
buttonList[4] = nil
|
||||
end
|
||||
|
||||
self.menu_state = 1
|
||||
if first_time then
|
||||
|
||||
Reference in New Issue
Block a user