Menu tweaks

This commit is contained in:
Luke Hubmayer-Werner 2020-12-31 18:07:25 +10:30
parent 10bb94bc15
commit 06ebe791fb
2 changed files with 10 additions and 10 deletions

View File

@ -178,9 +178,9 @@ __meta__ = {
[node name="SSXSlider" type="HSlider" parent="InputHandler"]
margin_left = 10.0
margin_top = 160.0
margin_right = 310.0
margin_bottom = 156.0
margin_top = 150.0
margin_right = 250.0
margin_bottom = 166.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
@ -197,9 +197,9 @@ __meta__ = {
[node name="SSYSlider" type="HSlider" parent="InputHandler"]
margin_left = 10.0
margin_top = 176.0
margin_right = 310.0
margin_bottom = 186.0
margin_top = 173.0
margin_right = 250.0
margin_bottom = 189.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
@ -224,9 +224,9 @@ __meta__ = {
}
[node name="FilterSlider" type="HSlider" parent="InputHandler"]
margin_left = 16.0
margin_left = 10.0
margin_top = 218.0
margin_right = 316.0
margin_right = 250.0
margin_bottom = 234.0
max_value = 1.0
step = 0.01

View File

@ -468,9 +468,9 @@ func _input(event):
elif event.is_action_pressed('ui_left'):
selected_song -= 1
elif event.is_action_pressed('ui_up'):
selected_genre = int(max(0, selected_genre - 1))
selected_genre = posmod(selected_genre - 1, len(genres))
elif event.is_action_pressed('ui_down'):
selected_genre = int(min(len(genres)-1, selected_genre + 1))
selected_genre = posmod(selected_genre + 1, len(genres))
elif event.is_action_pressed('ui_page_up'):
selected_difficulty = int(max(0, selected_difficulty - 1))
elif event.is_action_pressed('ui_page_down'):