added Graphics and sound Effects and more overhauls

This commit is contained in:
Exobyt 2025-08-03 20:56:32 +02:00
parent c887a2168c
commit b9d4288900
214 changed files with 3378 additions and 198 deletions

View file

@ -0,0 +1,17 @@
class_name Choice extends MarginContainer
@onready var nameLabel = $VBoxContainer/nameLabel
@onready var description = $VBoxContainer/description
var option: int
signal selected(_option: int)
func setValues(_text: String, _description: String, _option: int) -> void:
nameLabel.text = _text
description.text = _description
option = _option
func _on_button_pressed() -> void:
get_tree().paused = false
selected.emit(option)

View file

@ -0,0 +1 @@
uid://dcgxmxoarxn0v

View file

@ -0,0 +1,40 @@
[gd_scene load_steps=2 format=3 uid="uid://cr7q4nm5daxmt"]
[ext_resource type="Script" uid="uid://dcgxmxoarxn0v" path="res://scenes/upgradeChooser/choice/choice.gd" id="1_ovap3"]
[node name="choice" type="MarginContainer"]
process_mode = 3
anchors_preset = -1
anchor_right = 0.0659583
anchor_bottom = 0.177963
offset_right = 1.35999
offset_bottom = -0.200005
size_flags_horizontal = 3
script = ExtResource("1_ovap3")
metadata/_edit_use_anchors_ = true
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
alignment = 1
[node name="nameLabel" type="Label" parent="VBoxContainer"]
layout_mode = 2
text = "test"
[node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
layout_mode = 2
[node name="description" type="RichTextLabel" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
text = "test"
fit_content = true
[node name="HSeparator2" type="HSeparator" parent="VBoxContainer"]
layout_mode = 2
[node name="Button" type="Button" parent="VBoxContainer"]
layout_mode = 2
text = "Select"
[connection signal="pressed" from="VBoxContainer/Button" to="." method="_on_button_pressed"]