Hello guys,
I’ve got a bit problem with [.on('click) ; click() ; mouseup()] function on my client-side interface.
Synopsis : I’ve got an inventory hud (from here) and I want to replace the draggable thing by a click event on items. I don’t think that draggable option is ergonomic at all…
Here is my problem : The click do not trigger functions at all in the game. All css hovers effects works, but the jquery click do not trigger my callback …
Thanks for your answers !
A piece of my code (how do I use click events) :
$('#use').on('click', function(event){
var itemData = {};
itemData.usable = true;
if (itemData.usable) {
$('#typeAction').html('utiliser').data('action', 'use');
$('#quantityInputUse').fadeIn();
}
else {
$('#quantityInputUse').fadeOut();
$('.info-div').html("L'item n'est pas compatible avec ce type d'action ! (utiliser)");
}
});