51 lines
1.6 KiB
Text
51 lines
1.6 KiB
Text
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://Graphics/light_shadow_light.png" type="Texture" id=1]
|
|
[ext_resource path="res://Graphics/tgstation/light.png" type="Texture" id=2]
|
|
[ext_resource path="res://Actors/Objects/Lightbulb/Lightbulb.gd" type="Script" id=3]
|
|
[ext_resource path="res://Actors/Components/ActivationRange.gd" type="Script" id=4]
|
|
[ext_resource path="res://Actors/Components/PowerManager.gd" type="Script" id=5]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 16, 16 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
extents = Vector2( 48, 32 )
|
|
|
|
[node name="Lighttube" type="Area2D"]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="light" type="Sprite" parent="."]
|
|
texture = ExtResource( 2 )
|
|
region_enabled = true
|
|
region_rect = Rect2( 32, 0, 32, 32 )
|
|
|
|
[node name="Light2D" type="Light2D" parent="."]
|
|
enabled = false
|
|
texture = ExtResource( 1 )
|
|
texture_scale = 3.5
|
|
energy = 1.2
|
|
mode = 2
|
|
shadow_color = Color( 0, 0, 0, 1 )
|
|
shadow_filter_smooth = 10.0
|
|
__meta__ = {
|
|
"_edit_group_": true,
|
|
"_edit_lock_": true
|
|
}
|
|
|
|
[node name="ActivationRange" type="Area2D" parent="."]
|
|
visible = false
|
|
script = ExtResource( 4 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="ActivationRange"]
|
|
position = Vector2( 0, 16 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="PowerManager" type="Node" parent="."]
|
|
script = ExtResource( 5 )
|
|
power_usage = 5.0
|
|
[connection signal="power_connected" from="PowerManager" to="." method="_power_status_changed" binds= [ true ]]
|
|
[connection signal="power_disconnected" from="PowerManager" to="." method="_power_status_changed" binds= [ false ]]
|