mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-27 17:01:44 +02:00
30 lines
1.3 KiB
Lua
30 lines
1.3 KiB
Lua
-- Driver: the options screen with the port's audio rows (MUSIC VOL /
|
|
-- SFX VOL / MUSIC FILTER) to prove the 4-box viewport, the ▼ scroll
|
|
-- marker, and BACK fixed on the bottom line. The audio rows live on the
|
|
-- AUDIO page now, so the menu focuses its way there rather than tapping
|
|
-- down a fixed number of times. The menu is pushed directly (title-menu
|
|
-- row order shifts when a save file exists, so blind taps are unreliable).
|
|
return function(game)
|
|
local U = dofile("tests/drivers/util.lua")
|
|
local DIR = os.getenv("SHOT_DIR") or "/tmp/shots"
|
|
U.teleport(game, "PALLET_TOWN", 10, 8, "down")
|
|
local OptionsMenu = require("src.ui.OptionsMenu")
|
|
local menu = OptionsMenu.new(game)
|
|
game.stack:push(menu)
|
|
U.wait(5)
|
|
U.shot(game, DIR .. "/options_0_top.png")
|
|
local audio = menu:focusRow("musicVol")
|
|
U.wait(2)
|
|
U.shot(game, DIR .. "/options_1_musicvol.png") -- the AUDIO page
|
|
U.tap(game, "left"); U.wait(2)
|
|
U.tap(game, "left"); U.wait(2)
|
|
U.shot(game, DIR .. "/options_2_musicvol_5.png")
|
|
U.tap(game, "down"); U.wait(2)
|
|
U.tap(game, "down"); U.wait(2)
|
|
U.tap(game, "right"); U.wait(2) -- MUSIC FILTER -> 1X
|
|
U.shot(game, DIR .. "/options_3_filter_1x.png")
|
|
audio.index = #audio.view + 1 -- BACK, the page's rows behind it
|
|
U.wait(2)
|
|
U.shot(game, DIR .. "/options_4_back.png")
|
|
end
|