online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/colorpicker/ColorPicker.tscn')
| -rw-r--r-- | ui/colorpicker/ColorPicker.tscn | 136 |
1 files changed, 136 insertions, 0 deletions
diff --git a/ui/colorpicker/ColorPicker.tscn b/ui/colorpicker/ColorPicker.tscn new file mode 100644 index 0000000..30bcd17 --- /dev/null +++ b/ui/colorpicker/ColorPicker.tscn @@ -0,0 +1,136 @@ +[gd_scene load_steps=13 format=2] + +[ext_resource path="res://ui/colorpicker/ColorPicker.gd" type="Script" id=1] +[ext_resource path="res://ui/colorpicker/ColorPicker.tres" type="Theme" id=2] +[ext_resource path="res://assets/ui/Roboto-Medium.ttf" type="DynamicFontData" id=3] +[ext_resource path="res://ui/colorpicker/smallbutton.tres" type="StyleBox" id=4] +[ext_resource path="res://ui/colorpicker/smallbuttonhover.tres" type="StyleBox" id=5] +[ext_resource path="res://ui/colorpicker/HueSlider.gd" type="Script" id=6] +[ext_resource path="res://ui/colorpicker/ColorSelect.gd" type="Script" id=7] +[ext_resource path="res://ui/colorpicker/HexInput.gd" type="Script" id=8] +[ext_resource path="res://ui/colorpicker/OldColorView.gd" type="Script" id=9] +[ext_resource path="res://ui/colorpicker/huepicker.material" type="Material" id=10] +[ext_resource path="res://ui/colorpicker/ColorSelect.material" type="Material" id=11] + +[sub_resource type="DynamicFont" id=1] +size = 20 +font_data = ExtResource( 3 ) + +[node name="ColorPicker" type="Control"] +margin_right = 128.0 +margin_bottom = 238.0 +theme = ExtResource( 2 ) +script = ExtResource( 1 ) + +[node name="Panel" type="Panel" parent="."] +margin_left = -12.0 +margin_top = -12.0 +margin_right = 136.0 +margin_bottom = 248.0 + +[node name="V" type="VBoxContainer" parent="Panel"] +margin_left = 12.0 +margin_top = 12.0 +margin_right = 137.0 +margin_bottom = 137.0 +custom_constants/separation = 5 + +[node name="H" type="HBoxContainer" parent="Panel/V"] +margin_right = 125.0 +margin_bottom = 100.0 +custom_constants/separation = 5 + +[node name="HueSlider" type="Control" parent="Panel/V/H"] +margin_right = 20.0 +margin_bottom = 100.0 +rect_min_size = Vector2( 20, 100 ) +size_flags_vertical = 0 +script = ExtResource( 6 ) + +[node name="ShaderHolder" type="ColorRect" parent="Panel/V/H/HueSlider"] +show_behind_parent = true +material = ExtResource( 10 ) +anchor_right = 1.0 +anchor_bottom = 1.0 +mouse_filter = 2 + +[node name="ColorSelect" type="Control" parent="Panel/V/H"] +margin_left = 25.0 +margin_right = 125.0 +margin_bottom = 100.0 +rect_min_size = Vector2( 100, 100 ) +size_flags_horizontal = 0 +size_flags_vertical = 0 +script = ExtResource( 7 ) + +[node name="ShaderHolder" type="ColorRect" parent="Panel/V/H/ColorSelect"] +show_behind_parent = true +material = ExtResource( 11 ) +anchor_right = 1.0 +anchor_bottom = 1.0 +mouse_filter = 2 + +[node name="H2" type="HBoxContainer" parent="Panel/V"] +margin_top = 105.0 +margin_right = 125.0 +margin_bottom = 125.0 +custom_constants/separation = 0 + +[node name="Spacer" type="Control" parent="Panel/V/H2"] +margin_right = 25.0 +margin_bottom = 20.0 +rect_min_size = Vector2( 25, 0 ) + +[node name="OldColorView" type="ColorRect" parent="Panel/V/H2"] +margin_left = 25.0 +margin_right = 75.0 +margin_bottom = 20.0 +rect_min_size = Vector2( 50, 20 ) +script = ExtResource( 9 ) + +[node name="NewColorPreview" type="ColorRect" parent="Panel/V/H2"] +margin_left = 75.0 +margin_right = 125.0 +margin_bottom = 20.0 +rect_min_size = Vector2( 50, 20 ) + +[node name="hex" type="LineEdit" parent="Panel/V"] +margin_top = 130.0 +margin_right = 125.0 +margin_bottom = 182.0 +max_length = 7 +context_menu_enabled = false +placeholder_text = "#FFFFFF" +caret_blink = true +script = ExtResource( 8 ) + +[node name="OKButton" type="Button" parent="Panel/V"] +margin_top = 187.0 +margin_right = 125.0 +margin_bottom = 239.0 +focus_mode = 0 +custom_colors/font_color_focus = Color( 0, 0, 0, 1 ) +custom_colors/font_color = Color( 1, 1, 1, 1 ) +custom_colors/font_color_hover = Color( 0, 0, 0, 1 ) +custom_colors/font_color_pressed = Color( 0, 0, 0, 1 ) +custom_fonts/font = SubResource( 1 ) +custom_styles/hover = ExtResource( 5 ) +custom_styles/pressed = ExtResource( 5 ) +custom_styles/focus = ExtResource( 5 ) +custom_styles/normal = ExtResource( 4 ) +enabled_focus_mode = 0 +text = "OK" + +[node name="LineDrawer" type="Control" parent="Panel/V"] +margin_top = 244.0 +margin_right = 125.0 +margin_bottom = 244.0 + +[connection signal="gui_input" from="Panel/V/H/HueSlider" to="Panel/V/H/HueSlider" method="_gui_input"] +[connection signal="hue_changed" from="Panel/V/H/HueSlider" to="Panel/V/H/ColorSelect" method="apply_hue"] +[connection signal="color_changed" from="Panel/V/H/ColorSelect" to="." method="_color_changed"] +[connection signal="color_changed" from="Panel/V/H2/OldColorView" to="." method="_color_changed"] +[connection signal="gui_input" from="Panel/V/H2/OldColorView" to="Panel/V/H2/OldColorView" method="_gui_input"] +[connection signal="color_changed" from="Panel/V/hex" to="." method="_color_changed"] +[connection signal="text_entered" from="Panel/V/hex" to="Panel/V/hex" method="_text_entered"] +[connection signal="pressed" from="Panel/V/OKButton" to="." method="_on_OKButton_pressed"] |