Alot of changes(description)
- finally fixed the save system so it saves new users files - added better bgs - reorganized files so its less of a clusterfuck
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
extends Button
|
||||
@onready var playlists_panel: Control = $"../PlaylistPanelHolder/PlaylistsPanel"
|
||||
var currentlyExtending:bool
|
||||
var Target:float = 50
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if currentlyExtending:
|
||||
playlists_panel.position.x = clamp(lerp(playlists_panel.position.x,Target,0.25),0,100)
|
||||
else:
|
||||
playlists_panel.position.x -=1
|
||||
playlists_panel.position.x = clamp(lerp(Target,playlists_panel.position.x,1.25),0,100)
|
||||
playlists_panel.modulate.a = playlists_panel.position.x / Target
|
||||
if playlists_panel.position.x > 1:
|
||||
playlists_panel.show()
|
||||
else:
|
||||
playlists_panel.hide()
|
||||
|
||||
func _on_toggled(toggled_on: bool) -> void:
|
||||
if toggled_on:
|
||||
currentlyExtending = true
|
||||
playlists_panel.position.x = 1
|
||||
else:
|
||||
currentlyExtending = false
|
||||
Reference in New Issue
Block a user