use of eidolons.libgdx.gui.generic.GearCluster in project Eidolons by IDemiurge.
the class FacingPanel method getGearListener.
private EventListener getGearListener(boolean clockwise) {
return new ClickListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
// GuiEventManager
WaitMaster.receiveInput(WAIT_OPERATIONS.ACTION_INPUT, new ActionInput(dataSource.getTurnAction(clockwise), new Context(dataSource.getEntity().getRef())));
GearCluster gear = clockwise ? gearsClockwise : gearsAntiClockwise;
gear.activeWork(0.25f, 0.5f);
return super.touchDown(event, x, y, pointer, button);
}
};
}
Aggregations