modification de la scène de cockpit et ajout de lien entre les scènes
This commit is contained in:
230
gui/credits/credits.tscn
Normal file
230
gui/credits/credits.tscn
Normal file
@@ -0,0 +1,230 @@
|
||||
[gd_scene format=3 uid="uid://c5a32n6rjjlnt"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://cuni3ggtw2uuy" path="res://common/vfx/materials/shaders/blur.gdshader" id="1_yknhu"]
|
||||
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="2_luv2b"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdpqg3pkjcw2h" path="res://stages/title_screen/assets/textures/title.png" id="3_urbel"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="4_5k6jv"]
|
||||
[ext_resource type="PackedScene" uid="uid://bc3byq8e45ejj" path="res://gui/credits/socials/steam.tscn" id="5_luv2b"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8flevrkelpvy" path="res://gui/credits/socials/instagram.tscn" id="5_yknhu"]
|
||||
[ext_resource type="FontFile" uid="uid://qt80w6o01q5s" path="res://gui/ressources/fonts/TitanOne-Regular.ttf" id="7_urbel"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_67c4d"]
|
||||
shader = ExtResource("1_yknhu")
|
||||
shader_parameter/strength = 3.3
|
||||
shader_parameter/mix_percentage = 0.3
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_5k6jv"]
|
||||
font = ExtResource("7_urbel")
|
||||
font_size = 20
|
||||
|
||||
[node name="Credits" type="CanvasLayer" unique_id=180964898]
|
||||
layer = 99
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=2001966466]
|
||||
material = SubResource("ShaderMaterial_67c4d")
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 648.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.0352941, 0.0196078, 0.12549, 0.705882)
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="." unique_id=1349934988]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("2_luv2b")
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="MarginContainer" unique_id=1426452837]
|
||||
layout_mode = 2
|
||||
columns = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/GridContainer" unique_id=1825004235]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme = ExtResource("2_luv2b")
|
||||
theme_override_constants/separation = 30
|
||||
alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=630290371]
|
||||
custom_minimum_size = Vector2(0, 120)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("3_urbel")
|
||||
expand_mode = 2
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=215880453]
|
||||
layout_mode = 2
|
||||
text = "THANKS_FOR_PLAYING"
|
||||
label_settings = ExtResource("4_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="SteamButton" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=1181450581 instance=ExtResource("5_luv2b")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InstagramButton" parent="MarginContainer/GridContainer/VBoxContainer" unique_id=68880754 instance=ExtResource("5_yknhu")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer/GridContainer" unique_id=105267250]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=357271576]
|
||||
layout_mode = 2
|
||||
text = "CREDITS"
|
||||
label_settings = ExtResource("4_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=1741103336]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine" unique_id=1394241322]
|
||||
layout_mode = 2
|
||||
text = "Zacharie Guet"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine" unique_id=655246864]
|
||||
layout_mode = 2
|
||||
text = "WRITING_DEV_AND_GAME_DESIGN"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine2" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=243217974]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine2" unique_id=37544606]
|
||||
layout_mode = 2
|
||||
text = "Niels Cauterman"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine2" unique_id=410189656]
|
||||
layout_mode = 2
|
||||
text = "MUSIC_SOUND_DESIGN_AND_WRITING"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine3" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=520097904]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine3" unique_id=1412859434]
|
||||
layout_mode = 2
|
||||
text = "Victor RJ"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine3" unique_id=1908527265]
|
||||
layout_mode = 2
|
||||
text = "DEV_AND_GAME_DESIGN"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine4" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=1682772698]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine4" unique_id=1820679506]
|
||||
layout_mode = 2
|
||||
text = "Eva"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine4" unique_id=557243140]
|
||||
layout_mode = 2
|
||||
text = "ART"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine5" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=393247738]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine5" unique_id=1144039651]
|
||||
layout_mode = 2
|
||||
text = "Ayou"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine5" unique_id=928167163]
|
||||
layout_mode = 2
|
||||
text = "ART"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine6" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=192767961]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine6" unique_id=172446453]
|
||||
layout_mode = 2
|
||||
text = "Camille Fleury"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine6" unique_id=1767743863]
|
||||
layout_mode = 2
|
||||
text = "ART_GAME_JAM"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine7" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=49528433]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine7" unique_id=1957597768]
|
||||
layout_mode = 2
|
||||
text = "Céline Ferrand"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine7" unique_id=1337866425]
|
||||
layout_mode = 2
|
||||
text = "ART_GAME_JAM"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine8" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=1511897993]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine8" unique_id=887290462]
|
||||
layout_mode = 2
|
||||
text = "Pauline Legrand"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine8" unique_id=1895717420]
|
||||
layout_mode = 2
|
||||
text = "COMMUNICATION"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine10" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=1089087276]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine10" unique_id=399643362]
|
||||
layout_mode = 2
|
||||
text = "Ny Andy"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine10" unique_id=1391495722]
|
||||
layout_mode = 2
|
||||
text = "SPLASH_ART"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CreditsLine9" type="HBoxContainer" parent="MarginContainer/GridContainer/VBoxContainer2" unique_id=2120828630]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Name" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine9" unique_id=1934495268]
|
||||
layout_mode = 2
|
||||
text = "Margot Freuchet"
|
||||
label_settings = SubResource("LabelSettings_5k6jv")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Role" type="Label" parent="MarginContainer/GridContainer/VBoxContainer2/CreditsLine9" unique_id=720118996]
|
||||
layout_mode = 2
|
||||
text = "TRAILER"
|
||||
horizontal_alignment = 1
|
||||
56
gui/credits/socials/instagram.tscn
Normal file
56
gui/credits/socials/instagram.tscn
Normal file
@@ -0,0 +1,56 @@
|
||||
[gd_scene format=3 uid="uid://c8flevrkelpvy"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="1_7wu13"]
|
||||
[ext_resource type="Texture2D" uid="uid://dh1jaup4y1f6q" path="res://common/icons/brand-instagram.svg" id="1_hjh5g"]
|
||||
[ext_resource type="Script" uid="uid://bkbcl77m28sfv" path="res://gui/credits/socials/scripts/link_button.gd" id="3_dux13"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4atk4"]
|
||||
bg_color = Color(0.88235295, 0.1882353, 0.42352942, 1)
|
||||
border_width_left = 6
|
||||
border_width_top = 6
|
||||
border_width_right = 6
|
||||
border_width_bottom = 6
|
||||
border_color = Color(0.88235295, 0.1882353, 0.42352942, 1)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0dh60"]
|
||||
bg_color = Color(0.7914644, 0.13576972, 0.36909348, 1)
|
||||
border_width_left = 6
|
||||
border_width_top = 6
|
||||
border_width_right = 6
|
||||
border_width_bottom = 6
|
||||
border_color = Color(0.88235295, 0.1882353, 0.42352942, 1)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_67c4d"]
|
||||
bg_color = Color(0.91568047, 0.28530613, 0.42895967, 1)
|
||||
border_width_left = 6
|
||||
border_width_top = 6
|
||||
border_width_right = 6
|
||||
border_width_bottom = 6
|
||||
border_color = Color(0.9137255, 0.28627452, 0.42745098, 1)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[node name="Button" type="Button" unique_id=927302743]
|
||||
offset_right = 352.0
|
||||
offset_bottom = 42.0
|
||||
size_flags_horizontal = 4
|
||||
theme = ExtResource("1_7wu13")
|
||||
theme_override_constants/icon_max_width = 30
|
||||
theme_override_font_sizes/font_size = 20
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_4atk4")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_0dh60")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_67c4d")
|
||||
text = "JOIN_OUR_INSTAGRAM"
|
||||
icon = ExtResource("1_hjh5g")
|
||||
script = ExtResource("3_dux13")
|
||||
link = "https://www.instagram.com/orchindie/"
|
||||
9
gui/credits/socials/scripts/link_button.gd
Normal file
9
gui/credits/socials/scripts/link_button.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
extends Button
|
||||
|
||||
@export var link="TODO"
|
||||
|
||||
func _ready():
|
||||
pressed.connect(
|
||||
func ():
|
||||
OS.shell_open(link)
|
||||
)
|
||||
1
gui/credits/socials/scripts/link_button.gd.uid
Normal file
1
gui/credits/socials/scripts/link_button.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bkbcl77m28sfv
|
||||
55
gui/credits/socials/steam.tscn
Normal file
55
gui/credits/socials/steam.tscn
Normal file
@@ -0,0 +1,55 @@
|
||||
[gd_scene format=3 uid="uid://bc3byq8e45ejj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cpkye7t28ragp" path="res://common/icons/brand-steam.svg" id="1_ar432"]
|
||||
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="1_emeyy"]
|
||||
[ext_resource type="Script" uid="uid://bkbcl77m28sfv" path="res://gui/credits/socials/scripts/link_button.gd" id="3_emeyy"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_urbel"]
|
||||
bg_color = Color(0.13865513, 0.18808982, 0.2387814, 1)
|
||||
border_width_left = 6
|
||||
border_width_top = 6
|
||||
border_width_right = 6
|
||||
border_width_bottom = 6
|
||||
border_color = Color(0.13725491, 0.1882353, 0.23921569, 1)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5k6jv"]
|
||||
bg_color = Color(0.10011824, 0.14153713, 0.18294647, 1)
|
||||
border_width_left = 6
|
||||
border_width_top = 6
|
||||
border_width_right = 6
|
||||
border_width_bottom = 6
|
||||
border_color = Color(0.13725491, 0.1882353, 0.23921569, 1)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kip8e"]
|
||||
bg_color = Color(0.18961376, 0.27468553, 0.30580562, 1)
|
||||
border_width_left = 6
|
||||
border_width_top = 6
|
||||
border_width_right = 6
|
||||
border_width_bottom = 6
|
||||
border_color = Color(0.1882353, 0.27450982, 0.30588236, 1)
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[node name="SteamButton" type="Button" unique_id=1181450581]
|
||||
offset_right = 447.0
|
||||
offset_bottom = 42.0
|
||||
size_flags_horizontal = 4
|
||||
theme = ExtResource("1_emeyy")
|
||||
theme_override_constants/icon_max_width = 30
|
||||
theme_override_font_sizes/font_size = 20
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_urbel")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxFlat_5k6jv")
|
||||
theme_override_styles/hover = SubResource("StyleBoxFlat_kip8e")
|
||||
text = "WHISHLIST_THE_GAME"
|
||||
icon = ExtResource("1_ar432")
|
||||
script = ExtResource("3_emeyy")
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://y0yu2gu5lgfd"]
|
||||
[gd_scene format=3 uid="uid://y0yu2gu5lgfd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bqdylb4maacf0" path="res://addons/dialogic/Modules/DefaultLayoutParts/Layer_FullBackground/full_background_layer.gd" id="1_tu40u"]
|
||||
[ext_resource type="Script" uid="uid://oxcjhq2817c7" path="res://addons/dialogic/Modules/Background/node_background_holder.gd" id="2_ghan2"]
|
||||
@@ -9,7 +9,7 @@ shader = ExtResource("2_v1ioh")
|
||||
shader_parameter/strength = 3.3
|
||||
shader_parameter/mix_percentage = 0.3
|
||||
|
||||
[node name="BackgroundLayer" type="Control"]
|
||||
[node name="BackgroundLayer" type="Control" unique_id=421215061]
|
||||
layout_direction = 2
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -19,7 +19,7 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_tu40u")
|
||||
|
||||
[node name="DialogicNode_BackgroundHolder_Blur" type="ColorRect" parent="."]
|
||||
[node name="DialogicNode_BackgroundHolder_Blur" type="ColorRect" parent="." unique_id=726280929]
|
||||
material = SubResource("ShaderMaterial_v1ioh")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://fnv0qhkh40mv"]
|
||||
[gd_scene format=3 uid="uid://fnv0qhkh40mv"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/hud.tres" id="1_0ssee"]
|
||||
[ext_resource type="Script" uid="uid://bvb4v66bqteuc" path="res://gui/game/announce/scripts/announce.gd" id="1_4evne"]
|
||||
@@ -104,7 +104,7 @@ _data = {
|
||||
&"pass": SubResource("Animation_871vo")
|
||||
}
|
||||
|
||||
[node name="Announce" type="Control"]
|
||||
[node name="Announce" type="Control" unique_id=509404832]
|
||||
visible = false
|
||||
clip_contents = true
|
||||
layout_mode = 3
|
||||
@@ -116,7 +116,7 @@ grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1_4evne")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1385456888]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
clip_contents = true
|
||||
layout_mode = 1
|
||||
@@ -132,14 +132,14 @@ mouse_filter = 2
|
||||
theme = ExtResource("1_0ssee")
|
||||
alignment = 1
|
||||
|
||||
[node name="AnnounceTitle" type="Label" parent="VBoxContainer"]
|
||||
[node name="AnnounceTitle" type="Label" parent="VBoxContainer" unique_id=2048669092]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "New Quota"
|
||||
label_settings = SubResource("LabelSettings_vbart")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="AnnounceTexture" type="TextureRect" parent="VBoxContainer"]
|
||||
[node name="AnnounceTexture" type="TextureRect" parent="VBoxContainer" unique_id=1523197516]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(0.886275, 0.623529, 0.196078, 1)
|
||||
layout_mode = 2
|
||||
@@ -148,15 +148,13 @@ texture = SubResource("GradientTexture2D_mnweq")
|
||||
expand_mode = 1
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="AnnounceText" type="Label" parent="VBoxContainer"]
|
||||
[node name="AnnounceText" type="Label" parent="VBoxContainer" unique_id=147253395]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "Decontaminate 50 unit in 10 days"
|
||||
label_settings = ExtResource("3_7nrno")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=357490739]
|
||||
unique_name_in_owner = true
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_dvva5")
|
||||
}
|
||||
libraries/ = SubResource("AnimationLibrary_dvva5")
|
||||
|
||||
@@ -5,11 +5,117 @@
|
||||
[ext_resource type="PackedScene" uid="uid://brfsapvj2quxm" path="res://gui/game/energy_info/energy_info.tscn" id="4_2wykm"]
|
||||
[ext_resource type="PackedScene" uid="uid://fnv0qhkh40mv" path="res://gui/game/announce/announce.tscn" id="4_h6540"]
|
||||
[ext_resource type="PackedScene" uid="uid://df0eop555wfj5" path="res://gui/game/objective_progress_bar/objective_progress_bar.tscn" id="6_dr1y2"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="6_h6540"]
|
||||
[ext_resource type="Texture2D" uid="uid://b43thuq8piv18" path="res://common/icons/skull.svg" id="7_dr1y2"]
|
||||
[ext_resource type="PackedScene" uid="uid://clicjf8ts51h8" path="res://gui/game/inventory_gui/inventory_gui.tscn" id="9_id0t5"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_id0t5"]
|
||||
interpolation_mode = 1
|
||||
offsets = PackedFloat32Array(0, 0.115169, 0.41573, 0.620786, 0.924157)
|
||||
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_j7f85"]
|
||||
gradient = SubResource("Gradient_id0t5")
|
||||
fill_to = Vector2(1, 1)
|
||||
repeat = 1
|
||||
|
||||
[sub_resource type="Animation" id="Animation_2wykm"]
|
||||
resource_name = "NoRechargeAppear"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("MarginContainer/GiveUpButton:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.03333333),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [false, true]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("MarginContainer/GiveUpButton:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("NoRechargeLeftBaneer:custom_minimum_size")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0, 0), Vector2(0, 50)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_id0t5"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("MarginContainer/GiveUpButton:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("MarginContainer/GiveUpButton:modulate")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("NoRechargeLeftBaneer:custom_minimum_size")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector2(0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ykapk"]
|
||||
_data = {
|
||||
&"NoRechargeAppear": SubResource("Animation_2wykm"),
|
||||
&"RESET": SubResource("Animation_id0t5")
|
||||
}
|
||||
|
||||
[node name="GameGui" type="CanvasLayer" unique_id=274698556]
|
||||
script = ExtResource("1_udau0")
|
||||
|
||||
[node name="NoRechargeLeftBaneer" type="TextureRect" parent="." unique_id=827897082]
|
||||
self_modulate = Color(1, 0.6509804, 0.09019608, 1)
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
texture = SubResource("GradientTexture2D_j7f85")
|
||||
expand_mode = 1
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="ScoreParticles" type="Control" parent="." unique_id=842190807]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 3
|
||||
@@ -41,16 +147,36 @@ mouse_filter = 2
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
mouse_filter = 2
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="ObjectiveProgressBar" parent="MarginContainer/VBoxContainer" unique_id=2043451865 instance=ExtResource("6_dr1y2")]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
progress = null
|
||||
|
||||
[node name="RechargesLeftLabel" type="Label" parent="MarginContainer/VBoxContainer" unique_id=1961035876]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "9 charges left"
|
||||
label_settings = ExtResource("6_h6540")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Inventory" parent="MarginContainer" unique_id=1407862321 instance=ExtResource("9_id0t5")]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 8
|
||||
|
||||
[node name="GiveUpButton" type="Button" parent="MarginContainer" unique_id=1128310884]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 8
|
||||
text = "GIVE_UP"
|
||||
icon = ExtResource("7_dr1y2")
|
||||
|
||||
[node name="NoRechargeAnimationPlayer" type="AnimationPlayer" parent="." unique_id=969107428]
|
||||
unique_name_in_owner = true
|
||||
libraries/ = SubResource("AnimationLibrary_ykapk")
|
||||
|
||||
44
gui/game/objective_progress_bar/gauge_3d.tscn
Normal file
44
gui/game/objective_progress_bar/gauge_3d.tscn
Normal file
@@ -0,0 +1,44 @@
|
||||
[gd_scene format=3 uid="uid://by45bbbnf0k13"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cbf2005eqe2aj" path="res://gui/game/objective_progress_bar/scripts/gauge_3d.gd" id="1_d3qsk"]
|
||||
[ext_resource type="PackedScene" uid="uid://cam5igcebfvsd" path="res://gui/game/objective_progress_bar/assets/3d/gauge.blend" id="2_74wpt"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_vk2vv"]
|
||||
colors = PackedColorArray(1, 0, 0.43137255, 1, 1, 0.6509804, 0.09019608, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_7sip7"]
|
||||
gradient = SubResource("Gradient_vk2vv")
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_d3qsk"]
|
||||
height = 4.8
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_74wpt"]
|
||||
offsets = PackedFloat32Array(0, 0.38308457, 1)
|
||||
colors = PackedColorArray(1, 0.6509804, 0.09019608, 1, 1, 0.40159988, 0.22089553, 1, 1, 0, 0.43137255, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_figjt"]
|
||||
gradient = SubResource("Gradient_74wpt")
|
||||
fill_to = Vector2(0, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fjj83"]
|
||||
shading_mode = 0
|
||||
albedo_texture = SubResource("GradientTexture2D_figjt")
|
||||
|
||||
[node name="Gauge3D" type="Node3D" unique_id=232507348]
|
||||
script = ExtResource("1_d3qsk")
|
||||
progress = 1.675
|
||||
|
||||
[node name="Model" parent="." unique_id=1195456570 instance=ExtResource("2_74wpt")]
|
||||
|
||||
[node name="ProgressBar" type="Sprite3D" parent="." unique_id=159202262]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-1.13321775e-07, 0, 0.989, 0, 200, 0, -2.5925, 0, -4.3230564e-08, 0.27917147, -1.0458755, 5.3935585)
|
||||
visible = false
|
||||
centered = false
|
||||
texture = SubResource("GradientTexture1D_7sip7")
|
||||
|
||||
[node name="ProgressBar3D" type="MeshInstance3D" parent="." unique_id=1654530777]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(2, 0, 0, 0, -8.742278e-08, 2, 0, -2, -8.742278e-08, -0.14886618, 0, 0)
|
||||
mesh = SubResource("CylinderMesh_d3qsk")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_fjj83")
|
||||
@@ -4,8 +4,8 @@
|
||||
[ext_resource type="Script" uid="uid://brqgqwh5uwksh" path="res://gui/game/objective_progress_bar/scripts/objective_progress_bar.gd" id="1_wl86c"]
|
||||
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="2_vk2vv"]
|
||||
[ext_resource type="Environment" uid="uid://bxyp24f85p0xf" path="res://gui/game/assets/gui_3d_environment.tres" id="2_wl86c"]
|
||||
[ext_resource type="PackedScene" uid="uid://cam5igcebfvsd" path="res://gui/game/objective_progress_bar/assets/3d/gauge.blend" id="3_3aubw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bt3g5bmar0icf" path="res://common/icons/growth.svg" id="3_7sip7"]
|
||||
[ext_resource type="PackedScene" uid="uid://by45bbbnf0k13" path="res://gui/game/objective_progress_bar/gauge_3d.tscn" id="6_vk2vv"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_3aubw"]
|
||||
viewport_path = NodePath("ProgressBarViewPort")
|
||||
@@ -13,12 +13,6 @@ viewport_path = NodePath("ProgressBarViewPort")
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_vk2vv"]
|
||||
size = Vector2(2, 2)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_vk2vv"]
|
||||
colors = PackedColorArray(1, 0, 0.43137255, 1, 1, 0.6509804, 0.09019608, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_7sip7"]
|
||||
gradient = SubResource("Gradient_vk2vv")
|
||||
|
||||
[node name="ObjectiveProgressBar" type="MarginContainer" unique_id=2043451865]
|
||||
offset_right = 300.0
|
||||
offset_bottom = 75.0
|
||||
@@ -29,7 +23,7 @@ theme_override_constants/margin_top = 0
|
||||
theme_override_constants/margin_right = 0
|
||||
theme_override_constants/margin_bottom = 0
|
||||
script = ExtResource("1_wl86c")
|
||||
progress = 0.815
|
||||
progress = -1.35
|
||||
text = "0/5"
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="." unique_id=1998625871]
|
||||
@@ -65,7 +59,6 @@ expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="ProgressBarViewPort" type="SubViewport" parent="." unique_id=459282221]
|
||||
own_world_3d = true
|
||||
transparent_bg = true
|
||||
size = Vector2i(479, 117)
|
||||
|
||||
@@ -83,10 +76,6 @@ surface_material_override/0 = ExtResource("1_j2f28")
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="ProgressBarViewPort" unique_id=1743124302]
|
||||
environment = ExtResource("2_wl86c")
|
||||
|
||||
[node name="gauge" parent="ProgressBarViewPort" unique_id=1465667654 instance=ExtResource("3_3aubw")]
|
||||
|
||||
[node name="ProgressBar" type="Sprite3D" parent="ProgressBarViewPort" unique_id=1289085425]
|
||||
[node name="Gauge3D" parent="ProgressBarViewPort" unique_id=232507348 instance=ExtResource("6_vk2vv")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-1.5140532e-07, 0, 0.989, 0, 200, 0, -3.46375, 0, -4.3230564e-08, 0.27917147, -1.0458755, 5.3935585)
|
||||
centered = false
|
||||
texture = SubResource("GradientTexture1D_7sip7")
|
||||
progress = -1.35
|
||||
|
||||
22
gui/game/objective_progress_bar/scripts/gauge_3d.gd
Normal file
22
gui/game/objective_progress_bar/scripts/gauge_3d.gd
Normal file
@@ -0,0 +1,22 @@
|
||||
@tool
|
||||
extends Node3D
|
||||
class_name Gauge3D
|
||||
|
||||
const MAX_PROGRESS_BAR_SCALE = 4.25
|
||||
const CYLINDER_HEIGHT = 4.8
|
||||
|
||||
@export var progress := 0. : set = set_progress
|
||||
|
||||
func _ready():
|
||||
if progress != null:
|
||||
%ProgressBar.scale.x = progress * MAX_PROGRESS_BAR_SCALE
|
||||
|
||||
|
||||
func set_progress(_progress : float):
|
||||
progress = _progress
|
||||
if is_node_ready() and progress != null:
|
||||
var capped_progress = max(0.,min(1., progress))
|
||||
%ProgressBar3D.scale.y = capped_progress * %ProgressBar3D.scale.x
|
||||
var bar_length = CYLINDER_HEIGHT
|
||||
%ProgressBar3D.position.z = - bar_length * capped_progress + bar_length
|
||||
# %ProgressBar.scale.x = max(0.,min(1., progress)) * MAX_PROGRESS_BAR_SCALE
|
||||
1
gui/game/objective_progress_bar/scripts/gauge_3d.gd.uid
Normal file
1
gui/game/objective_progress_bar/scripts/gauge_3d.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cbf2005eqe2aj
|
||||
@@ -1,11 +1,12 @@
|
||||
@tool
|
||||
extends MarginContainer
|
||||
class_name ObjectivProgressBar
|
||||
class_name ObjectiveProgressBar
|
||||
|
||||
const MAX_PROGRESS_BAR_SCALE = 4.25
|
||||
const PROGRESS_BAR_WEIGHT = 0.1
|
||||
|
||||
@export var progress := 0. : set = set_progress
|
||||
@export var progress := 0. :
|
||||
set(v):
|
||||
progress = v
|
||||
if is_node_ready():
|
||||
%Gauge3D.progress = v
|
||||
@export var text := "" :
|
||||
set(v):
|
||||
text = v
|
||||
@@ -13,12 +14,5 @@ const PROGRESS_BAR_WEIGHT = 0.1
|
||||
%ProgressText.text = v
|
||||
|
||||
func _ready():
|
||||
if progress != null:
|
||||
%ProgressBar.scale.x = progress * MAX_PROGRESS_BAR_SCALE
|
||||
%ProgressText.text = text
|
||||
|
||||
|
||||
func set_progress(_progress : float):
|
||||
progress = _progress
|
||||
if is_node_ready() and progress != null:
|
||||
%ProgressBar.scale.x = min(1., progress) * MAX_PROGRESS_BAR_SCALE
|
||||
%Gauge3D.progress = progress
|
||||
|
||||
@@ -19,6 +19,7 @@ func _ready():
|
||||
charge_update(GameInfo.game_data.current_region_data)
|
||||
player_update(GameInfo.game_data.player_data, false)
|
||||
%EnergyInfo.reset_size()
|
||||
%GiveUpButton.pressed.connect(_on_give_up_pressed)
|
||||
|
||||
func _on_player_updated(player_data : PlayerData):
|
||||
player_update(player_data)
|
||||
@@ -33,9 +34,18 @@ func player_update(player_data : PlayerData, with_animation = true):
|
||||
func _on_region_updated(region_data : RegionData):
|
||||
charge_update(region_data)
|
||||
|
||||
func charge_update(_region_data : RegionData):
|
||||
pass
|
||||
# %ChargeCount.text = tr("%d_CHARGE_LEFT") % (region_data.charges)
|
||||
func _on_give_up_pressed():
|
||||
GameInfo.game_data.give_up()
|
||||
SceneManager.change_to_scene_id('ASTRA')
|
||||
|
||||
func charge_update(region_data : RegionData):
|
||||
%RechargesLeftLabel.text = tr("%d_CHARGE_LEFT") % (region_data.charges)
|
||||
if region_data.charges == 0 and region_data.state != RegionData.State.SUCCEEDED:
|
||||
if not %GiveUpButton.visible:
|
||||
%NoRechargeAnimationPlayer.play("NoRechargeAppear")
|
||||
else :
|
||||
if %GiveUpButton.visible:
|
||||
%NoRechargeAnimationPlayer.play_backward("NoRechargeAppear")
|
||||
|
||||
func score_update(with_animation = true):
|
||||
var objective_progression : float
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://cixd5j8yqpavg" path="res://common/icons/settings.svg" id="6_yj6f1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkwhrq4sp5dcp" path="res://common/icons/device-gamepad.svg" id="7_7c7ks"]
|
||||
[ext_resource type="Texture2D" uid="uid://dex283rx00fjb" path="res://common/icons/logout.svg" id="7_yj6f1"]
|
||||
[ext_resource type="Texture2D" uid="uid://b43thuq8piv18" path="res://common/icons/skull.svg" id="8_mnkqy"]
|
||||
[ext_resource type="Theme" uid="uid://5au2k3vf2po3" path="res://gui/ressources/menu.tres" id="9_7c7ks"]
|
||||
[ext_resource type="Texture2D" uid="uid://bku47nx7clom4" path="res://gui/pause/assets/textures/card_tutorial_image.png" id="9_sepn1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bgcymkgxk7mpp" path="res://gui/pause/assets/textures/moss_tutorial_image.png" id="11_mnkqy"]
|
||||
@@ -160,6 +161,12 @@ layout_mode = 2
|
||||
text = "CONTROLS"
|
||||
icon = ExtResource("7_7c7ks")
|
||||
|
||||
[node name="GiveUp" type="Button" parent="Container/MarginContainer/GridContainer/Pause/HBoxContainer" unique_id=1100620343]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "GIVE_UP"
|
||||
icon = ExtResource("8_mnkqy")
|
||||
|
||||
[node name="Quit" type="Button" parent="Container/MarginContainer/GridContainer/Pause/HBoxContainer" unique_id=1740895928]
|
||||
layout_mode = 2
|
||||
text = "QUIT"
|
||||
@@ -286,10 +293,12 @@ vertical_alignment = 1
|
||||
|
||||
[node name="Settings" parent="." unique_id=758381952 instance=ExtResource("4_58dya")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Controls" parent="." unique_id=358658336 instance=ExtResource("11_urlqn")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1779993260]
|
||||
@@ -299,4 +308,5 @@ libraries/ = SubResource("AnimationLibrary_yj6f1")
|
||||
[connection signal="pressed" from="Container/MarginContainer/GridContainer/Pause/HBoxContainer/Resume" to="." method="_on_resume_pressed"]
|
||||
[connection signal="pressed" from="Container/MarginContainer/GridContainer/Pause/HBoxContainer/Settings" to="." method="_on_settings_pressed"]
|
||||
[connection signal="pressed" from="Container/MarginContainer/GridContainer/Pause/HBoxContainer/Controls" to="." method="_on_controls_pressed"]
|
||||
[connection signal="pressed" from="Container/MarginContainer/GridContainer/Pause/HBoxContainer/GiveUp" to="." method="_on_give_up_pressed"]
|
||||
[connection signal="pressed" from="Container/MarginContainer/GridContainer/Pause/HBoxContainer/Quit" to="." method="_on_quit_pressed"]
|
||||
|
||||
@@ -20,6 +20,9 @@ func set_pause(p):
|
||||
elif SceneManager.actual_scene.mouse_captured:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
|
||||
|
||||
if p:
|
||||
%GiveUp.visible = GameInfo.game_data and GameInfo.game_data.current_region_data
|
||||
|
||||
if not p:
|
||||
GameInfo.save_settings()
|
||||
|
||||
@@ -41,3 +44,8 @@ func _on_settings_pressed():
|
||||
|
||||
func _on_controls_pressed():
|
||||
%Controls.open_controls()
|
||||
|
||||
func _on_give_up_pressed():
|
||||
if GameInfo.game_data:
|
||||
SceneManager.change_to_scene_id('ASTRA')
|
||||
GameInfo.game_data.give_up()
|
||||
|
||||
Reference in New Issue
Block a user