prepare export functionality
This commit is contained in:
parent
8413be1572
commit
48ba04b7e6
2 changed files with 15 additions and 0 deletions
|
@ -41,3 +41,10 @@ func copy(buffer):
|
||||||
|
|
||||||
func paste():
|
func paste():
|
||||||
return copybuffer
|
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))
|
||||||
|
|
|
@ -66,4 +66,12 @@ margin_right = 87.0
|
||||||
margin_bottom = 37.0
|
margin_bottom = 37.0
|
||||||
text = "add Story"
|
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="add story" to="." method="_on_add_story_pressed"]
|
||||||
|
[connection signal="pressed" from="save" to="." method="_on_save_pressed"]
|
||||||
|
|
Loading…
Reference in a new issue