Added import and export for the level designer

This commit is contained in:
2024-05-06 15:02:56 +01:00
parent ad2d467456
commit 031879cf46
18 changed files with 291 additions and 41 deletions

15
ExportPanel.gd Normal file
View File

@@ -0,0 +1,15 @@
extends PanelContainer
func _ready() -> void:
pass
func show_panel(ob : Dictionary) -> void:
var text = JSON.stringify(ob, " ")
var b64 = Marshalls.utf8_to_base64(text)
$VBoxContainer/ExportedCode.text = b64
visible = true
$VBoxContainer/ExportedCode.select_all()
$VBoxContainer/ExportedCode.copy()
func _on_close_pressed() -> void:
visible = false