Skip to content

Commit

Permalink
song select - left right dpad scrolls 10
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Dec 28, 2023
1 parent 47f8c55 commit 4b3a197
Show file tree
Hide file tree
Showing 2 changed files with 1,520 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _ark/ui/song_select.dta
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,18 @@
(synth play button_select)
kNetReliable}
{$this component_select song.lst $player $player_num})
({&&
{== $action kAction_Right}
{!
{song.lst is_scrolling}}}
{song.lst set_scroll_user $user}
{song.lst scroll 10}) ; dx scroll the list down by 10 slots when pressing right dpad
({&&
{== $action kAction_Left}
{!
{song.lst is_scrolling}}}
{song.lst set_scroll_user $user}
{song.lst scroll -10}) ; dx scroll the list up by 10 slots when pressing left dpad
(TRUE kDataUnhandled)})
(on_button_held
($user_num $user $raw_button $action $pad_num)
Expand Down
Loading

0 comments on commit 4b3a197

Please sign in to comment.