mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
29 lines
751 B
GDScript3
29 lines
751 B
GDScript3
|
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.
|