online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/sidebarright/SidebarRight.tscn')
| -rw-r--r-- | ui/menus/sidebarright/SidebarRight.tscn | 217 |
1 files changed, 217 insertions, 0 deletions
diff --git a/ui/menus/sidebarright/SidebarRight.tscn b/ui/menus/sidebarright/SidebarRight.tscn new file mode 100644 index 0000000..48188a1 --- /dev/null +++ b/ui/menus/sidebarright/SidebarRight.tscn @@ -0,0 +1,217 @@ +[gd_scene load_steps=22 format=2] + +[ext_resource path="res://ui/menus/sidebarright/drawbutton.gd" type="Script" id=1] +[ext_resource path="res://ui/menus/sidebarright/resignbutton.gd" type="Script" id=2] +[ext_resource path="res://ui/Status.gd" type="Script" id=3] +[ext_resource path="res://ui/menus/sidebarright/backbutton.gd" type="Script" id=4] +[ext_resource path="res://ui/menus/sidebarright/buttonbar.theme" type="Theme" id=5] +[ext_resource path="res://assets/fonts/migu.ttf" type="DynamicFontData" id=6] +[ext_resource path="res://assets/fonts/ubuntu/ubuntu-bold.ttf" type="DynamicFontData" id=7] +[ext_resource path="res://ui/ubuntu-bold-regular.tres" type="DynamicFont" id=8] +[ext_resource path="res://ui/menus/sidebarright/rematchbutton.gd" type="Script" id=9] +[ext_resource path="res://ui/menus/sidebarright/OpeningLabel.gd" type="Script" id=10] +[ext_resource path="res://ui/menus/sidebarright/material/MaterialLabelManager.gd" type="Script" id=11] +[ext_resource path="res://ui/menus/sidebarright/material/MaterialLabel.gd" type="Script" id=12] +[ext_resource path="res://ui/menus/sidebarright/SidebarRight.gd" type="Script" id=13] +[ext_resource path="res://ui/theme/main.theme" type="Theme" id=14] +[ext_resource path="res://assets/fonts/ubuntu/ubuntu-normal-nerd.ttf" type="DynamicFontData" id=15] +[ext_resource path="res://ui/menus/sidebarright/undobutton.gd" type="Script" id=18] +[ext_resource path="res://ui/menus/sidebarright/flipbutton.gd" type="Script" id=19] +[ext_resource path="res://ui/menus/sidebarright/sandisplay/SanDisplay.tscn" type="PackedScene" id=21] +[ext_resource path="res://ui/menus/sidebarright/UserPanel.tscn" type="PackedScene" id=22] + +[sub_resource type="StyleBoxFlat" id=22] +content_margin_left = 10.0 +content_margin_right = 10.0 +content_margin_top = 5.0 +content_margin_bottom = 5.0 +bg_color = Color( 0, 0.168627, 0.211765, 1 ) +border_width_left = 3 +border_width_top = 3 +border_width_right = 3 +border_width_bottom = 3 +border_color = Color( 0.027451, 0.211765, 0.258824, 1 ) +corner_radius_top_left = 5 +corner_radius_top_right = 5 +corner_radius_bottom_right = 5 +corner_radius_bottom_left = 5 + +[sub_resource type="DynamicFont" id=23] +size = 200 +font_data = ExtResource( 7 ) +fallback/0 = ExtResource( 15 ) +fallback/1 = ExtResource( 6 ) + +[node name="SidebarRight" type="PanelContainer"] +anchor_right = 1.0 +anchor_bottom = 1.0 +rect_min_size = Vector2( 320, 0 ) +theme = ExtResource( 14 ) +custom_styles/panel = SubResource( 22 ) +script = ExtResource( 13 ) +__meta__ = { +"_edit_lock_": true +} + +[node name="MaterialLabelManager" type="Node" parent="."] +script = ExtResource( 11 ) +white_path = NodePath("../V/WhitePanel/WhiteMaterialLabel") +black_path = NodePath("../V/BlackPanel/BlackMaterialLabel") + +[node name="V" type="VBoxContainer" parent="."] +margin_left = 10.0 +margin_top = 5.0 +margin_right = 1412.0 +margin_bottom = 795.0 +custom_constants/separation = 0 +alignment = 1 + +[node name="OpeningLabel" type="Label" parent="V"] +visible = false +margin_top = 217.0 +margin_right = 1402.0 +margin_bottom = 242.0 +rect_min_size = Vector2( 0, 25 ) +custom_fonts/font = ExtResource( 8 ) +valign = 1 +autowrap = true +script = ExtResource( 10 ) + +[node name="BlackPanel" parent="V" instance=ExtResource( 22 )] +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 230.0 +margin_right = 1402.0 +margin_bottom = 270.0 + +[node name="BlackMaterialLabel" type="HBoxContainer" parent="V/BlackPanel"] +margin_top = 2.0 +margin_right = 1402.0 +margin_bottom = 38.0 +alignment = 2 +script = ExtResource( 12 ) + +[node name="buttonbarholder" type="MarginContainer" parent="V"] +margin_top = 270.0 +margin_right = 1402.0 +margin_bottom = 320.0 +rect_min_size = Vector2( 50, 50 ) +__meta__ = { +"_edit_group_": true, +"_edit_lock_": true +} + +[node name="buttonbar" type="HBoxContainer" parent="V/buttonbarholder"] +margin_right = 1402.0 +margin_bottom = 50.0 +theme = ExtResource( 5 ) +custom_constants/separation = 0 +alignment = 1 + +[node name="FlipButton" type="Button" parent="V/buttonbarholder/buttonbar"] +margin_right = 350.0 +margin_bottom = 50.0 +hint_tooltip = "flip the board" +focus_mode = 0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 3 +text = "ﮨ" +script = ExtResource( 19 ) + +[node name="DrawButton" type="Button" parent="V/buttonbarholder/buttonbar" groups=["freeinlocalmultiplayer", "hideongameover"]] +margin_left = 350.0 +margin_right = 701.0 +margin_bottom = 50.0 +rect_min_size = Vector2( 0, 50 ) +hint_tooltip = "request a draw" +focus_mode = 0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 3 +text = "½-½" +script = ExtResource( 1 ) +confirm_text = "Your opponent requests a draw" + +[node name="ResignButton" type="Button" parent="V/buttonbarholder/buttonbar" groups=["freeinlocalmultiplayer", "hideongameover"]] +margin_left = 701.0 +margin_right = 1051.0 +margin_bottom = 50.0 +rect_min_size = Vector2( 0, 50 ) +hint_tooltip = "resign" +focus_mode = 0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 3 +text = "" +script = ExtResource( 2 ) +confirm_text = "Resign?" + +[node name="UndoButton" type="Button" parent="V/buttonbarholder/buttonbar" groups=["hideongameover"]] +margin_left = 1051.0 +margin_right = 1402.0 +margin_bottom = 50.0 +rect_min_size = Vector2( 0, 50 ) +hint_tooltip = "request a undo" +focus_mode = 0 +mouse_default_cursor_shape = 2 +size_flags_horizontal = 3 +text = "社" +script = ExtResource( 18 ) +confirm_text = "Your opponent requests a undo" + +[node name="BackButton" type="Button" parent="V/buttonbarholder/buttonbar" groups=["showiflocalmultiplayer"]] +visible = false +margin_left = 1121.0 +margin_right = 1402.0 +margin_bottom = 50.0 +rect_min_size = Vector2( 0, 50 ) +hint_tooltip = "exit" +mouse_default_cursor_shape = 2 +size_flags_horizontal = 3 +text = "" +script = ExtResource( 4 ) + +[node name="RematchButton" type="Button" parent="V" groups=["freeinlocalmultiplayer", "showongameover"]] +visible = false +margin_top = 207.0 +margin_right = 1402.0 +margin_bottom = 432.0 +hint_tooltip = "rematch?" +theme = ExtResource( 5 ) +custom_fonts/font = SubResource( 23 ) +text = "⠀" +script = ExtResource( 9 ) +confirm_text = "Would you like to play again?" + +[node name="SanDisplay" parent="V" groups=["hideongameoverifnolocalmultiplayer"] instance=ExtResource( 21 )] +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 320.0 +margin_right = 1402.0 +margin_bottom = 520.0 +rect_min_size = Vector2( 0, 200 ) + +[node name="WhitePanel" parent="V" instance=ExtResource( 22 )] +anchor_right = 0.0 +anchor_bottom = 0.0 +margin_top = 520.0 +margin_right = 1402.0 +margin_bottom = 560.0 + +[node name="WhiteMaterialLabel" type="HBoxContainer" parent="V/WhitePanel"] +margin_top = 2.0 +margin_right = 1402.0 +margin_bottom = 38.0 +alignment = 2 +script = ExtResource( 12 ) + +[node name="Status" type="Label" parent="V"] +unique_name_in_owner = true +visible = false +margin_top = 549.0 +margin_right = 1402.0 +margin_bottom = 583.0 +align = 1 +autowrap = true +script = ExtResource( 3 ) +__meta__ = { +"_edit_lock_": true +} |