online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/GameUI.tscn')
| -rw-r--r-- | ui/GameUI.tscn | 90 |
1 files changed, 83 insertions, 7 deletions
diff --git a/ui/GameUI.tscn b/ui/GameUI.tscn index 9fc8a58..0e2afc5 100644 --- a/ui/GameUI.tscn +++ b/ui/GameUI.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=22 format=2] [ext_resource path="res://ui/main.tres" type="Theme" id=1] [ext_resource path="res://ui/roboto.tres" type="DynamicFont" id=2] @@ -7,11 +7,83 @@ [ext_resource path="res://ui/Timer.gd" type="Script" id=5] [ext_resource path="res://ui/MovesList.gd" type="Script" id=6] [ext_resource path="res://ui/Status.gd" type="Script" id=7] +[ext_resource path="res://assets/ui/whitespace.png" type="Texture" id=8] +[ext_resource path="res://assets/ui/verdana-bold.ttf" type="DynamicFontData" id=9] +[ext_resource path="res://assets/ui/checkedbox.png" type="Texture" id=10] +[ext_resource path="res://assets/ui/button.png" type="Texture" id=11] +[ext_resource path="res://ui/flatblack.tres" type="StyleBox" id=12] +[ext_resource path="res://ui/button.tres" type="StyleBox" id=13] +[ext_resource path="res://ui/buttonhover.tres" type="StyleBox" id=14] [sub_resource type="DynamicFont" id=1] size = 25 font_data = ExtResource( 3 ) +[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( 9 ) + +[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( 13 ) +Button/styles/hover = ExtResource( 14 ) +Button/styles/normal = ExtResource( 13 ) +Button/styles/pressed = ExtResource( 13 ) +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( 11 ) +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( 12 ) +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( 13 ) +LineEdit/styles/normal = ExtResource( 13 ) +LineEdit/styles/read_only = ExtResource( 13 ) +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( 8 ) +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( 8 ) +PopupMenu/icons/radio_unchecked = ExtResource( 8 ) +PopupMenu/styles/hover = SubResource( 3 ) +PopupMenu/styles/panel = ExtResource( 12 ) +VBoxContainer/constants/separation = 15 +VScrollBar/styles/scroll = SubResource( 5 ) + [node name="UI" type="CanvasLayer"] [node name="Holder" type="Control" parent="."] @@ -65,24 +137,28 @@ color = Color( 0, 0, 0, 1 ) [node name="Status" type="Label" parent="Holder/Back/VBox"] visible = false -margin_top = 355.0 +margin_top = 259.0 margin_right = 400.0 -margin_bottom = 386.0 +margin_bottom = 290.0 custom_fonts/font = SubResource( 1 ) +text = "hi there" align = 1 autowrap = true script = ExtResource( 7 ) -[node name="MovesList" type="ItemList" parent="Holder/Back/VBox"] +[node name="MovesList" type="ScrollContainer" parent="Holder/Back/VBox"] margin_top = 300.0 margin_right = 400.0 margin_bottom = 500.0 rect_min_size = Vector2( 0, 200 ) -focus_mode = 0 -custom_constants/hseparation = 25 -max_columns = 2 +theme = SubResource( 6 ) +scroll_horizontal_enabled = false script = ExtResource( 6 ) +[node name="sans" type="GridContainer" parent="Holder/Back/VBox/MovesList"] +custom_constants/vseparation = 0 +columns = 3 + [node name="WhiteTime" type="Label" parent="Holder/Back/VBox"] margin_top = 550.0 margin_right = 400.0 |