mirror of
https://github.com/Relintai/godot-engine.file-editor.git
synced 2024-11-12 22:27:22 +01:00
20 lines
412 B
GDScript
20 lines
412 B
GDScript
tool
|
|
extends ToolButton
|
|
|
|
var fileditor_workspace
|
|
var fileditor
|
|
|
|
func _ready():
|
|
connect("pressed",self,"show_fileditor")
|
|
|
|
func show_fileditor():
|
|
fileditor_workspace.get_children()[0].hide()
|
|
fileditor_workspace.get_children()[1].hide()
|
|
fileditor_workspace.get_children()[2].hide()
|
|
fileditor_workspace.add_child(fileditor)
|
|
fileditor.show()
|
|
|
|
func load_values(fi, fe):
|
|
fileditor_workspace = fi
|
|
fileditor = fe
|