online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/sidebarright/SidebarRight.tscn')
-rw-r--r--ui/menus/sidebarright/SidebarRight.tscn164
1 files changed, 45 insertions, 119 deletions
diff --git a/ui/menus/sidebarright/SidebarRight.tscn b/ui/menus/sidebarright/SidebarRight.tscn
index 2886067..b66c5b2 100644
--- a/ui/menus/sidebarright/SidebarRight.tscn
+++ b/ui/menus/sidebarright/SidebarRight.tscn
@@ -1,16 +1,9 @@
-[gd_scene load_steps=31 format=2]
+[gd_scene load_steps=18 format=2]
[ext_resource path="res://ui/barbutton/drawbutton.gd" type="Script" id=1]
[ext_resource path="res://ui/barbutton/resignbutton.gd" type="Script" id=2]
[ext_resource path="res://ui/Status.gd" type="Script" id=3]
-[ext_resource path="res://assets/ui/whitespace.png" type="Texture" id=4]
-[ext_resource path="res://assets/ui/verdana-bold.ttf" type="DynamicFontData" id=5]
[ext_resource path="res://ui/barbutton/BarTextureButton.tscn" type="PackedScene" id=6]
-[ext_resource path="res://ui/theme/flatblack.tres" type="StyleBox" id=7]
-[ext_resource path="res://ui/theme/button.tres" type="StyleBox" id=8]
-[ext_resource path="res://assets/ui/button.png" type="Texture" id=9]
-[ext_resource path="res://assets/ui/checkedbox.png" type="Texture" id=10]
-[ext_resource path="res://ui/theme/buttonhover.tres" type="StyleBox" id=11]
[ext_resource path="res://assets/ui/Roboto-Medium.ttf" type="DynamicFontData" id=12]
[ext_resource path="res://ui/menus/sidebarright/SidebarRight.gd" type="Script" id=13]
[ext_resource path="res://ui/theme/main.tres" type="Theme" id=14]
@@ -23,86 +16,20 @@
[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=8]
-bg_color = Color( 0.188235, 0.180392, 0.172549, 1 )
-
-[sub_resource type="StyleBoxEmpty" id=2]
-
-[sub_resource type="StyleBoxEmpty" id=4]
-
-[sub_resource type="StyleBoxFlat" id=3]
-bg_color = Color( 0.0784314, 0.0784314, 0.0784314, 1 )
-border_width_left = 2
-border_width_top = 2
-border_width_right = 2
-border_width_bottom = 2
-border_color = Color( 1, 1, 1, 1 )
-corner_detail = 20
-
-[sub_resource type="StyleBoxEmpty" id=5]
-
-[sub_resource type="DynamicFont" id=7]
-size = 35
-font_data = ExtResource( 5 )
-
-[sub_resource type="Theme" id=6]
-default_font = SubResource( 7 )
-Button/colors/font_color = Color( 1, 1, 1, 1 )
-Button/colors/font_color_focus = Color( 1, 1, 1, 1 )
-Button/colors/font_color_hover = Color( 0, 0, 0, 1 )
-Button/colors/font_color_pressed = Color( 1, 1, 1, 1 )
-Button/styles/disabled = SubResource( 2 )
-Button/styles/focus = ExtResource( 8 )
-Button/styles/hover = ExtResource( 11 )
-Button/styles/normal = ExtResource( 8 )
-Button/styles/pressed = ExtResource( 8 )
-CheckBox/icons/checked = ExtResource( 10 )
-CheckBox/icons/checked_disabled = null
-CheckBox/icons/radio_checked = null
-CheckBox/icons/radio_checked_disabled = null
-CheckBox/icons/radio_unchecked = null
-CheckBox/icons/radio_unchecked_disabled = null
-CheckBox/icons/unchecked = ExtResource( 9 )
-CheckBox/icons/unchecked_disabled = null
-HBoxContainer/constants/separation = 15
-ItemList/colors/font_color = Color( 1, 1, 1, 1 )
-ItemList/colors/font_color_selected = Color( 0.905882, 0.905882, 0.905882, 1 )
-ItemList/styles/bg = SubResource( 4 )
-ItemList/styles/bg_focus = ExtResource( 7 )
-LineEdit/colors/cursor_color = Color( 1, 1, 1, 1 )
-LineEdit/colors/font_color = Color( 1, 1, 1, 1 )
-LineEdit/colors/font_color_uneditable = Color( 1, 1, 1, 0.67451 )
-LineEdit/styles/focus = ExtResource( 8 )
-LineEdit/styles/normal = ExtResource( 8 )
-LineEdit/styles/read_only = ExtResource( 8 )
-OptionButton/colors/font_color = Color( 1, 1, 1, 1 )
-OptionButton/colors/font_color_focus = Color( 1, 1, 1, 1 )
-OptionButton/colors/font_color_hover = Color( 0, 0, 0, 1 )
-OptionButton/colors/font_color_pressed = Color( 1, 1, 1, 1 )
-OptionButton/icons/arrow = ExtResource( 4 )
-PopupMenu/colors/font_color = Color( 1, 1, 1, 1 )
-PopupMenu/colors/font_color_accel = Color( 1, 1, 1, 0.8 )
-PopupMenu/colors/font_color_hover = Color( 1, 1, 1, 1 )
-PopupMenu/colors/font_color_separator = Color( 0.262745, 0.262745, 0.262745, 1 )
-PopupMenu/icons/radio_checked = ExtResource( 4 )
-PopupMenu/icons/radio_unchecked = ExtResource( 4 )
-PopupMenu/styles/hover = SubResource( 3 )
-PopupMenu/styles/panel = ExtResource( 7 )
-VBoxContainer/constants/separation = 15
-VScrollBar/styles/scroll = SubResource( 5 )
+[sub_resource type="StyleBoxFlat" id=9]
+bg_color = Color( 0.14902, 0.141176, 0.129412, 0.588235 )
[sub_resource type="DynamicFont" id=1]
size = 35
font_data = ExtResource( 12 )
-[node name="SidebarRight" type="ColorRect"]
-margin_left = 940.0
-margin_right = 1422.0
-margin_bottom = 800.0
+[node name="SidebarRight" type="PanelContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
rect_min_size = Vector2( 300, 0 )
size_flags_horizontal = 3
theme = ExtResource( 14 )
-color = Color( 0.14902, 0.141176, 0.129412, 0.588235 )
+custom_styles/panel = SubResource( 9 )
script = ExtResource( 13 )
__meta__ = {
"_edit_lock_": true
@@ -110,21 +37,21 @@ __meta__ = {
panel_holder = NodePath("V")
[node name="V" type="VBoxContainer" parent="."]
-anchor_right = 1.0
-anchor_bottom = 1.0
+margin_right = 1422.0
+margin_bottom = 800.0
custom_constants/separation = 0
alignment = 1
[node name="BlackPanel" parent="V" instance=ExtResource( 22 )]
anchor_right = 0.0
anchor_bottom = 0.0
-margin_top = 194.0
-margin_right = 482.0
+margin_top = 214.0
+margin_right = 1422.0
margin_bottom = 254.0
-[node name="buttonbarholder" type="Control" parent="V"]
+[node name="buttonbarholder" type="PanelContainer" parent="V"]
margin_top = 254.0
-margin_right = 482.0
+margin_right = 1422.0
margin_bottom = 304.0
rect_min_size = Vector2( 50, 50 )
__meta__ = {
@@ -132,71 +59,70 @@ __meta__ = {
"_edit_lock_": true
}
-[node name="Panel" type="Panel" parent="V/buttonbarholder"]
-anchor_right = 1.0
-anchor_bottom = 1.0
-
-[node name="buttonbar" type="HBoxContainer" parent="V/buttonbarholder/Panel"]
-anchor_right = 1.0
-anchor_bottom = 1.0
+[node name="buttonbar" type="HBoxContainer" parent="V/buttonbarholder"]
+margin_right = 1422.0
+margin_bottom = 50.0
custom_constants/separation = 0
alignment = 1
-[node name="FlipBoard" parent="V/buttonbarholder/Panel/buttonbar" instance=ExtResource( 6 )]
-margin_left = 141.0
-margin_right = 191.0
+[node name="FlipBoard" parent="V/buttonbarholder/buttonbar" instance=ExtResource( 6 )]
+margin_right = 355.0
hint_tooltip = "rotate the board"
+size_flags_horizontal = 3
texture_normal = ExtResource( 17 )
+stretch_mode = 5
script = ExtResource( 19 )
-[node name="DrawButton" parent="V/buttonbarholder/Panel/buttonbar" instance=ExtResource( 6 )]
-margin_left = 191.0
-margin_right = 241.0
+[node name="DrawButton" parent="V/buttonbarholder/buttonbar" instance=ExtResource( 6 )]
+margin_left = 355.0
+margin_right = 711.0
hint_tooltip = "request a draw"
+size_flags_horizontal = 3
texture_normal = ExtResource( 16 )
+stretch_mode = 5
script = ExtResource( 1 )
confirm_text = "Your opponent requests a draw"
-[node name="ResignButton" parent="V/buttonbarholder/Panel/buttonbar" instance=ExtResource( 6 )]
-margin_left = 241.0
-margin_right = 291.0
+[node name="ResignButton" parent="V/buttonbarholder/buttonbar" instance=ExtResource( 6 )]
+margin_left = 711.0
+margin_right = 1066.0
hint_tooltip = "resign"
+size_flags_horizontal = 3
texture_normal = ExtResource( 20 )
+stretch_mode = 5
script = ExtResource( 2 )
confirm_text = "Resign?"
-[node name="UndoButton" parent="V/buttonbarholder/Panel/buttonbar" instance=ExtResource( 6 )]
-margin_left = 291.0
-margin_right = 341.0
+[node name="UndoButton" parent="V/buttonbarholder/buttonbar" instance=ExtResource( 6 )]
+margin_left = 1066.0
+margin_right = 1422.0
hint_tooltip = "request a undo"
+size_flags_horizontal = 3
texture_normal = ExtResource( 15 )
+stretch_mode = 5
script = ExtResource( 18 )
confirm_text = "Your opponent requests a undo"
-status = NodePath("../../../../Status")
+status = NodePath("../../../Status")
-[node name="SanDisplay" type="PanelContainer" parent="V"]
+[node name="SanDisplay" parent="V" instance=ExtResource( 21 )]
+anchor_right = 0.0
+anchor_bottom = 0.0
margin_top = 304.0
-margin_right = 482.0
+margin_right = 1422.0
margin_bottom = 504.0
-custom_styles/panel = SubResource( 8 )
-
-[node name="SanDisplay" parent="V/SanDisplay" instance=ExtResource( 21 )]
-margin_right = 482.0
-margin_bottom = 200.0
rect_min_size = Vector2( 482, 200 )
-theme = SubResource( 6 )
[node name="WhitePanel" parent="V" instance=ExtResource( 22 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 504.0
-margin_right = 482.0
-margin_bottom = 564.0
+margin_right = 1422.0
+margin_bottom = 544.0
[node name="Status" type="Label" parent="V"]
-margin_top = 564.0
-margin_right = 482.0
-margin_bottom = 606.0
+margin_top = 544.0
+margin_right = 1422.0
+margin_bottom = 586.0
custom_fonts/font = SubResource( 1 )
align = 1
autowrap = true