online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/sidebarright/SidebarRight.tscn')
-rw-r--r--ui/menus/sidebarright/SidebarRight.tscn138
1 files changed, 73 insertions, 65 deletions
diff --git a/ui/menus/sidebarright/SidebarRight.tscn b/ui/menus/sidebarright/SidebarRight.tscn
index 4542487..07654e2 100644
--- a/ui/menus/sidebarright/SidebarRight.tscn
+++ b/ui/menus/sidebarright/SidebarRight.tscn
@@ -1,64 +1,66 @@
-[gd_scene load_steps=23 format=2]
+[gd_scene load_steps=24 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/ubuntu.tres" type="DynamicFont" id=4]
+[ext_resource path="res://ui/ubuntu-medium.tres" type="DynamicFont" id=4]
[ext_resource path="res://ui/barbutton/default_highlight.tres" type="StyleBox" id=5]
[ext_resource path="res://ui/barbutton/default_pressed.tres" type="StyleBox" id=6]
[ext_resource path="res://ui/barbutton/default.tres" type="StyleBox" id=7]
-[ext_resource path="res://ui/ubuntu-bold-small.tres" type="DynamicFont" id=8]
-[ext_resource path="res://ui/ubuntu-bold.tres" type="DynamicFont" id=9]
+[ext_resource path="res://ui/ubuntu-bold-regular.tres" type="DynamicFont" id=8]
+[ext_resource path="res://ui/ubuntu-bold-medium.tres" type="DynamicFont" 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=9]
-bg_color = Color( 0.14902, 0.141176, 0.129412, 0.784314 )
+[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 = 40
+font_data = ExtResource( 15 )
[sub_resource type="StyleBoxEmpty" id=11]
-[sub_resource type="StyleBoxFlat" id=21]
-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, 0, 0.694118 )
-corner_radius_top_left = 20
-corner_radius_top_right = 20
-corner_radius_bottom_right = 20
-corner_radius_bottom_left = 20
-corner_detail = 15
-
-[sub_resource type="Theme" id=12]
-Button/colors/font_color = Color( 1, 1, 1, 1 )
-Button/colors/font_color_disabled = Color( 0.643137, 0.592157, 0.592157, 0.2 )
-Button/colors/font_color_focus = Color( 1, 1, 1, 1 )
-Button/colors/font_color_hover = Color( 1, 1, 1, 1 )
-Button/colors/font_color_pressed = Color( 1, 1, 1, 1 )
-Button/fonts/font = ExtResource( 9 )
+[sub_resource type="Theme" id=24]
+Button/colors/font_color = Color( 0.933333, 0.909804, 0.835294, 1 )
+Button/colors/font_color_disabled = Color( 0.576471, 0.631373, 0.631373, 1 )
+Button/colors/font_color_focus = Color( 0.992157, 0.964706, 0.890196, 1 )
+Button/colors/font_color_hover = Color( 0.992157, 0.964706, 0.890196, 1 )
+Button/colors/font_color_pressed = Color( 0.992157, 0.964706, 0.890196, 1 )
+Button/fonts/font = SubResource( 23 )
Button/styles/disabled = ExtResource( 7 )
Button/styles/focus = SubResource( 11 )
Button/styles/hover = ExtResource( 5 )
Button/styles/normal = ExtResource( 7 )
Button/styles/pressed = ExtResource( 6 )
-TooltipLabel/colors/font_color = Color( 1, 1, 1, 1 )
-TooltipLabel/fonts/font = ExtResource( 8 )
-TooltipPanel/styles/panel = SubResource( 21 )
[node name="SidebarRight" type="PanelContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
-rect_min_size = Vector2( 300, 0 )
-size_flags_horizontal = 3
+rect_min_size = Vector2( 320, 0 )
theme = ExtResource( 14 )
-custom_styles/panel = SubResource( 9 )
+custom_styles/panel = SubResource( 22 )
script = ExtResource( 13 )
__meta__ = {
"_edit_lock_": true
@@ -71,35 +73,39 @@ white_path = NodePath("../V/WhitePanel/WhiteMaterialLabel")
black_path = NodePath("../V/BlackPanel/BlackMaterialLabel")
[node name="V" type="VBoxContainer" parent="."]
-margin_right = 1422.0
-margin_bottom = 800.0
+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"]
-margin_top = 200.0
-margin_right = 1422.0
-margin_bottom = 223.0
+visible = false
+margin_top = 176.0
+margin_right = 1402.0
+margin_bottom = 199.0
custom_fonts/font = ExtResource( 8 )
script = ExtResource( 10 )
[node name="BlackPanel" parent="V" instance=ExtResource( 22 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 223.0
-margin_right = 1422.0
-margin_bottom = 263.0
+margin_top = 226.0
+margin_right = 1402.0
+margin_bottom = 270.0
[node name="BlackMaterialLabel" type="HBoxContainer" parent="V/BlackPanel"]
-margin_right = 1422.0
-margin_bottom = 40.0
+margin_top = 2.0
+margin_right = 1402.0
+margin_bottom = 42.0
alignment = 2
script = ExtResource( 12 )
-[node name="buttonbarholder" type="PanelContainer" parent="V"]
-margin_top = 263.0
-margin_right = 1422.0
-margin_bottom = 313.0
+[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,
@@ -107,14 +113,14 @@ __meta__ = {
}
[node name="buttonbar" type="HBoxContainer" parent="V/buttonbarholder"]
-margin_right = 1422.0
+margin_right = 1402.0
margin_bottom = 50.0
-theme = SubResource( 12 )
+theme = SubResource( 24 )
custom_constants/separation = 0
alignment = 1
[node name="FlipButton" type="Button" parent="V/buttonbarholder/buttonbar"]
-margin_right = 355.0
+margin_right = 350.0
margin_bottom = 50.0
hint_tooltip = "flip the board"
focus_mode = 0
@@ -125,8 +131,8 @@ text = "ﮨ"
script = ExtResource( 19 )
[node name="DrawButton" type="Button" parent="V/buttonbarholder/buttonbar"]
-margin_left = 355.0
-margin_right = 711.0
+margin_left = 350.0
+margin_right = 701.0
margin_bottom = 50.0
rect_min_size = Vector2( 0, 50 )
hint_tooltip = "request a draw"
@@ -139,8 +145,8 @@ script = ExtResource( 1 )
confirm_text = "Your opponent requests a draw"
[node name="ResignButton" type="Button" parent="V/buttonbarholder/buttonbar"]
-margin_left = 711.0
-margin_right = 1066.0
+margin_left = 701.0
+margin_right = 1051.0
margin_bottom = 50.0
rect_min_size = Vector2( 0, 50 )
hint_tooltip = "resign"
@@ -152,8 +158,8 @@ script = ExtResource( 2 )
confirm_text = "Resign?"
[node name="UndoButton" type="Button" parent="V/buttonbarholder/buttonbar"]
-margin_left = 1066.0
-margin_right = 1422.0
+margin_left = 1051.0
+margin_right = 1402.0
margin_bottom = 50.0
rect_min_size = Vector2( 0, 50 )
hint_tooltip = "request a undo"
@@ -168,28 +174,30 @@ status = NodePath("../../../Status")
[node name="SanDisplay" parent="V" instance=ExtResource( 21 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 313.0
-margin_right = 1422.0
-margin_bottom = 513.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 = 513.0
-margin_right = 1422.0
-margin_bottom = 553.0
+margin_top = 520.0
+margin_right = 1402.0
+margin_bottom = 564.0
[node name="WhiteMaterialLabel" type="HBoxContainer" parent="V/WhitePanel"]
-margin_right = 1422.0
-margin_bottom = 40.0
+margin_top = 2.0
+margin_right = 1402.0
+margin_bottom = 42.0
alignment = 2
script = ExtResource( 12 )
[node name="Status" type="Label" parent="V"]
-margin_top = 553.0
-margin_right = 1422.0
-margin_bottom = 599.0
+visible = false
+margin_top = 549.0
+margin_right = 1402.0
+margin_bottom = 583.0
align = 1
autowrap = true
script = ExtResource( 3 )