Update song preview on keyboard song changes
This commit is contained in:
parent
67f48fd0dc
commit
810020d374
|
@ -577,12 +577,16 @@ func _input(event):
|
||||||
MenuMode.SONG_SELECT:
|
MenuMode.SONG_SELECT:
|
||||||
if event.is_action_pressed('ui_right'): # Sadly can't use match with this input system
|
if event.is_action_pressed('ui_right'): # Sadly can't use match with this input system
|
||||||
self.target_song_idx += 1
|
self.target_song_idx += 1
|
||||||
|
load_preview()
|
||||||
elif event.is_action_pressed('ui_left'):
|
elif event.is_action_pressed('ui_left'):
|
||||||
self.target_song_idx -= 1
|
self.target_song_idx -= 1
|
||||||
|
load_preview()
|
||||||
elif event.is_action_pressed('ui_up'):
|
elif event.is_action_pressed('ui_up'):
|
||||||
selected_genre = posmod(selected_genre - 1, len(genres))
|
selected_genre = posmod(selected_genre - 1, len(genres))
|
||||||
|
load_preview()
|
||||||
elif event.is_action_pressed('ui_down'):
|
elif event.is_action_pressed('ui_down'):
|
||||||
selected_genre = posmod(selected_genre + 1, len(genres))
|
selected_genre = posmod(selected_genre + 1, len(genres))
|
||||||
|
load_preview()
|
||||||
elif event.is_action_pressed('ui_page_up'):
|
elif event.is_action_pressed('ui_page_up'):
|
||||||
selected_difficulty = int(max(0, selected_difficulty - 1))
|
selected_difficulty = int(max(0, selected_difficulty - 1))
|
||||||
elif event.is_action_pressed('ui_page_down'):
|
elif event.is_action_pressed('ui_page_down'):
|
||||||
|
|
Loading…
Reference in New Issue