2018-08-15 11:00:30 +00:00
|
|
|
extends ReferenceRect
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
|
|
|
|
for child in self.get_children():
|
|
|
|
child.connect( "window_clicked", self, "_on_window_clicked" )
|
|
|
|
|
|
|
|
|
|
|
|
func _on_window_clicked( window ):
|
|
|
|
var index = 0
|
|
|
|
for child in self.get_children():
|
|
|
|
self.move_child(child, index)
|
|
|
|
index += 1
|
2018-08-16 12:53:10 +00:00
|
|
|
self.move_child(window, index)
|
|
|
|
|
|
|
|
# TODO deplacer le deplacement des fenetres ici et tout ce qui est management des fenetre et non de leur contenu.
|