mirror of
https://github.com/Relintai/GraphicsEditor.git
synced 2024-11-12 08:15:17 +01:00
37 lines
905 B
GDScript
37 lines
905 B
GDScript
tool
|
|
extends Control
|
|
|
|
var editor
|
|
var canvas_outline
|
|
var start_time
|
|
var end_time
|
|
|
|
|
|
func _enter_tree():
|
|
canvas_outline = get_parent().find_node("CanvasOutline")
|
|
editor = get_parent()
|
|
|
|
|
|
func _ready():
|
|
#start_time = OS.get_ticks_msec()
|
|
return
|
|
get_node("CanvasOutlineToggle/CheckButton").pressed = canvas_outline.visible
|
|
get_node("CanvasOutlineColor/ColorPickerButton").color = canvas_outline.color
|
|
|
|
func _process(delta):
|
|
# if get_parent().paint_canvas_node != null:
|
|
# canvas_outline = get_parent().paint_canvas_node.get_node("CanvasOutline")
|
|
# end_time = OS.get_ticks_msec()
|
|
# print("[Settings] Found Editor node in %s seconds!" % [(end_time - start_time) / float(1000)])
|
|
# set_process(false)
|
|
pass
|
|
|
|
func _on_ColorPickerButton_color_changed(color):
|
|
canvas_outline.color = color
|
|
|
|
func _on_CheckButton_toggled(button_pressed):
|
|
canvas_outline.visible = button_pressed
|
|
|
|
func _on_Ok_pressed():
|
|
hide()
|