Skip to content

Commit

Permalink
hotfix add practice crash fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
jnackmclain committed Sep 27, 2023
1 parent 5734263 commit 091741e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
24 changes: 12 additions & 12 deletions _ark/ui/loading/loading.dta
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,18 @@
#endif
(on_preload_ok
{net_sync disable}
{if_else
{==
{ui current_screen}
preloading_screen}
{ui
goto_screen
#ifdef HX_WII
pregame_screen
#else
{gamemode get game_screen}
#endif}
{ui goto_screen load_nextsong_screen}})
{script_task ;delay going to practice to let the game catch up
kTaskUISeconds
(delay 2)
(script
{if_else
{==
{ui current_screen}
preloading_screen}
{ui goto_screen {gamemode get game_screen}}
{ui goto_screen load_nextsong_screen}})
}
)
(on_preload_failed
{net_sync disable}
#ifdef HX_WII
Expand Down
29 changes: 21 additions & 8 deletions _ark/ui/practice/practice.dta
Original file line number Diff line number Diff line change
Expand Up @@ -225,22 +225,35 @@
sel_speed_panel
(file sel_speed.milo)
(enter
{set $list_selected TRUE}
{speeds.lst set scroll_time 0} ; dx - makes the scrolling for the speeds list faster
{speeds.lst
set_data
(practice_speed_0 practice_speed_1 practice_speed_2 practice_speed_3 practice_speed_4 practice_speed_5 practice_speed_6 practice_speed_7 practice_speed_8 practice_speed_9 practice_speed_10 practice_speed_11 practice_speed_12 practice_speed_13 practice_speed_14 practice_speed_15 practice_speed_16 practice_speed_17 practice_speed_18)}) ; dx - add additional practice speeds
(focus speeds.lst)
(SELECT_MSG
{switch
$component
(speeds.lst
{gamecfg
set
practice_speed
{speeds.lst selected_pos}})}
{if $list_selected
{switch
$component
(speeds.lst
{gamecfg
set
practice_speed
{speeds.lst selected_pos}}
{set $list_selected FALSE})}
}
{speeds.lst set_showing FALSE}
{session_mgr set_active_roster TRUE}
{training_mgr unparticipate_users}
{ui goto_screen preloading_screen})}
{script_task ;delay going to practice to let the game catch up
kTaskUISeconds
(delay 2)
(script
{ui goto_screen preloading_screen}
)
}
)
}
{new
BandScreen
practice_sel_speed_screen
Expand Down

0 comments on commit 091741e

Please sign in to comment.