Final Game Jam version
This commit is contained in:
parent
35ce267482
commit
104a1e4297
141 changed files with 4485 additions and 206 deletions
|
|
@ -3,11 +3,14 @@ class_name Card extends CenterContainer
|
|||
@onready var itemButton = $ItemButton
|
||||
@onready var ItemAmountLabel = $ItemButton/ItemAmountLabel
|
||||
|
||||
@onready var selectAduio = $selectAduio
|
||||
|
||||
@export var itemType: GLOBALS.ITEMTYPES = GLOBALS.ITEMTYPES.STANDARDBULLET
|
||||
|
||||
signal selected(_itemType: GLOBALS.ITEMTYPES)
|
||||
|
||||
func _on_item_button_pressed() -> void:
|
||||
selectAduio.play()
|
||||
selected.emit(itemType)
|
||||
|
||||
func setAmount(amount: int) -> void:
|
||||
|
|
|
|||
|
|
@ -1,13 +1,21 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bc84ynsnwc1ew"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://bc84ynsnwc1ew"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bprr1g5mf44sm" path="res://assets/cards/cardPlaceholder.png" id="1_fobdo"]
|
||||
[ext_resource type="Script" uid="uid://culacsksqcquo" path="res://scenes/camera/UI/card.gd" id="1_wa0td"]
|
||||
[ext_resource type="StyleBox" uid="uid://dxbfig6arg06u" path="res://scenes/camera/UI/card_pressed.tres" id="2_q4ux5"]
|
||||
[ext_resource type="Texture2D" uid="uid://b14mvkqw7armg" path="res://assets/cards/cardPlaceholder_disabled.png" id="2_rvjyk"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmnnfrkp1h5s0" path="res://assets/cards/bullet.png" id="2_wa0td"]
|
||||
[ext_resource type="StyleBox" uid="uid://b6j501unrtcd2" path="res://scenes/camera/UI/card_normal.tres" id="3_q4ux5"]
|
||||
[ext_resource type="FontFile" uid="uid://bl6jbonkrdy03" path="res://assets/font/minecraft-font/MinecraftBold-nMK1.otf" id="4_24237"]
|
||||
[ext_resource type="AudioStream" uid="uid://y6unwb25tb7y" path="res://assets/audio/select3.wav" id="7_xfrgu"]
|
||||
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_qr7cc"]
|
||||
texture = ExtResource("1_fobdo")
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_rvjyk"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_6m2n3"]
|
||||
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_xfrgu"]
|
||||
texture = ExtResource("2_rvjyk")
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_q4ux5"]
|
||||
font = ExtResource("4_24237")
|
||||
font_size = 30
|
||||
font_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="Card" type="CenterContainer"]
|
||||
|
|
@ -16,7 +24,11 @@ script = ExtResource("1_wa0td")
|
|||
[node name="ItemButton" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
tooltip_auto_translate_mode = 1
|
||||
theme_override_styles/normal = SubResource("StyleBoxTexture_qr7cc")
|
||||
theme_override_styles/focus = SubResource("StyleBoxTexture_rvjyk")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxTexture_xfrgu")
|
||||
theme_override_styles/hover = ExtResource("3_q4ux5")
|
||||
theme_override_styles/pressed = ExtResource("2_q4ux5")
|
||||
theme_override_styles/normal = ExtResource("3_q4ux5")
|
||||
icon = ExtResource("2_wa0td")
|
||||
|
||||
[node name="ItemAmountLabel" type="Label" parent="ItemButton"]
|
||||
|
|
@ -27,13 +39,16 @@ anchor_top = 1.0
|
|||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -48.0
|
||||
offset_top = -30.0
|
||||
offset_right = -8.0
|
||||
offset_bottom = -7.0
|
||||
offset_top = -52.0
|
||||
offset_right = -27.0
|
||||
offset_bottom = -22.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "1"
|
||||
label_settings = SubResource("LabelSettings_6m2n3")
|
||||
label_settings = SubResource("LabelSettings_q4ux5")
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="selectAduio" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("7_xfrgu")
|
||||
|
||||
[connection signal="pressed" from="ItemButton" to="." method="_on_item_button_pressed"]
|
||||
|
|
|
|||
6
scenes/camera/UI/card_normal.tres
Normal file
6
scenes/camera/UI/card_normal.tres
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://b6j501unrtcd2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bprr1g5mf44sm" path="res://assets/cards/cardPlaceholder.png" id="1_iajbi"]
|
||||
|
||||
[resource]
|
||||
texture = ExtResource("1_iajbi")
|
||||
6
scenes/camera/UI/card_pressed.tres
Normal file
6
scenes/camera/UI/card_pressed.tres
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://dxbfig6arg06u"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cdmythlpvrcg5" path="res://assets/cards/cardPlaceholder_pressed.png" id="1_k2bfy"]
|
||||
|
||||
[resource]
|
||||
texture = ExtResource("1_k2bfy")
|
||||
Loading…
Add table
Add a link
Reference in a new issue