Made chart select bigger

Also made it wrap genres such that the middle row is the selected one,
since bigger tiles broke the "put everything on one screen" approach.
This commit is contained in:
Luke Hubmayer-Werner 2021-01-10 00:06:44 +10:30
parent f588a85feb
commit c48b5dd43b
1 changed files with 5 additions and 4 deletions

View File

@ -122,17 +122,18 @@ func diff_f2str(difficulty: float): # Convert .5 to +
func _draw_song_select(center: Vector2) -> Array: func _draw_song_select(center: Vector2) -> Array:
var size = 128 var size = 192
var spacer_x = 12 var spacer_x = 12
var spacer_y = 64 var spacer_y = 64
var title_spacer_y = 48 var title_spacer_y = 48
var sel_scales := [1.0, 0.8, 0.64, 0.64, 0.64, 0.512, 0.4096] var sel_scales := [1.0, 0.8, 0.64, 0.64, 0.64, 0.512, 0.4096]
var bg_scales := [0.64, 0.64, 0.64, 0.64, 0.64, 0.512, 0.4096] var bg_scales := [0.64, 0.64, 0.64, 0.64, 0.64, 0.512, 0.4096]
var gy := center.y -300 var gy := center.y - 360
var touchrects := [] var touchrects := []
for g in len(genres): for gi in [-2, -1, 0, 1, 2]:
var selected: bool = (g == selected_genre) var g = (selected_genre + gi) % len(genres)
var selected: bool = (gi == 0)
var base_scales = sel_scales if selected else bg_scales var base_scales = sel_scales if selected else bg_scales
var scales = [] var scales = []
scales.resize(len(base_scales)*2-1) scales.resize(len(base_scales)*2-1)