online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/sidebarright/SidebarRight.gd')
| -rw-r--r-- | ui/menus/sidebarright/SidebarRight.gd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/menus/sidebarright/SidebarRight.gd b/ui/menus/sidebarright/SidebarRight.gd new file mode 100644 index 0000000..edf124d --- /dev/null +++ b/ui/menus/sidebarright/SidebarRight.gd @@ -0,0 +1,12 @@ +extends Control + +onready var whitepanel = find_node("WhitePanel") +onready var blackpanel = find_node("BlackPanel") +onready var panel_holder = $"V" + + +func flip_panels(): + var black_to = panel_holder.get_children().find(whitepanel) + var white_to = panel_holder.get_children().find(blackpanel) + panel_holder.move_child(blackpanel, black_to) + panel_holder.move_child(whitepanel, white_to) |