mirror of
https://github.com/Relintai/GraphicsEditor.git
synced 2024-11-12 08:15:17 +01:00
28 lines
728 B
GDScript
28 lines
728 B
GDScript
extends AcceptDialog
|
|
tool
|
|
|
|
func _ready():
|
|
find_node("GridValue").value = owner.paint_canvas.grid_size
|
|
find_node("BigGridValue").value = owner.paint_canvas.big_grid_size
|
|
|
|
|
|
func _on_ChangeGridSizeDialog_confirmed():
|
|
var grid_size = find_node("GridValue").value
|
|
var big_grid_size = find_node("BigGridValue").value
|
|
owner.paint_canvas.grid_size = grid_size
|
|
owner.paint_canvas.big_grid_size = big_grid_size
|
|
|
|
|
|
func _on_GridValue_value_changed(value):
|
|
var grid_size = value
|
|
owner.paint_canvas.grid_size = grid_size
|
|
|
|
|
|
func _on_BigGridValue_value_changed(value):
|
|
var big_grid_size = value
|
|
owner.paint_canvas.big_grid_size = big_grid_size
|
|
|
|
|
|
func _on_ChangeGridSizeDialog_visibility_changed():
|
|
pass # Replace with function body.
|