Ajout de la cinématique de début et refonte du système audio
Et toujours un peu de correction de bug par ci par là
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://dks6cugwif2em" path="res://common/icons/phone.svg" id="4_bse8l"]
|
||||
[ext_resource type="Texture2D" uid="uid://cq0xvydfqk0x4" path="res://stages/cockpit/assets/textures/stickers/cockpit_sticker_5.png" id="4_omtjc"]
|
||||
[ext_resource type="Texture2D" uid="uid://dex283rx00fjb" path="res://common/icons/logout.svg" id="5_oq6nq"]
|
||||
[ext_resource type="Script" uid="uid://bj4d1x8n8ina" path="res://stages/cockpit/scripts/cockpit_action.gd" id="6_22o3l"]
|
||||
[ext_resource type="Script" uid="uid://bj4d1x8n8ina" path="res://entities/interactable_3d/interactable_3d.gd" id="6_22o3l"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="9_i3c17"]
|
||||
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="10_i3c17"]
|
||||
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/hud.tres" id="10_j2e5k"]
|
||||
|
||||
@@ -7,7 +7,7 @@ func _ready():
|
||||
|
||||
if not GameInfo.game_data.current_region_data:
|
||||
%ExitAction.hide()
|
||||
%ExitAction.pickable = false
|
||||
%ExitAction.interactable = false
|
||||
|
||||
if region_data:
|
||||
var state := region_data.get_state()
|
||||
@@ -15,7 +15,7 @@ func _ready():
|
||||
RegionData.State.IN_PROGRESS:
|
||||
%StateAnimationPlayer.play("InProgress")
|
||||
%MapAction.hide()
|
||||
%MapAction.pickable = false
|
||||
%MapAction.interactable = false
|
||||
RegionData.State.FAILED:
|
||||
%StateAnimationPlayer.play("Failed")
|
||||
RegionData.State.SUCCEEDED:
|
||||
@@ -23,11 +23,11 @@ func _ready():
|
||||
update_screen_info(region_data)
|
||||
|
||||
func _on_map_action_clicked():
|
||||
SceneManager.change_scene("REGION_SELECTION")
|
||||
SceneManager.change_to_scene_id("REGION_SELECTION")
|
||||
|
||||
func _on_exit_action_clicked():
|
||||
if GameInfo.game_data.current_region_data:
|
||||
SceneManager.change_scene("REGION")
|
||||
SceneManager.change_to_scene_id("REGION")
|
||||
|
||||
func update_screen_info(region_data : RegionData):
|
||||
%RegionNameInfo.text = region_data.region_name
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
extends Area3D
|
||||
class_name CockpitAction
|
||||
|
||||
var pickable = true
|
||||
|
||||
signal clicked
|
||||
|
||||
@export var animation_player : AnimationPlayer
|
||||
|
||||
func click():
|
||||
clicked.emit()
|
||||
|
||||
func _on_mouse_entered():
|
||||
if animation_player:
|
||||
animation_player.play("hover")
|
||||
|
||||
func _on_mouse_exited():
|
||||
if animation_player:
|
||||
animation_player.stop()
|
||||
@@ -1 +0,0 @@
|
||||
uid://bj4d1x8n8ina
|
||||
Reference in New Issue
Block a user