major rework on pickups, hud now shows the number and icon of pickup
This commit is contained in:
46
assets/pickup_item_indicator.tscn
Normal file
46
assets/pickup_item_indicator.tscn
Normal file
@@ -0,0 +1,46 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://x3uwmwbobkoy"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/pickup_item_indicator.gd" id="1_3ji4d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmnhd40dvn3l3" path="res://assets/Textures/ObjectTextures/rocket.png" id="1_xksdo"]
|
||||
[ext_resource type="Theme" uid="uid://buma708jpxqrn" path="res://Clean_theme.tres" id="3_etc64"]
|
||||
|
||||
[node name="PickupItemIndicator" type="Control"]
|
||||
z_index = -1
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 250.0
|
||||
offset_bottom = 250.0
|
||||
script = ExtResource("1_3ji4d")
|
||||
|
||||
[node name="image" type="TextureRect" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = -226.0
|
||||
offset_top = -131.0
|
||||
offset_right = 286.0
|
||||
offset_bottom = 381.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture = ExtResource("1_xksdo")
|
||||
|
||||
[node name="Label" type="Label" parent="image"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -100.0
|
||||
offset_top = -42.0
|
||||
offset_right = 86.0
|
||||
offset_bottom = 63.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
theme = ExtResource("3_etc64")
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 19
|
||||
theme_override_font_sizes/font_size = 100
|
||||
text = "999"
|
||||
horizontal_alignment = 1
|
||||
Reference in New Issue
Block a user