Switch arguments (sms module)

This commit is contained in:
JeremyStar™ 2024-03-31 11:21:37 +02:00
parent 5d3634bfb2
commit e2da829970
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
3 changed files with 3 additions and 2 deletions

View file

@ -23,6 +23,7 @@ extends Node
# CORE Configuration
var config: CoreConfiguration = CoreConfiguration.new()
# CORE Object
var core: Core
# Logger

View file

@ -6,7 +6,7 @@ sidebar_position: 7
Handles scenes and their order.
## Functions
### *bool* <u>add_scene</u>(*String* <u>sname</u>, *CoreTypes.SceneType* <u>type</u>, *Node* <u>sclass</u>)
### *bool* <u>add_scene</u>(*String* <u>sname</u>, *Node* <u>sclass</u>, *CoreTypes.SceneType* <u>type</u>)
Adds a scene to some scene collection.
Returns `true` if successful.

View file

@ -51,7 +51,7 @@ func _pull_config() -> void:
for scene in scenes: remove_scene(scene, true)
# Add a scene to some scene collection
func add_scene(sname: String, type: CoreTypes.SceneType, sclass: Node) -> bool:
func add_scene(sname: String, sclass: Node, type: CoreTypes.SceneType) -> bool:
if core.config.headless: return false
logger.verbf("Sms", "Adding scene \"" + sname + "\" of type " + str(type))
if exists(sname) != CoreTypes.SceneType.NONE: