prepare export functionality

This commit is contained in:
nek0 2022-12-09 23:58:04 +01:00
parent 8413be1572
commit 48ba04b7e6
2 changed files with 15 additions and 0 deletions

View file

@ -41,3 +41,10 @@ func copy(buffer):
func paste():
return copybuffer
func _on_save_pressed():
var save_story = File.new()
save_story.open("res://dev-util/export.save", File.WRITE)
var save_nodes = $board
save_story.store_line(to_json(save_nodes))

View file

@ -66,4 +66,12 @@ margin_right = 87.0
margin_bottom = 37.0
text = "add Story"
[node name="save" type="Button" parent="."]
margin_left = 1833.0
margin_top = 26.0
margin_right = 1874.0
margin_bottom = 46.0
text = "Save"
[connection signal="pressed" from="add story" to="." method="_on_add_story_pressed"]
[connection signal="pressed" from="save" to="." method="_on_save_pressed"]