mirror of
https://github.com/Relintai/GraphicsEditor.git
synced 2024-11-12 08:15:17 +01:00
14 lines
380 B
GDScript
14 lines
380 B
GDScript
extends WindowDialog
|
|
|
|
onready var paint_canvas = get_node("/root/Editor/PaintCanvasContainer/ViewportContainer/Viewport/PaintCanvas")
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _on_Ok_pressed():
|
|
var new_canvas_size = Vector2()
|
|
new_canvas_size.x = get_node("ImageSize/SpinBox").value
|
|
new_canvas_size.y = get_node("ImageSize/SpinBox2").value
|
|
paint_canvas.canvas_size = new_canvas_size
|
|
hide()
|