online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/sidebarright/SidebarRight.tscn')
| -rw-r--r-- | ui/menus/sidebarright/SidebarRight.tscn | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/ui/menus/sidebarright/SidebarRight.tscn b/ui/menus/sidebarright/SidebarRight.tscn index b8940a7..94ad2b7 100644 --- a/ui/menus/sidebarright/SidebarRight.tscn +++ b/ui/menus/sidebarright/SidebarRight.tscn @@ -1,13 +1,13 @@ -[gd_scene load_steps=23 format=2] +[gd_scene load_steps=21 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/buttonbar.gd" type="Script" 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/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] @@ -36,23 +36,10 @@ 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="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 ) +size = 200 +font_data = ExtResource( 7 ) +fallback/0 = ExtResource( 15 ) +fallback/1 = ExtResource( 6 ) [node name="SidebarRight" type="PanelContainer"] anchor_right = 1.0 @@ -64,7 +51,6 @@ script = ExtResource( 13 ) __meta__ = { "_edit_lock_": true } -panel_holder = NodePath("V") [node name="MaterialLabelManager" type="Node" parent="."] script = ExtResource( 11 ) @@ -116,10 +102,9 @@ __meta__ = { [node name="buttonbar" type="HBoxContainer" parent="V/buttonbarholder"] margin_right = 1402.0 margin_bottom = 50.0 -theme = SubResource( 24 ) +theme = ExtResource( 5 ) custom_constants/separation = 0 alignment = 1 -script = ExtResource( 4 ) [node name="FlipButton" type="Button" parent="V/buttonbarholder/buttonbar"] margin_right = 350.0 @@ -131,7 +116,7 @@ size_flags_horizontal = 3 text = "ﮨ" script = ExtResource( 19 ) -[node name="DrawButton" type="Button" parent="V/buttonbarholder/buttonbar"] +[node name="DrawButton" type="Button" parent="V/buttonbarholder/buttonbar" groups=["freeinlocalmultiplayer", "hideongameover"]] margin_left = 350.0 margin_right = 701.0 margin_bottom = 50.0 @@ -144,7 +129,7 @@ text = "½-½" script = ExtResource( 1 ) confirm_text = "Your opponent requests a draw" -[node name="ResignButton" type="Button" parent="V/buttonbarholder/buttonbar"] +[node name="ResignButton" type="Button" parent="V/buttonbarholder/buttonbar" groups=["freeinlocalmultiplayer", "hideongameover"]] margin_left = 701.0 margin_right = 1051.0 margin_bottom = 50.0 @@ -157,7 +142,7 @@ text = "" script = ExtResource( 2 ) confirm_text = "Resign?" -[node name="UndoButton" type="Button" parent="V/buttonbarholder/buttonbar"] +[node name="UndoButton" type="Button" parent="V/buttonbarholder/buttonbar" groups=["freeinlocalmultiplayer", "hideongameover"]] margin_left = 1051.0 margin_right = 1402.0 margin_bottom = 50.0 @@ -169,9 +154,20 @@ size_flags_horizontal = 3 text = "社" script = ExtResource( 18 ) confirm_text = "Your opponent requests a undo" -status = NodePath("../../../Status") -[node name="SanDisplay" parent="V" instance=ExtResource( 21 )] +[node name="RematchButton" type="Button" parent="V" groups=["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=["hideongameover"] instance=ExtResource( 21 )] anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 320.0 @@ -194,6 +190,7 @@ 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 |