mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added the game
This commit is contained in:
11
Scripts/Parts/EditorVisibleNode.gd
Normal file
11
Scripts/Parts/EditorVisibleNode.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
class_name LevelEditorVisibleNode
|
||||
extends Node2D
|
||||
|
||||
func _ready() -> void:
|
||||
update()
|
||||
if Global.level_editor != null:
|
||||
Global.level_editor.editor_start.connect(update)
|
||||
Global.level_editor.level_start.connect(update)
|
||||
|
||||
func update() -> void:
|
||||
visible = !LevelEditor.playing_level and Global.current_game_mode == Global.GameMode.LEVEL_EDITOR
|
Reference in New Issue
Block a user