0 votes

I have been making a card game and I use ItemLists as a core component of a deck builder where you can pick and choose cards to add to your deck. The singa onItemListitemactivated() handles the adding of the cards you double click it and it adds to a array that is the deck as shown in this code sample:

func _on_ItemList_item_activated(index) -> void:
var cardIDs = $Panel/ItemList2.get_item_count()
var cardData:Dictionary = $Panel/ItemList.get_item_metadata(index)
var dataID = (cardData["id"])
var transformIcon = ResourceLoader.load(cardData["transformIcon"])
$Panel/ItemList2.add_item("", transformIcon, true)
$Panel/ItemList2.set_item_metadata(cardIDs, cardData)

it works as intended on PC but doesn't seem to activate on Android, I am pretty sure that the signal is intended to work only on PC but I am at a loss on how to implement an input for it to work on android, any help would be aprreciated.

Godot version Godot Engine v3.3.stable.official
in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.