@@ -29,6 +29,7 @@ func next_slide():
func focus_slide(id: int) -> Slide:
var slide: Slide = slides[id]
+ slide.focus()
new_focus.emit(slide.get_center(), slide.get_scale().x)
return slide
@@ -11,6 +11,11 @@ var center_offset: Vector2
func _ready():
center_offset = _compute_center_offset()
+ set_visible(false)
+
+func focus() -> void:
+ set_visible(true)
func get_center():
@@ -95,7 +95,6 @@ move_trans = 3
scope_trans = 10
[node name="Show" parent="Board" instance=ExtResource("2_cih7e")]
-start_slide = 12
[node name="World" parent="Board/Show" instance=ExtResource("3_s3lgd")]
scale = Vector2(10, 10)