66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
|
[gd_scene load_steps=7 format=2]
|
||
|
|
||
|
[ext_resource path="res://Graphics/tgstation/computer-screens.png" type="Texture" id=1]
|
||
|
[ext_resource path="res://Graphics/tgstation/computer.png" type="Texture" id=2]
|
||
|
[ext_resource path="res://Actors/Objects/Computer/Computer.gd" type="Script" id=3]
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id=1]
|
||
|
extents = Vector2( 16, 16 )
|
||
|
|
||
|
[sub_resource type="Animation" id=2]
|
||
|
resource_name = "off"
|
||
|
tracks/0/type = "value"
|
||
|
tracks/0/path = NodePath("computer/screen:modulate")
|
||
|
tracks/0/interp = 1
|
||
|
tracks/0/loop_wrap = true
|
||
|
tracks/0/imported = false
|
||
|
tracks/0/enabled = true
|
||
|
tracks/0/keys = {
|
||
|
"times": PoolRealArray( 0 ),
|
||
|
"transitions": PoolRealArray( 1 ),
|
||
|
"update": 0,
|
||
|
"values": [ Color( 0, 0, 0, 1 ) ]
|
||
|
}
|
||
|
|
||
|
[sub_resource type="Animation" id=3]
|
||
|
resource_name = "on"
|
||
|
length = 5.5
|
||
|
loop = true
|
||
|
step = 0.0
|
||
|
tracks/0/type = "value"
|
||
|
tracks/0/path = NodePath("computer/screen:modulate")
|
||
|
tracks/0/interp = 1
|
||
|
tracks/0/loop_wrap = true
|
||
|
tracks/0/imported = false
|
||
|
tracks/0/enabled = true
|
||
|
tracks/0/keys = {
|
||
|
"times": PoolRealArray( 0, 0.63955, 0.93955, 2.44742, 2.74742, 4.94041, 4.98068, 5.01527, 5.0544, 5.08947 ),
|
||
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
|
||
|
"update": 0,
|
||
|
"values": [ Color( 1, 1, 1, 1 ), Color( 0.682353, 0.682353, 0.682353, 1 ), Color( 1, 1, 1, 1 ), Color( 0.682353, 0.682353, 0.682353, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 0.584314, 0.584314, 0.584314, 1 ), Color( 1, 1, 1, 1 ), Color( 0.584314, 0.584314, 0.584314, 1 ), Color( 1, 1, 1, 1 ) ]
|
||
|
}
|
||
|
|
||
|
[node name="Computer" type="StaticBody2D"]
|
||
|
script = ExtResource( 3 )
|
||
|
|
||
|
[node name="computer" type="Sprite" parent="."]
|
||
|
texture = ExtResource( 2 )
|
||
|
centered = false
|
||
|
region_enabled = true
|
||
|
region_rect = Rect2( 0, 0, 32, 32 )
|
||
|
|
||
|
[node name="screen" type="Sprite" parent="computer"]
|
||
|
texture = ExtResource( 1 )
|
||
|
centered = false
|
||
|
region_enabled = true
|
||
|
region_rect = Rect2( 0, 0, 32, 32 )
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
position = Vector2( 16, 16 )
|
||
|
shape = SubResource( 1 )
|
||
|
|
||
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||
|
autoplay = "on"
|
||
|
anims/off = SubResource( 2 )
|
||
|
anims/on = SubResource( 3 )
|