1- [gd_scene load_steps =19 format =2 ]
1+ [gd_scene load_steps =21 format =2 ]
22
33[ext_resource path ="res://Player.tscn" type ="PackedScene" id =1 ]
44[ext_resource path ="res://EditorTileset.tres" type ="TileSet" id =2 ]
99[ext_resource path ="res://Minimap.gd" type ="Script" id =7 ]
1010[ext_resource path ="res://Sprites/Spells/Empty.png" type ="Texture" id =8 ]
1111[ext_resource path ="res://WandRenderRect.tscn" type ="PackedScene" id =9 ]
12+ [ext_resource path ="res://Sprites/Items/Scraps.png" type ="Texture" id =10 ]
1213
1314[sub_resource type ="StyleBoxFlat" id =1 ]
1415content_margin_top = 3.0
@@ -26,7 +27,10 @@ corner_radius_bottom_left = 2
2627size = 12
2728font_data = ExtResource ( 5 )
2829
29- [sub_resource type ="StyleBoxFlat" id =3 ]
30+ [sub_resource type ="DynamicFont" id =3 ]
31+ font_data = ExtResource ( 5 )
32+
33+ [sub_resource type ="StyleBoxFlat" id =4 ]
3034content_margin_left = 5.0
3135content_margin_right = 5.0
3236content_margin_top = 5.0
@@ -41,17 +45,17 @@ corner_radius_bottom_right = 10
4145corner_radius_bottom_left = 5
4246anti_aliasing = false
4347
44- [sub_resource type ="DynamicFont" id =4 ]
48+ [sub_resource type ="DynamicFont" id =5 ]
4549size = 12
4650use_mipmaps = true
4751font_data = ExtResource ( 5 )
4852
49- [sub_resource type ="DynamicFont" id =5 ]
53+ [sub_resource type ="DynamicFont" id =6 ]
5054size = 10
5155use_mipmaps = true
5256font_data = ExtResource ( 5 )
5357
54- [sub_resource type ="StyleBoxFlat" id =6 ]
58+ [sub_resource type ="StyleBoxFlat" id =7 ]
5559content_margin_left = 5.0
5660content_margin_right = 5.0
5761content_margin_top = 5.0
@@ -66,14 +70,14 @@ corner_radius_bottom_right = 5
6670corner_radius_bottom_left = 2
6771anti_aliasing = false
6872
69- [sub_resource type ="StyleBoxFlat" id =7 ]
73+ [sub_resource type ="StyleBoxFlat" id =8 ]
7074bg_color = Color ( 0 , 0 , 0 , 1 )
7175
72- [sub_resource type ="DynamicFont" id =8 ]
76+ [sub_resource type ="DynamicFont" id =9 ]
7377use_mipmaps = true
7478font_data = ExtResource ( 5 )
7579
76- [sub_resource type ="DynamicFont" id =9 ]
80+ [sub_resource type ="DynamicFont" id =10 ]
7781size = 11
7882use_mipmaps = true
7983font_data = ExtResource ( 5 )
@@ -288,13 +292,36 @@ visible = false
288292margin_top = -16.0
289293margin_bottom = -225.0
290294
295+ [node name ="Scraps" type ="TextureRect" parent ="HUD/HUD" ]
296+ anchor_top = 1.0
297+ anchor_bottom = 1.0
298+ margin_left = 2.0
299+ margin_top = -19.0
300+ margin_right = 18.0
301+ margin_bottom = -3.0
302+ texture = ExtResource ( 10 )
303+ __meta__ = {
304+ "_edit_use_anchors_" : false
305+ }
306+
307+ [node name ="Amount" type ="Label" parent ="HUD/HUD/Scraps" ]
308+ margin_left = 19.0
309+ margin_top = 1.0
310+ margin_right = 53.0
311+ margin_bottom = 17.0
312+ custom_fonts/font = SubResource ( 3 )
313+ text = "2"
314+ __meta__ = {
315+ "_edit_use_anchors_" : false
316+ }
317+
291318[node name ="Description" type ="Panel" parent ="HUD/HUD" ]
292319margin_left = 40.0
293320margin_top = 40.0
294321margin_right = 184.0
295322margin_bottom = 104.0
296323size_flags_horizontal = 5
297- custom_styles/panel = SubResource ( 3 )
324+ custom_styles/panel = SubResource ( 4 )
298325__meta__ = {
299326"_edit_use_anchors_" : false
300327}
@@ -305,7 +332,7 @@ margin_top = 8.0
305332margin_right = 136.0
306333margin_bottom = 20.0
307334size_flags_horizontal = 5
308- custom_fonts/font = SubResource ( 4 )
335+ custom_fonts/font = SubResource ( 5 )
309336text = "Name"
310337autowrap = true
311338
@@ -315,7 +342,7 @@ margin_top = 18.0
315342margin_right = 136.0
316343margin_bottom = 30.0
317344size_flags_horizontal = 5
318- custom_fonts/font = SubResource ( 5 )
345+ custom_fonts/font = SubResource ( 6 )
319346text = "Information"
320347autowrap = true
321348__meta__ = {
@@ -328,8 +355,8 @@ margin_top = 40.0
328355margin_right = 71.0
329356margin_bottom = 59.0
330357size_flags_horizontal = 5
331- custom_styles/normal = SubResource ( 6 )
332- custom_fonts/font = SubResource ( 4 )
358+ custom_styles/normal = SubResource ( 7 )
359+ custom_fonts/font = SubResource ( 5 )
333360text = "Name"
334361__meta__ = {
335362"_edit_use_anchors_" : false
@@ -339,7 +366,7 @@ __meta__ = {
339366modulate = Color ( 1 , 1 , 1 , 0 )
340367anchor_right = 1.0
341368anchor_bottom = 1.0
342- custom_styles/panel = SubResource ( 7 )
369+ custom_styles/panel = SubResource ( 8 )
343370__meta__ = {
344371"_edit_use_anchors_" : false
345372}
@@ -353,7 +380,7 @@ margin_left = -56.0
353380margin_top = -158.0
354381margin_right = 56.0
355382margin_bottom = -142.0
356- custom_fonts/font = SubResource ( 8 )
383+ custom_fonts/font = SubResource ( 9 )
357384text = "You Are Dead"
358385align = 1
359386__meta__ = {
@@ -369,7 +396,7 @@ margin_left = -132.0
369396margin_top = -48.0
370397margin_right = 132.0
371398margin_bottom = 48.0
372- custom_fonts/font = SubResource ( 9 )
399+ custom_fonts/font = SubResource ( 10 )
373400text = "Cause of Death:
374401Run Length:
375402
@@ -384,7 +411,7 @@ __meta__ = {
384411[node name ="Generating" type ="Panel" parent ="HUD/HUD" ]
385412anchor_right = 1.0
386413anchor_bottom = 1.0
387- custom_styles/panel = SubResource ( 7 )
414+ custom_styles/panel = SubResource ( 8 )
388415__meta__ = {
389416"_edit_use_anchors_" : false
390417}
@@ -398,7 +425,7 @@ margin_left = -56.0
398425margin_top = -30.0
399426margin_right = 56.0
400427margin_bottom = -14.0
401- custom_fonts/font = SubResource ( 8 )
428+ custom_fonts/font = SubResource ( 9 )
402429text = "Generating World"
403430align = 1
404431__meta__ = {
@@ -414,7 +441,7 @@ margin_left = -132.0
414441margin_top = -48.0
415442margin_right = 132.0
416443margin_bottom = 48.0
417- custom_fonts/font = SubResource ( 9 )
444+ custom_fonts/font = SubResource ( 10 )
418445text = "Avoid breaking your knees by not falling long distances"
419446align = 1
420447valign = 1
@@ -450,5 +477,5 @@ drag_margin_top = 0.4
450477drag_margin_bottom = 0.4
451478
452479[connection signal ="player_died" from ="Player" to ="HUD" method ="_on_player_died" ]
453- [connection signal ="generated_world" from ="World" to ="Player" method ="_on_generated_world" ]
454480[connection signal ="generated_world" from ="World" to ="HUD" method ="_on_generated_world" ]
481+ [connection signal ="generated_world" from ="World" to ="Player" method ="_on_generated_world" ]
0 commit comments