godot-demo-projects/misc/tween/main.tscn

359 lines
8.0 KiB
Plaintext

[gd_scene load_steps=3 format=2]
[ext_resource path="res://main.gd" type="Script" id=1]
[ext_resource path="res://godot.png" type="Texture" id=2]
[node name="Main" type="Control"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -512.0
margin_top = -384.0
margin_right = 512.0
margin_bottom = 384.0
size_flags_horizontal = 2
size_flags_vertical = 2
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Trans" type="VBoxContainer" parent="."]
margin_left = 56.0
margin_top = 288.0
margin_right = 129.0
margin_bottom = 614.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Linear" type="Button" parent="Trans"]
margin_right = 48.0
margin_bottom = 20.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "linear"
[node name="Sine" type="Button" parent="Trans"]
margin_top = 30.0
margin_right = 39.0
margin_bottom = 50.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "sine"
[node name="Quint" type="Button" parent="Trans"]
margin_top = 60.0
margin_right = 45.0
margin_bottom = 80.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "quint"
[node name="Quart" type="Button" parent="Trans"]
margin_top = 90.0
margin_right = 45.0
margin_bottom = 110.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "quart"
[node name="Quad" type="Button" parent="Trans"]
margin_top = 120.0
margin_right = 43.0
margin_bottom = 140.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "quad"
[node name="Expo" type="Button" parent="Trans"]
margin_top = 150.0
margin_right = 43.0
margin_bottom = 170.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "expo"
[node name="Elastic" type="Button" parent="Trans"]
margin_top = 180.0
margin_right = 54.0
margin_bottom = 200.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "elastic"
[node name="Cubic" type="Button" parent="Trans"]
margin_top = 210.0
margin_right = 46.0
margin_bottom = 230.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "cubic"
[node name="Circ" type="Button" parent="Trans"]
margin_top = 240.0
margin_right = 35.0
margin_bottom = 260.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "circ"
[node name="Bounce" type="Button" parent="Trans"]
margin_top = 270.0
margin_right = 59.0
margin_bottom = 290.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "bounce"
[node name="Back" type="Button" parent="Trans"]
margin_top = 300.0
margin_right = 41.0
margin_bottom = 320.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "back"
[node name="Eases" type="VBoxContainer" parent="."]
margin_left = 152.0
margin_top = 288.0
margin_right = 215.0
margin_bottom = 404.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="In" type="Button" parent="Eases"]
margin_right = 24.0
margin_bottom = 20.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "in"
[node name="Out" type="Button" parent="Eases"]
margin_top = 30.0
margin_right = 33.0
margin_bottom = 50.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "out"
[node name="InOut" type="Button" parent="Eases"]
margin_top = 60.0
margin_right = 51.0
margin_bottom = 80.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "in_out"
[node name="OutIn" type="Button" parent="Eases"]
margin_top = 90.0
margin_right = 51.0
margin_bottom = 110.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "out_in"
[node name="Modes" type="VBoxContainer" parent="."]
margin_left = 240.0
margin_top = 288.0
margin_right = 317.0
margin_bottom = 524.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Move" type="Button" parent="Modes"]
margin_right = 48.0
margin_bottom = 20.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "move"
[node name="Color" type="Button" parent="Modes"]
margin_top = 30.0
margin_right = 44.0
margin_bottom = 50.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "color"
[node name="Scale" type="Button" parent="Modes"]
margin_top = 60.0
margin_right = 45.0
margin_bottom = 80.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "scale"
[node name="Rotate" type="Button" parent="Modes"]
margin_top = 90.0
margin_right = 50.0
margin_bottom = 110.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "rotate"
[node name="Callback" type="Button" parent="Modes"]
margin_top = 120.0
margin_right = 63.0
margin_bottom = 140.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "callback"
[node name="Follow" type="Button" parent="Modes"]
margin_top = 150.0
margin_right = 50.0
margin_bottom = 170.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "follow"
[node name="Repeat" type="Button" parent="Modes"]
margin_top = 180.0
margin_right = 53.0
margin_bottom = 200.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "repeat"
[node name="Pause" type="Button" parent="Modes"]
margin_top = 210.0
margin_right = 50.0
margin_bottom = 230.0
size_flags_horizontal = 2
size_flags_vertical = 2
toggle_mode = true
text = "pause"
[node name="Colors" type="HBoxContainer" parent="."]
margin_left = 352.0
margin_top = 273.0
margin_right = 1008.0
margin_bottom = 753.0
size_flags_horizontal = 2
size_flags_vertical = 2
custom_constants/separation = 40
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ColorFrom" type="VBoxContainer" parent="Colors"]
margin_right = 308.0
margin_bottom = 480.0
rect_min_size = Vector2( 0, 320 )
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Label" type="Label" parent="Colors/ColorFrom"]
margin_right = 74.0
margin_bottom = 14.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Color From:"
[node name="Picker" type="ColorPicker" parent="Colors/ColorFrom"]
margin_top = 18.0
margin_right = 308.0
margin_bottom = 480.0
rect_min_size = Vector2( 0, 320 )
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="ColorTo" type="VBoxContainer" parent="Colors"]
margin_left = 348.0
margin_right = 656.0
margin_bottom = 480.0
rect_min_size = Vector2( 0, 320 )
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Label" type="Label" parent="Colors/ColorTo"]
margin_right = 56.0
margin_bottom = 14.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Color To:"
[node name="Picker" type="ColorPicker" parent="Colors/ColorTo"]
margin_top = 18.0
margin_right = 308.0
margin_bottom = 480.0
rect_min_size = Vector2( 0, 320 )
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Tween" type="Tween" parent="."]
repeat = true
playback/repeat = true
[node name="Area" type="Panel" parent="Tween"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -420.0
margin_top = -352.0
margin_right = 444.0
margin_bottom = -152.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Label" type="RichTextLabel" parent="Tween/Area"]
margin_left = 176.0
margin_top = 24.0
margin_right = 552.0
margin_bottom = 160.0
size_flags_horizontal = 2
size_flags_vertical = 2
[node name="Sprite" type="Sprite" parent="Tween/Area"]
texture = ExtResource( 2 )
[node name="Follow" type="Sprite" parent="Tween/Area"]
position = Vector2( 0, 184 )
texture = ExtResource( 2 )
[node name="Follow2" type="Sprite" parent="Tween/Area"]
position = Vector2( 736, 0 )
texture = ExtResource( 2 )
[node name="Timeline" type="HSlider" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -416.0
margin_top = -144.0
margin_right = 416.0
margin_bottom = -128.0
size_flags_horizontal = 2
value = 1.0
ticks_on_borders = true
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="tween_step" from="Tween" to="." method="_on_tween_step"]
[connection signal="value_changed" from="Timeline" to="." method="_on_timeline_value_changed"]