Add marketplace button functionality and skill unlocker integration
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dtl03rod7l2t0"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dtl03rod7l2t0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cvhoq7aubxlmq" path="res://sprites/ui/magnetic_skill_icon.png" id="1_5kqfg"]
|
||||
[ext_resource type="Script" uid="uid://dx8lex40lotr5" path="res://scripts/ui/marketplace_button.gd" id="2_ulgvb"]
|
||||
[ext_resource type="Texture2D" uid="uid://52adghxscdgy" path="res://sprites/locked_skill.png" id="2_vb2qn"]
|
||||
[ext_resource type="Texture2D" uid="uid://rucyqmgrdld3" path="res://sprites/unlocked_skill.png" id="3_guyun"]
|
||||
|
||||
[node name="MarketplaceButton" type="Button"]
|
||||
[node name="MarketplaceButton" type="Button" node_paths=PackedStringArray("skill_level_container")]
|
||||
offset_right = 8.0
|
||||
offset_bottom = 8.0
|
||||
size_flags_horizontal = 3
|
||||
@@ -12,3 +15,17 @@ text = "Fire brick 100"
|
||||
icon = ExtResource("1_5kqfg")
|
||||
flat = true
|
||||
autowrap_mode = 2
|
||||
script = ExtResource("2_ulgvb")
|
||||
unlocked_skill_icon = ExtResource("3_guyun")
|
||||
locked_skill_icon = ExtResource("2_vb2qn")
|
||||
skill_level_container = NodePath("HBoxContainer")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -8.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
|
Reference in New Issue
Block a user