feat: added new functionality with focus, added base background to screens, created Focus.close(), Focus.start(), Focus.driven() methods for different use-cases, added focus to screens
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
Decision.register({
|
||||
id = "play_button_mash",
|
||||
label = "Play Button Mash",
|
||||
handle = function() Meter.hide() MinigameButtonMashWindow.start("game") end,
|
||||
handle = function()
|
||||
Meter.hide()
|
||||
MinigameButtonMashWindow.start("game", {
|
||||
focus_center_x = Config.screen.width / 2,
|
||||
focus_center_y = Config.screen.height / 2,
|
||||
focus_initial_radius = 0,
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
Decision.register({
|
||||
id = "play_rhythm",
|
||||
label = "Play Rhythm Game",
|
||||
handle = function() Meter.hide() MinigameRhythmWindow.start("game") end,
|
||||
handle = function()
|
||||
Meter.hide()
|
||||
MinigameRhythmWindow.start("game", {
|
||||
focus_center_x = Config.screen.width / 2,
|
||||
focus_center_y = Config.screen.height / 2,
|
||||
focus_initial_radius = 0,
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user