online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/board/Board.tscn')
| -rw-r--r-- | ui/board/Board.tscn | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/ui/board/Board.tscn b/ui/board/Board.tscn index 965d241..e1c029c 100644 --- a/ui/board/Board.tscn +++ b/ui/board/Board.tscn @@ -3,55 +3,69 @@ [ext_resource path="res://ui/board/Board.gd" type="Script" id=1] [ext_resource path="res://ui/board/Arrows.gd" type="Script" id=2] -[node name="Board" type="Control"] +[node name="Board" type="AspectRatioContainer"] anchor_right = 1.0 anchor_bottom = 1.0 -rect_min_size = Vector2( 640, 640 ) +margin_right = -1122.0 +margin_bottom = -500.0 +rect_min_size = Vector2( 300, 300 ) mouse_filter = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 +alignment_horizontal = 0 +alignment_vertical = 0 script = ExtResource( 1 ) __meta__ = { "_edit_group_": true } [node name="Background" type="GridContainer" parent="."] -anchor_right = 1.0 -anchor_bottom = 1.0 +margin_right = 300.0 +margin_bottom = 300.0 mouse_filter = 2 custom_constants/vseparation = 0 custom_constants/hseparation = 0 columns = 8 [node name="Pieces" type="Control" parent="."] -anchor_right = 1.0 -anchor_bottom = 1.0 +margin_right = 300.0 +margin_bottom = 300.0 mouse_filter = 2 -[node name="Foreground" type="CanvasLayer" parent="."] -layer = 0 - [node name="Canvas" type="ViewportContainer" parent="."] modulate = Color( 1, 1, 1, 0.588235 ) -anchor_right = 1.0 -anchor_bottom = 1.0 +margin_right = 300.0 +margin_bottom = 300.0 mouse_filter = 2 stretch = true [node name="Viewport" type="Viewport" parent="Canvas"] -size = Vector2( 1422, 800 ) +size = Vector2( 300, 300 ) transparent_bg = true handle_input_locally = false disable_3d = true usage = 0 +render_target_update_mode = 3 [node name="Arrows" type="Control" parent="Canvas/Viewport"] script = ExtResource( 2 ) red_overlay = Color( 0.729412, 0.254902, 0.254902, 1 ) green_overlay = Color( 0.1272, 0.53, 0.18762, 1 ) +[node name="Foreground" type="GridContainer" parent="."] +margin_right = 300.0 +margin_bottom = 300.0 +mouse_filter = 2 +custom_constants/vseparation = 0 +custom_constants/hseparation = 0 +columns = 8 + [node name="Darken" type="ColorRect" parent="."] visible = false -anchor_right = 1.0 -anchor_bottom = 1.0 +margin_right = 300.0 +margin_bottom = 300.0 mouse_filter = 2 -mouse_default_cursor_shape = 7 +mouse_default_cursor_shape = 8 color = Color( 0, 0, 0, 0.784314 ) + +[connection signal="resized" from="." to="." method="_resized"] |