added notification for picking up card
This commit is contained in:
45
Scenes/UI/pickup_notification.tscn
Normal file
45
Scenes/UI/pickup_notification.tscn
Normal file
@ -0,0 +1,45 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://chnj376d3lcjd"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/pickup_notification.gd" id="1_cgy5u"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cdnv4"]
|
||||
resource_local_to_scene = true
|
||||
content_margin_left = 7.0
|
||||
content_margin_top = 3.0
|
||||
content_margin_right = 7.0
|
||||
content_margin_bottom = 3.0
|
||||
bg_color = Color(0.717647, 0.0941176, 0.392157, 0.784314)
|
||||
corner_radius_top_left = 15
|
||||
corner_radius_top_right = 15
|
||||
corner_radius_bottom_right = 15
|
||||
corner_radius_bottom_left = 2
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer"]
|
||||
script = ExtResource("1_cgy5u")
|
||||
fade_out_time = 2.0
|
||||
style = SubResource("StyleBoxFlat_cdnv4")
|
||||
text_style = Color(0, 0, 0, 0.862745)
|
||||
common_background = Color(1, 1, 1, 0.784314)
|
||||
uncommon_background = Color(0.196078, 0.8, 0.141176, 0.784314)
|
||||
rare_background = Color(0.141176, 0.231373, 0.8, 0.784314)
|
||||
epic_background = Color(0.709804, 0.141176, 0.8, 0.784314)
|
||||
legendary_background = Color(0.882353, 0.478431, 0.117647, 0.784314)
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label2" type="Label" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "+1"
|
||||
|
||||
[node name="Label" type="Label" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Rocket Launcher 50"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
Reference in New Issue
Block a user