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