mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 13:30:07 +01:00
113 lines
3.3 KiB
Plaintext
113 lines
3.3 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://cp0yrr35xhiue"]
|
|
|
|
[ext_resource type="Script" uid="uid://c5htx3sif4me8" path="res://drag_drop_script.gd" id="1"]
|
|
|
|
[node name="DragAndDrop" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
pivot_offset = Vector2(512, 300)
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[node name="Information" type="Label" parent="."]
|
|
layout_mode = 0
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -300.0
|
|
offset_top = -180.0
|
|
offset_right = 300.0
|
|
offset_bottom = -150.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
text = "Drag colors from button to button, or change button colors and drag them again."
|
|
|
|
[node name="GridContainer" type="GridContainer" parent="."]
|
|
layout_mode = 0
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -250.0
|
|
offset_top = -150.0
|
|
offset_right = 250.0
|
|
offset_bottom = 200.0
|
|
columns = 3
|
|
|
|
[node name="ColorPickerButton0" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.937255, 0.266667, 0.266667, 1)
|
|
script = ExtResource("1")
|
|
|
|
[node name="ColorPickerButton1" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.960784, 0.619608, 0.0431373, 1)
|
|
script = ExtResource("1")
|
|
|
|
[node name="ColorPickerButton2" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.517647, 0.8, 0.0862745, 1)
|
|
script = ExtResource("1")
|
|
|
|
[node name="ColorPickerButton3" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.0627451, 0.72549, 0.505882, 1)
|
|
script = ExtResource("1")
|
|
|
|
[node name="ColorPickerButton4" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.0235294, 0.713726, 0.831373, 1)
|
|
script = ExtResource("1")
|
|
|
|
[node name="ColorPickerButton5" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.231373, 0.509804, 0.964706, 1)
|
|
script = ExtResource("1")
|
|
|
|
[node name="ColorPickerButton6" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.545098, 0.360784, 0.964706, 1)
|
|
script = ExtResource("1")
|
|
|
|
[node name="ColorPickerButton7" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.85098, 0.27451, 0.937255, 1)
|
|
script = ExtResource("1")
|
|
|
|
[node name="ColorPickerButton8" type="ColorPickerButton" parent="GridContainer"]
|
|
custom_minimum_size = Vector2(96, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
size_flags_vertical = 6
|
|
color = Color(0.470588, 0.443137, 0.423529, 1)
|
|
script = ExtResource("1")
|