Add marketplace button functionality and skill unlocker integration
This commit is contained in:
@@ -46,9 +46,10 @@ func get_button_text(skill: SkillData) -> String:
|
||||
|
||||
|
||||
func create_upgrade_button(skill: SkillData):
|
||||
var button := marketplace_button.instantiate() as Button
|
||||
var button := marketplace_button.instantiate() as MarketplaceButton
|
||||
button.text = get_button_text(skill)
|
||||
button.icon = skill.icon
|
||||
button.skill_data = skill
|
||||
|
||||
button.pressed.connect(func () -> void: _on_button_pressed(skill))
|
||||
|
||||
|
Reference in New Issue
Block a user