Hide computer light in editor

This commit is contained in:
Hamcha 2020-07-16 14:44:35 +02:00
parent 728c956f72
commit d8f2e3f6f7
Signed by: hamcha
GPG key ID: 41467804B19A3315
2 changed files with 2 additions and 0 deletions

View file

@ -19,6 +19,7 @@ onready var manager = $PowerManager as PowerManager
func _ready(): func _ready():
if not Engine.editor_hint: if not Engine.editor_hint:
activationRange.visible = true activationRange.visible = true
$computer/screen/Light2D.visible = true
func set_type(val): func set_type(val):
computer_type = val computer_type = val

View file

@ -147,6 +147,7 @@ region_enabled = true
region_rect = Rect2( 0, 0, 32, 32 ) region_rect = Rect2( 0, 0, 32, 32 )
[node name="Light2D" type="Light2D" parent="computer/screen"] [node name="Light2D" type="Light2D" parent="computer/screen"]
visible = false
position = Vector2( 16, 16 ) position = Vector2( 16, 16 )
enabled = false enabled = false
texture = ExtResource( 5 ) texture = ExtResource( 5 )