online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/board/Game.tscn')
| -rw-r--r-- | ui/board/Game.tscn | 62 |
1 files changed, 43 insertions, 19 deletions
diff --git a/ui/board/Game.tscn b/ui/board/Game.tscn index e27edc1..29dd5d6 100644 --- a/ui/board/Game.tscn +++ b/ui/board/Game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=8 format=2] [ext_resource path="res://ui/theme/main.theme" type="Theme" id=1] [ext_resource path="res://ui/menus/sidebarright/SidebarRight.tscn" type="PackedScene" id=2] @@ -7,6 +7,18 @@ [ext_resource path="res://ui/board/Board.tscn" type="PackedScene" id=5] [ext_resource path="res://ui/board/BackButton.gd" type="Script" id=6] +[sub_resource type="StyleBoxFlat" id=1] +content_margin_left = 10.0 +content_margin_right = 10.0 +content_margin_top = 10.0 +content_margin_bottom = 10.0 +bg_color = Color( 0, 0.168627, 0.211765, 0.392157 ) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color( 0.0286, 0.21372, 0.26, 0.588235 ) + [node name="Game" type="MarginContainer"] anchor_right = 1.0 anchor_bottom = 1.0 @@ -23,12 +35,13 @@ custom_constants/separation = 0 [node name="Chat" parent="Holder" instance=ExtResource( 3 )] anchor_right = 0.0 anchor_bottom = 0.0 -margin_right = 391.0 +margin_right = 382.0 margin_bottom = 800.0 +rect_min_size = Vector2( 350, 0 ) [node name="middle" type="VBoxContainer" parent="Holder"] -margin_left = 391.0 -margin_right = 1031.0 +margin_left = 382.0 +margin_right = 1082.0 margin_bottom = 800.0 rect_min_size = Vector2( 640, 640 ) mouse_filter = 2 @@ -39,26 +52,37 @@ custom_constants/separation = 0 [node name="Board" parent="Holder/middle" instance=ExtResource( 5 )] anchor_right = 0.0 anchor_bottom = 0.0 -margin_right = 640.0 +margin_right = 700.0 margin_bottom = 800.0 -sidebar_path = NodePath("../../SidebarRight") -ui_path = NodePath("../../..") +rect_min_size = Vector2( 700, 700 ) -[node name="BackButton" type="Button" parent="Holder/middle"] +[node name="BackButton" type="CenterContainer" parent="Holder/middle"] visible = false -margin_left = 245.0 -margin_top = 698.0 -margin_right = 465.0 +margin_top = 720.0 +margin_right = 700.0 margin_bottom = 800.0 -rect_min_size = Vector2( 220, 0 ) -size_flags_horizontal = 4 -size_flags_vertical = 4 -text = "go back" +rect_min_size = Vector2( 0, 80 ) script = ExtResource( 6 ) -[node name="SidebarRight" parent="Holder" instance=ExtResource( 2 )] -anchor_right = 0.0 -anchor_bottom = 0.0 -margin_left = 1031.0 +[node name="right" type="PanelContainer" parent="Holder"] +margin_left = 1082.0 margin_right = 1422.0 margin_bottom = 800.0 +mouse_filter = 2 +custom_styles/panel = SubResource( 1 ) + +[node name="V" type="VBoxContainer" parent="Holder/right"] +margin_left = 10.0 +margin_top = 10.0 +margin_right = 330.0 +margin_bottom = 790.0 +mouse_filter = 2 +alignment = 1 + +[node name="Sidebar" parent="Holder/right/V" instance=ExtResource( 2 )] +unique_name_in_owner = true +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 216.0 +margin_right = 320.0 +margin_bottom = 564.0 |