2 Commits
2 changed files with 3 additions and 8 deletions
@@ -4,7 +4,6 @@
[ext_resource type="Script" uid="uid://dsjd6wkrtjwsa" path="res://stages/3d_scenes/cockpit_scene/cockpit_elements/mutation_discovered_screen/scripts/mutation_discovery_element.gd" id="1_udmux"] [ext_resource type="Script" uid="uid://dsjd6wkrtjwsa" path="res://stages/3d_scenes/cockpit_scene/cockpit_elements/mutation_discovered_screen/scripts/mutation_discovery_element.gd" id="1_udmux"]
[ext_resource type="Texture2D" uid="uid://cgt4n1xwn4dc2" path="res://common/icons/hexagon.svg" id="1_wfsg0"] [ext_resource type="Texture2D" uid="uid://cgt4n1xwn4dc2" path="res://common/icons/hexagon.svg" id="1_wfsg0"]
[ext_resource type="Texture2D" uid="uid://cul11ab04vf8i" path="res://common/icons/hexagon-lock.svg" id="3_udmux"] [ext_resource type="Texture2D" uid="uid://cul11ab04vf8i" path="res://common/icons/hexagon-lock.svg" id="3_udmux"]
[ext_resource type="Texture2D" uid="uid://cwewx7cdy085h" path="res://common/icons/help-hexagon.svg" id="4_0ou8m"]
[ext_resource type="Script" uid="uid://cf0b6gm06fvy1" path="res://entities/interactables/mutation_element/mutation_element.gd" id="6_0ou8m"] [ext_resource type="Script" uid="uid://cf0b6gm06fvy1" path="res://entities/interactables/mutation_element/mutation_element.gd" id="6_0ou8m"]
[sub_resource type="SphereShape3D" id="SphereShape3D_g4v7s"] [sub_resource type="SphereShape3D" id="SphereShape3D_g4v7s"]
@@ -22,14 +21,10 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.605261e-10, 0, -0.012823343
modulate = Color(1, 0.6509804, 0.09019608, 1) modulate = Color(1, 0.6509804, 0.09019608, 1)
texture = ExtResource("1_wfsg0") texture = ExtResource("1_wfsg0")
[node name="BackgroundHexagonQuestion" type="Sprite3D" parent="." unique_id=789745739]
unique_name_in_owner = true
transform = Transform3D(1.465, 0, 0, 0, 1.465, 0, 0, 0, 1.465, 0, 0, 0)
texture = ExtResource("4_0ou8m")
[node name="BackgroundHexagonLocked" type="Sprite3D" parent="." unique_id=485550950] [node name="BackgroundHexagonLocked" type="Sprite3D" parent="." unique_id=485550950]
unique_name_in_owner = true unique_name_in_owner = true
transform = Transform3D(1.47, 0, 0, 0, 1.47, 0, 0, 0, 1.47, 0, 0, 0) transform = Transform3D(1.47, 0, 0, 0, 1.47, 0, 0, 0, 1.47, 0, 0, 0)
visible = false
texture = ExtResource("3_udmux") texture = ExtResource("3_udmux")
[node name="MutationTexture" type="Sprite3D" parent="." unique_id=1932614651] [node name="MutationTexture" type="Sprite3D" parent="." unique_id=1932614651]
@@ -18,8 +18,8 @@ func _ready():
func update(): func update():
if is_node_ready(): if is_node_ready():
%MutationTexture.visible = state == State.DISCOVERED || State.UNDISCOVERED %MutationTexture.visible = state == State.DISCOVERED || state == State.UNDISCOVERED
%BackgroundHexagon.visible = state == State.DISCOVERED || State.UNDISCOVERED %BackgroundHexagon.visible = state == State.DISCOVERED || state == State.UNDISCOVERED
%BackgroundHexagonLocked.visible = state == State.LOCKED %BackgroundHexagonLocked.visible = state == State.LOCKED
if state == State.DISCOVERED: if state == State.DISCOVERED:
%MutationTexture.modulate = Color.WHITE %MutationTexture.modulate = Color.WHITE