private void init() { setWidth(mCardWidth); setHeight(mCardHeight); mHighlightView = new HighlightView(); mHighlightView.setColor(Color.RED); mNextPosition = new Vector2(); createGestures(); createEvents(); }
public void setHighlight(boolean highlight) { if (highlight) mHighlightView.show(); else mHighlightView.hide(); }
@Override public void draw(Batch batch, float parentAlpha) { super.draw(batch, parentAlpha); if (mHighlightView.isVisible()) mHighlightView.draw(batch, this); }