Add itemId to debug tool on rightclick

Just makes it easier, don't need to inspect element then enter
the id anymore
develop
Nathan Steel 1 year ago
parent c4d2989640
commit aee875f4b4

@ -1266,6 +1266,7 @@ canvas.addEventListener('contextmenu', function(event) {
// Compare the event XY position to the item // Compare the event XY position to the item
if(clickableCheck(x,y,itemKey)){ if(clickableCheck(x,y,itemKey)){
console.log('itemId: '+itemKey); console.log('itemId: '+itemKey);
document.getElementById('effectTargetId').value = itemKey;
// Only want to happen once (for now) // Only want to happen once (for now)
// Maybe in future add to hand would trigger another event if there's an effect? // Maybe in future add to hand would trigger another event if there's an effect?

Loading…
Cancel
Save