mirror of
https://github.com/litruv/PNGTuber-Plus.git
synced 2026-07-24 02:26:02 +10:00
some stuff :3
This commit is contained in:
@@ -50,3 +50,13 @@ func clearContainer():
|
||||
func updateAllVisible():
|
||||
for i in container.get_children():
|
||||
i.updateVis()
|
||||
|
||||
|
||||
func _on_toggle_visibility_pressed():
|
||||
$NinePatchRect.visible = !$NinePatchRect.visible
|
||||
$ScrollContainer.visible = $NinePatchRect.visible
|
||||
$Eyes.frame = int(!$NinePatchRect.visible)
|
||||
if $NinePatchRect.visible:
|
||||
$Eyes.position = Vector2(-21,12)
|
||||
else:
|
||||
$Eyes.position = Vector2(209,12)
|
||||
|
||||
Reference in New Issue
Block a user