mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
Fixed godoxel's save file dialog.
This commit is contained in:
parent
8b3d15d69c
commit
e44e4c1366
@ -1,13 +1,14 @@
|
||||
tool
|
||||
extends FileDialog
|
||||
|
||||
var canvas
|
||||
#var canvas
|
||||
|
||||
var file_path = ""
|
||||
|
||||
|
||||
func _enter_tree():
|
||||
canvas = get_parent().find_node("Canvas")
|
||||
#func _enter_tree():
|
||||
#canvas = get_parent().find_node("Canvas")
|
||||
#canvas = get_parent().paint_canvas
|
||||
|
||||
|
||||
func _ready():
|
||||
@ -37,6 +38,7 @@ func _on_SaveFileDialog_confirmed():
|
||||
|
||||
func save_file():
|
||||
var image = Image.new()
|
||||
var canvas = get_parent().paint_canvas
|
||||
image.create(canvas.canvas_width, canvas.canvas_height, true, Image.FORMAT_RGBA8)
|
||||
image.lock()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user