Преглед изворни кода

:sparkles: Fix method scope

- Make public safe methods to call from exterior
- Make private internal mechanics that need to be combined to work
DricomDragon пре 2 година
родитељ
комит
7d9571941e
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      godot/projector/show/Show.gd

+ 6 - 6
godot/projector/show/Show.gd

@@ -26,18 +26,18 @@ func _ready() -> void:
 
 
 func go_slowly_to_next_slide() -> void:
-	_next_slide(Focus.Transit.SMOOTH)
+	next_slide(Focus.Transit.SMOOTH)
 
 
 func go_fast_to_next_slide() -> void:
-	_next_slide(Focus.Transit.BEAM)
+	next_slide(Focus.Transit.BEAM)
 
 
-func _next_slide(trans: Focus.Transit) -> void:
-	_next_slide_at(_next_id(), trans)
+func next_slide(trans: Focus.Transit) -> void:
+	next_slide_at(_next_id(), trans)
 
 
-func _next_slide_at(next_id: int, trans: Focus.Transit) -> void:
+func next_slide_at(next_id: int, trans: Focus.Transit) -> void:
 	_disconnect_current_slide()
 	current_id = next_id
 	current_slide = focus_slide(current_id, trans)
@@ -125,7 +125,7 @@ func _unhandled_input(event: InputEvent) -> void:
 				shortest_distance = current_distance
 
 		var next_id = slides.find(nearest_slide)
-		_next_slide_at(next_id, Focus.Transit.SMOOTH)
+		next_slide_at(next_id, Focus.Transit.SMOOTH)
 
 
 func _on_current_slide_finished() -> void: