use of com.badlogic.gdx.scenes.scene2d.Event in project Catacomb-Snatch by Catacomb-Snatch.
the class MenuScene method init.
protected void init() {
// Set actor width
for (Actor actor : getActors()) {
actor.setWidth(150);
actor.addListener(new EventListener() {
@Override
public boolean handle(Event event) {
aniY = (int) event.getListenerActor().getY();
return true;
}
});
}
// Set index to the topmost actor
index = getActors().size - 1;
// Properly place actors
update(true);
}
Aggregations