online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/Settings.tscn')
| -rw-r--r-- | ui/Settings.tscn | 207 |
1 files changed, 98 insertions, 109 deletions
diff --git a/ui/Settings.tscn b/ui/Settings.tscn index 317f99b..84ea5b3 100644 --- a/ui/Settings.tscn +++ b/ui/Settings.tscn @@ -12,152 +12,141 @@ anchor_bottom = 1.0 theme = ExtResource( 1 ) script = ExtResource( 2 ) -[node name="ColorRect" type="ColorRect" parent="."] +[node name="H" type="HBoxContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 -color = Color( 0, 0, 0, 0.384314 ) +mouse_filter = 2 +size_flags_horizontal = 0 +size_flags_vertical = 0 +alignment = 1 -[node name="HBoxContainer" type="HBoxContainer" parent="ColorRect"] +[node name="TabContainer" type="TabContainer" parent="H"] +margin_left = 203.0 +margin_right = 703.0 +margin_bottom = 530.0 +rect_min_size = Vector2( 500, 0 ) +size_flags_vertical = 0 +custom_constants/hseparation = 20 +drag_to_rearrange_enabled = true +use_hidden_tabs_for_min_size = true + +[node name="colors" type="VBoxContainer" parent="H/TabContainer"] anchor_right = 1.0 anchor_bottom = 1.0 -margin_top = 80.0 -mouse_filter = 2 +margin_left = 30.0 +margin_top = 90.0 +margin_right = -30.0 +margin_bottom = -30.0 alignment = 1 -[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/HBoxContainer"] -margin_left = 165.0 -margin_right = 531.0 -margin_bottom = 720.0 -mouse_filter = 2 +[node name="boardcolor1" parent="H/TabContainer/colors" instance=ExtResource( 5 )] +margin_left = 77.0 +margin_top = 26.0 +margin_right = 403.0 +margin_bottom = 132.0 +size_flags_horizontal = 4 +text = "boardcolor1" -[node name="BackButton" type="Button" parent="ColorRect/HBoxContainer/VBoxContainer"] -margin_right = 366.0 -margin_bottom = 106.0 -text = "back" +[node name="boardcolor2" parent="H/TabContainer/colors" instance=ExtResource( 5 )] +margin_left = 77.0 +margin_top = 147.0 +margin_right = 403.0 +margin_bottom = 253.0 +size_flags_horizontal = 4 +text = "boardcolor2" -[node name="PieceSet" type="OptionButton" parent="ColorRect/HBoxContainer/VBoxContainer"] -margin_top = 121.0 -margin_right = 366.0 -margin_bottom = 277.0 +[node name="PieceSet" type="OptionButton" parent="H/TabContainer/colors"] +margin_left = 57.0 +margin_top = 268.0 +margin_right = 423.0 +margin_bottom = 424.0 focus_mode = 0 +size_flags_horizontal = 4 +size_flags_vertical = 0 custom_constants/hseparation = 3 enabled_focus_mode = 0 text = "piece set" icon = ExtResource( 3 ) -[node name="PreviewLabel" type="Label" parent="ColorRect/HBoxContainer/VBoxContainer"] -margin_top = 292.0 -margin_right = 366.0 -margin_bottom = 342.0 -text = "Preview" -align = 1 - -[node name="Preview" type="GridContainer" parent="ColorRect/HBoxContainer/VBoxContainer"] -margin_left = 83.0 -margin_top = 357.0 -margin_right = 283.0 -margin_bottom = 557.0 -size_flags_horizontal = 4 -custom_constants/vseparation = 0 -custom_constants/hseparation = 0 -columns = 2 -script = ExtResource( 4 ) -__meta__ = { -"_edit_group_": true -} - -[node name="00" type="ColorRect" parent="ColorRect/HBoxContainer/VBoxContainer/Preview"] -margin_right = 100.0 -margin_bottom = 100.0 -rect_min_size = Vector2( 100, 100 ) - -[node name="Piece" type="TextureRect" parent="ColorRect/HBoxContainer/VBoxContainer/Preview/00"] +[node name="window" type="VBoxContainer" parent="H/TabContainer"] +visible = false anchor_right = 1.0 anchor_bottom = 1.0 -texture = ExtResource( 3 ) -expand = true -stretch_mode = 1 - -[node name="10" type="ColorRect" parent="ColorRect/HBoxContainer/VBoxContainer/Preview"] -margin_left = 100.0 -margin_right = 200.0 -margin_bottom = 100.0 -rect_min_size = Vector2( 100, 100 ) -color = Color( 0, 0, 0, 1 ) - -[node name="01" type="ColorRect" parent="ColorRect/HBoxContainer/VBoxContainer/Preview"] -margin_top = 100.0 -margin_right = 100.0 -margin_bottom = 200.0 -rect_min_size = Vector2( 100, 100 ) -color = Color( 0, 0, 0, 1 ) - -[node name="11" type="ColorRect" parent="ColorRect/HBoxContainer/VBoxContainer/Preview"] -margin_left = 100.0 -margin_top = 100.0 -margin_right = 200.0 -margin_bottom = 200.0 -rect_min_size = Vector2( 100, 100 ) - -[node name="VBoxContainer2" type="VBoxContainer" parent="ColorRect/HBoxContainer"] -margin_left = 546.0 -margin_right = 915.0 -margin_bottom = 720.0 +margin_top = 60.0 mouse_filter = 2 +alignment = 1 -[node name="VsyncButton" type="CheckBox" parent="ColorRect/HBoxContainer/VBoxContainer2"] -margin_right = 369.0 -margin_bottom = 140.0 +[node name="VsyncButton" type="CheckBox" parent="H/TabContainer/window"] +margin_left = 113.0 +margin_top = 65.0 +margin_right = 386.0 +margin_bottom = 205.0 focus_mode = 0 +size_flags_horizontal = 4 pressed = true enabled_focus_mode = 0 text = "vsync" -[node name="FullscreenButton" type="CheckBox" parent="ColorRect/HBoxContainer/VBoxContainer2"] -margin_top = 155.0 -margin_right = 369.0 -margin_bottom = 295.0 +[node name="FullscreenButton" type="CheckBox" parent="H/TabContainer/window"] +margin_left = 65.0 +margin_top = 220.0 +margin_right = 434.0 +margin_bottom = 360.0 focus_mode = 0 +size_flags_horizontal = 4 enabled_focus_mode = 0 text = "fullscreen" -[node name="Borderless" type="CheckBox" parent="ColorRect/HBoxContainer/VBoxContainer2"] -margin_top = 310.0 -margin_right = 369.0 -margin_bottom = 450.0 -focus_mode = 1 +[node name="Borderless" type="CheckBox" parent="H/TabContainer/window"] +margin_left = 91.0 +margin_top = 375.0 +margin_right = 409.0 +margin_bottom = 515.0 +focus_mode = 0 +size_flags_horizontal = 4 enabled_focus_mode = 0 text = "borders" -[node name="VBoxContainer3" type="VBoxContainer" parent="ColorRect/HBoxContainer"] -margin_left = 930.0 -margin_right = 1256.0 -margin_bottom = 720.0 +[node name="Container" type="VBoxContainer" parent="H"] +margin_left = 718.0 +margin_right = 1218.0 +margin_bottom = 800.0 +rect_min_size = Vector2( 300, 0 ) -[node name="resetbutton" type="Button" parent="ColorRect/HBoxContainer/VBoxContainer3"] -margin_right = 326.0 +[node name="resetbutton" type="Button" parent="H/Container"] +margin_left = 129.0 +margin_right = 370.0 margin_bottom = 106.0 focus_mode = 0 +size_flags_horizontal = 4 enabled_focus_mode = 0 text = "reset all" -[node name="boardcolor1" parent="ColorRect/HBoxContainer/VBoxContainer3" instance=ExtResource( 5 )] +[node name="PreviewLabel" type="Label" parent="H/Container"] margin_top = 121.0 -margin_right = 326.0 -margin_bottom = 227.0 -text = "boardcolor1" +margin_right = 500.0 +margin_bottom = 171.0 +text = "Preview" +align = 1 -[node name="boardcolor2" parent="ColorRect/HBoxContainer/VBoxContainer3" instance=ExtResource( 5 )] -margin_top = 242.0 -margin_right = 326.0 -margin_bottom = 348.0 -text = "boardcolor2" +[node name="Preview" type="GridContainer" parent="H/Container"] +margin_top = 186.0 +margin_right = 500.0 +margin_bottom = 586.0 +rect_min_size = Vector2( 500, 0 ) +size_flags_horizontal = 4 +custom_constants/vseparation = 0 +custom_constants/hseparation = 0 +columns = 5 +script = ExtResource( 4 ) +__meta__ = { +"_edit_group_": true +} -[connection signal="pressed" from="ColorRect/HBoxContainer/VBoxContainer/BackButton" to="." method="_on_BackButton_pressed"] -[connection signal="item_selected" from="ColorRect/HBoxContainer/VBoxContainer/PieceSet" to="." method="_on_PieceSet_item_selected"] -[connection signal="toggled" from="ColorRect/HBoxContainer/VBoxContainer2/VsyncButton" to="." method="_on_VsyncButton_toggled"] -[connection signal="toggled" from="ColorRect/HBoxContainer/VBoxContainer2/FullscreenButton" to="." method="_on_FullscreenButton_toggled"] -[connection signal="toggled" from="ColorRect/HBoxContainer/VBoxContainer2/Borderless" to="." method="_on_Borderless_toggled"] -[connection signal="pressed" from="ColorRect/HBoxContainer/VBoxContainer3/resetbutton" to="." method="_on_resetbutton_pressed"] -[connection signal="newcolor" from="ColorRect/HBoxContainer/VBoxContainer3/boardcolor1" to="." method="_on_boardcolor1_newcolor"] -[connection signal="newcolor" from="ColorRect/HBoxContainer/VBoxContainer3/boardcolor2" to="." method="_on_boardcolor2_newcolor"] +[connection signal="newcolor" from="H/TabContainer/colors/boardcolor1" to="." method="_on_boardcolor1_newcolor"] +[connection signal="newcolor" from="H/TabContainer/colors/boardcolor2" to="." method="_on_boardcolor2_newcolor"] +[connection signal="item_selected" from="H/TabContainer/colors/PieceSet" to="." method="_on_PieceSet_item_selected"] +[connection signal="toggled" from="H/TabContainer/window/VsyncButton" to="." method="_on_VsyncButton_toggled"] +[connection signal="toggled" from="H/TabContainer/window/FullscreenButton" to="." method="_on_FullscreenButton_toggled"] +[connection signal="toggled" from="H/TabContainer/window/Borderless" to="." method="_on_Borderless_toggled"] +[connection signal="pressed" from="H/Container/resetbutton" to="." method="_on_resetbutton_pressed"] |