some ui improvements
This commit is contained in:
@ -5,11 +5,11 @@
|
||||
[ext_resource type="Resource" uid="uid://deer0awg4d18o" path="res://PCs/Universal/ClassCards/Assault/card_assault.tres" id="2_3yr5a"]
|
||||
[ext_resource type="Resource" uid="uid://ckm88acryitl4" path="res://PCs/Universal/ClassCards/Sniper/card_sniper.tres" id="3_wyb0n"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvaif1sfn1ej4" path="res://PCs/Blue/blue_hand.png" id="4_srskc"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnedls3i4gso" path="res://PCs/Blue/blue.png" id="5_qucwv"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvybr3fwnw46p" path="res://Assets/Textures/yeen.png" id="6_jda20"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_aeu85")
|
||||
hero_name = "Blue"
|
||||
texture = ExtResource("5_qucwv")
|
||||
hero_name = "Mage"
|
||||
texture = ExtResource("6_jda20")
|
||||
hand_texture = ExtResource("4_srskc")
|
||||
deck = Array[Resource("res://Scripts/Resources/card.gd")]([ExtResource("1_uvyoy"), ExtResource("2_3yr5a"), ExtResource("3_wyb0n"), ExtResource("2_3yr5a")])
|
||||
|
@ -5,11 +5,11 @@
|
||||
[ext_resource type="Resource" uid="uid://ckm88acryitl4" path="res://PCs/Universal/ClassCards/Sniper/card_sniper.tres" id="2_hkiwr"]
|
||||
[ext_resource type="Resource" uid="uid://b37r54q84vqoi" path="res://PCs/Universal/ClassCards/RocketLauncher/card_rocket_launcher.tres" id="3_ruhqi"]
|
||||
[ext_resource type="Texture2D" uid="uid://ctkixdue3o7ec" path="res://PCs/Red/red_hand.png" id="4_wnhdj"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjqxkraykhxxk" path="res://PCs/Red/red.png" id="5_raux1"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4jd718brpsed" path="res://Assets/Textures/doe.png" id="6_btlgg"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_1wkap")
|
||||
hero_name = "Red"
|
||||
texture = ExtResource("5_raux1")
|
||||
hero_name = "Militant"
|
||||
texture = ExtResource("6_btlgg")
|
||||
hand_texture = ExtResource("4_wnhdj")
|
||||
deck = Array[Resource("res://Scripts/Resources/card.gd")]([ExtResource("2_hkiwr"), ExtResource("3_ruhqi"), ExtResource("1_iiksa"), ExtResource("1_iiksa")])
|
||||
|
@ -111,9 +111,7 @@ func _process(delta: float) -> void:
|
||||
button.press()
|
||||
currency -= button.press_cost
|
||||
if interaction_raycast.get_collider() is ItemCard:
|
||||
var pickup = interaction_raycast.get_collider().pick_up()
|
||||
inventory.add(pickup)
|
||||
hud.pickup(pickup)
|
||||
add_card(interaction_raycast.get_collider().pick_up())
|
||||
if Input.is_action_just_pressed("Equip In Gauntlet"):
|
||||
equip_weapon()
|
||||
if Input.is_action_just_pressed("Secondary Fire"):
|
||||
@ -200,6 +198,7 @@ func enter_editing_mode(value):
|
||||
hud.set_wave_count(value + 1)
|
||||
hud.set_energy_visible(false)
|
||||
hud.set_offhand_energy_visible(false)
|
||||
hud.grow_wave_start_label()
|
||||
editing_mode = true
|
||||
edit_tool.enabled = true
|
||||
left_hand.set_visible(true)
|
||||
@ -212,6 +211,7 @@ func exit_editing_mode(value):
|
||||
gauntlet_sprite.set_visible(false)
|
||||
weapons_active = false
|
||||
hud.set_wave_count(value)
|
||||
hud.shrink_wave_start_label()
|
||||
if !weapon and offhand_weapon:
|
||||
swap_weapons()
|
||||
if weapon:
|
||||
|
@ -286,7 +286,7 @@ head = NodePath("../ViewMovement")
|
||||
max_look_down_angle = 80.0
|
||||
max_look_up_angle = 80.0
|
||||
|
||||
[node name="HUD" type="CanvasLayer" parent="." node_paths=PackedStringArray("wave_count", "lives_count", "currency_count", "minimap_outline", "crosshair", "minimap", "minimap_cam", "minimap_viewport", "fps_label", "hover_text", "enemy_sprites", "enemy_counts", "weapon_energy_bar", "offhand_energy_bar")]
|
||||
[node name="HUD" type="CanvasLayer" parent="." node_paths=PackedStringArray("wave_count", "lives_count", "currency_count", "minimap_outline", "crosshair", "minimap", "minimap_cam", "minimap_viewport", "fps_label", "hover_text", "enemy_sprites", "enemy_counts", "weapon_energy_bar", "offhand_energy_bar", "wave_start_label")]
|
||||
script = ExtResource("8_yl6ka")
|
||||
wave_count = NodePath("WaveCount")
|
||||
lives_count = NodePath("LivesCount")
|
||||
@ -303,6 +303,7 @@ enemy_counts = [NodePath("EnemyTracker/TextureRect/Label"), NodePath("EnemyTrack
|
||||
weapon_energy_bar = NodePath("PrimaryEnergyBar")
|
||||
offhand_energy_bar = NodePath("OffhandEnergyBar")
|
||||
pickup_notif_scene = ExtResource("17_oyeww")
|
||||
wave_start_label = NodePath("Label")
|
||||
|
||||
[node name="FirstPersonCam" type="TextureRect" parent="HUD"]
|
||||
anchors_preset = 15
|
||||
@ -608,6 +609,20 @@ offset_bottom = -40.0
|
||||
grow_vertical = 0
|
||||
alignment = 2
|
||||
|
||||
[node name="Label" type="Label" parent="HUD"]
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -300.0
|
||||
offset_top = 110.0
|
||||
offset_right = 300.0
|
||||
offset_bottom = 160.0
|
||||
grow_horizontal = 2
|
||||
text = "Press [Button] to start wave"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
clip_text = true
|
||||
|
||||
[node name="WeaponSwapTimer" type="Timer" parent="."]
|
||||
wait_time = 0.9
|
||||
one_shot = true
|
||||
|
Reference in New Issue
Block a user