mirror of
https://github.com/Relintai/broken_seals_2ds.git
synced 2024-11-22 03:07:17 +01:00
29 lines
751 B
GDScript
29 lines
751 B
GDScript
extends AcceptDialog
|
|
tool
|
|
|
|
func _ready():
|
|
yield(owner, "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.
|