I want to make my own Button class, that will have a Sprite, and whenever i touch it it will grow or rotate, etc, the class will have also a Draw and Update function.
<
buttonUp = new TextButton("", styleUpButton); //** Button text and style **//
buttonUp.setPosition(84, 40);
buttonUp.setHeight(64);
buttonUp.setWidth(64);
buttonUp.addListener(new InputListener() {
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
HereYouHaveToCallMethodYouNeed();
return true;
}
public void touchUp (InputEvent event, float x, float y, int pointer, int button) {
// Here may be onemore method.
}
});