masque automatique de la grande carte quand on passe a droite

This commit is contained in:
marc barbier
2021-01-04 15:50:45 +01:00
parent c81ad01f78
commit 049b34e250
@@ -144,6 +144,16 @@ public class TouchHandler {
renderer.removeToDraw(smallCardUsedForBig.getName() + "BIG"); renderer.removeToDraw(smallCardUsedForBig.getName() + "BIG");
smallCardUsedForBig = null; smallCardUsedForBig = null;
} }
}else if(event.getAction() == MotionEvent.ACTION_MOVE)
{
//on déselactionne la grosse carte si on passe dessu
if(unScalled_X > 76F)
{
if (smallCardUsedForBig != null) {
renderer.removeToDraw(smallCardUsedForBig.getName() + "BIG");
smallCardUsedForBig = null;
}
}
} }
} }