Dev Demo 2
* Ajout des achievement Steam * Ajout d'une annonce à la récupération d'un artefact et ajout de textes axplicatifs sur les annonces d'artefacts et de mutation * Fix du léger glitch des tooltips * Ajout de clarté sur la machine de respawn dans le vaisseau
This commit is contained in:
@@ -55,29 +55,29 @@ func update_rotation(delta):
|
||||
|
||||
|
||||
func set_announce_artefact(artefact := announce_artefact):
|
||||
|
||||
for c in %AnnouceObject.get_children():
|
||||
c.queue_free()
|
||||
if is_node_ready():
|
||||
for c in %AnnouceObject.get_children():
|
||||
c.queue_free()
|
||||
|
||||
if is_node_ready() and artefact:
|
||||
if is_node_ready() and artefact:
|
||||
|
||||
%AnnounceTitle.text = "NEW_ARTEFACT"
|
||||
%AnnounceText.text = artefact.get_artefact_name()
|
||||
%ObjectVisualiser.info = artefact.card_info()
|
||||
%AnnounceTitle.text = "NEW_ARTEFACT"
|
||||
%AnnounceText.text = artefact.get_artefact_name()
|
||||
%ObjectVisualiser.info = artefact.card_info()
|
||||
|
||||
%AnnouceObject.add_child(
|
||||
artefact.get_3d_scene().instantiate()
|
||||
)
|
||||
%AnnouceObject.add_child(
|
||||
artefact.get_3d_scene().instantiate()
|
||||
)
|
||||
|
||||
if not visible:
|
||||
%AnimationPlayer.play("appear")
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
AudioManager.play_sfx("Unlock_tool")
|
||||
elif artefact == null and visible:
|
||||
%AnimationPlayer.play_backwards("appear")
|
||||
|
||||
if not Engine.is_editor_hint():
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
if not visible:
|
||||
%AnimationPlayer.play("appear")
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
AudioManager.play_sfx("Unlock_tool")
|
||||
elif artefact == null and visible:
|
||||
%AnimationPlayer.play_backwards("appear")
|
||||
|
||||
if not Engine.is_editor_hint():
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
|
||||
announce_artefact = artefact
|
||||
|
||||
|
||||
@@ -42,6 +42,10 @@ func unlock_mutation():
|
||||
get_tree().create_timer(1.).timeout.connect(
|
||||
func (): %MutationAnnounce.announce_mutation = new_mutation
|
||||
);
|
||||
|
||||
if progression.mutations_unlocked == len(progression.get_all_mutations()):
|
||||
SteamConnection.unlock_achievement(SteamConnection.ACH_UNLOCK_ALL_MUTATION)
|
||||
|
||||
else:
|
||||
var talion_relay = TalionRelayArtifact.new()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user