-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tscn
116 lines (97 loc) · 2.9 KB
/
main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[gd_scene load_steps=8 format=2]
[ext_resource path="res://misc/Label.gd" type="Script" id=1]
[ext_resource path="res://misc/HSlider.gd" type="Script" id=2]
[ext_resource path="res://misc/icon.png" type="Texture" id=4]
[ext_resource path="res://ResolutionScaling.tscn" type="PackedScene" id=5]
[sub_resource type="CubeMesh" id=1]
[sub_resource type="SpatialMaterial" id=2]
albedo_texture = ExtResource( 4 )
uv1_scale = Vector3( 3, 2, 1 )
[sub_resource type="Animation" id=3]
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 360, 0 ) ]
}
[node name="Game" type="Spatial"]
[node name="ResolutionScaling" parent="." instance=ExtResource( 5 )]
[node name="MeshInstance" type="MeshInstance" parent="ResolutionScaling/Viewport" index="0"]
mesh = SubResource( 1 )
material/0 = SubResource( 2 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="ResolutionScaling/Viewport/MeshInstance"]
autoplay = "New Anim"
playback_speed = 0.2
"anims/New Anim" = SubResource( 3 )
[node name="Camera" type="Camera" parent="ResolutionScaling/Viewport" index="1"]
transform = Transform( 1, 0, 0, 0, 0.946356, 0.323125, 0, -0.323125, 0.946356, 0, 2.1233, 3.57447 )
[node name="UI" type="Control" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="UI"]
margin_left = 20.0
margin_top = 20.0
margin_right = 60.0
margin_bottom = 34.0
rect_scale = Vector2( 1.5, 1.5 )
text = "FPS:"
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label2" type="Label" parent="UI"]
margin_left = 20.0
margin_top = 117.984
margin_right = 129.0
margin_bottom = 131.984
text = "Resolution scale:"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="HSlider" type="HSlider" parent="UI"]
margin_left = 17.0
margin_top = 125.081
margin_right = 179.0
margin_bottom = 153.081
value = 100.0
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Control" type="Control" parent="UI"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -64.0
margin_top = -64.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="icon" type="Sprite" parent="UI/Control"]
position = Vector2( 32, 32 )
texture = ExtResource( 4 )
[node name="Control2" type="Control" parent="UI"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -32.0
margin_right = 32.0
margin_bottom = 64.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="icon" type="Sprite" parent="UI/Control2"]
position = Vector2( 32, 32 )
texture = ExtResource( 4 )
[connection signal="value_changed" from="UI/HSlider" to="UI/HSlider" method="on_scale_changed"]
[editable path="ResolutionScaling"]