Exemplo n.º 1
0
 public SelectList(float x, float y) {
   setBounds(x, 0, SelectBox.this.getWidth(), 100);
   this.oldScreenCoords.set(screenCoords);
   layout();
   Stage stage = SelectBox.this.getStage();
   float height = getHeight();
   if (y - height < 0
       && y + SelectBox.this.getHeight() + height < stage.getCamera().viewportHeight)
     setY(y + SelectBox.this.getHeight());
   else setY(y - height);
   stage.addCaptureListener(stageListener);
   getColor().a = 0;
   addAction(fadeIn(0.3f, Interpolation.fade));
 }