online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/colorpicker/ColorPickerButton.tscn')
| -rw-r--r-- | ui/colorpicker/ColorPickerButton.tscn | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/ui/colorpicker/ColorPickerButton.tscn b/ui/colorpicker/ColorPickerButton.tscn index 2608dc9..df3ed57 100644 --- a/ui/colorpicker/ColorPickerButton.tscn +++ b/ui/colorpicker/ColorPickerButton.tscn @@ -1,9 +1,16 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=5 format=2] [ext_resource path="res://ui/theme/main.tres" type="Theme" id=1] [ext_resource path="res://ui/colorpicker/ColorPickerButton.gd" type="Script" id=2] [ext_resource path="res://ui/colorpicker/ColorPicker.tscn" type="PackedScene" id=3] +[sub_resource type="StyleBoxFlat" id=1] +content_margin_left = 10.0 +content_margin_right = 10.0 +content_margin_top = 10.0 +content_margin_bottom = 10.0 +bg_color = Color( 0, 0, 0, 0.784314 ) + [node name="ColorPickerButton" type="Button"] margin_right = 232.0 margin_bottom = 106.0 @@ -13,18 +20,21 @@ enabled_focus_mode = 0 text = "button" script = ExtResource( 2 ) -[node name="ColorPicker" parent="." instance=ExtResource( 3 )] -visible = false -margin_left = 32.0 -margin_top = 32.0 -margin_right = 177.0 -margin_bottom = 177.0 +[node name="Popup" type="PopupPanel" parent="."] +visible = true +margin_left = 50.0 +margin_top = 50.0 +margin_right = 195.0 +margin_bottom = 195.0 +rect_min_size = Vector2( 125, 125 ) +custom_styles/panel = SubResource( 1 ) -[node name="Position" type="Control" parent="."] -margin_left = 32.0 -margin_top = 32.0 -margin_right = 72.0 -margin_bottom = 72.0 +[node name="ColorPicker" parent="Popup" instance=ExtResource( 3 )] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 10.0 +margin_top = 10.0 +margin_right = -10.0 +margin_bottom = -10.0 -[connection signal="pressed" from="." to="ColorPicker" method="open"] -[connection signal="done" from="ColorPicker" to="." method="_on_ColorPicker_done"] +[connection signal="done" from="Popup/ColorPicker" to="." method="_on_ColorPicker_done"] |