![JAR search and dependency download from the Maven repository](/logo.png)
com.bladecoder.engine.ui.AnimButton Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blade-engine Show documentation
Show all versions of blade-engine Show documentation
Classic point and click adventure game engine
The newest version!
package com.bladecoder.engine.ui;
import com.badlogic.gdx.scenes.scene2d.ui.Button;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
public class AnimButton extends Button {
public AnimButton(Skin skin, String styleName) {
super(skin, styleName);
}
public AnimButton(ButtonStyle style) {
super(style);
}
@Override
public void act(float delta) {
ButtonStyle style = getStyle();
if (style.up != null && style.up instanceof AnimationDrawable)
((AnimationDrawable) style.up).act(delta);
if (style.over != null && style.over instanceof AnimationDrawable)
((AnimationDrawable) style.over).act(delta);
if (style.down != null && style.down instanceof AnimationDrawable)
((AnimationDrawable) style.down).act(delta);
super.act(delta);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy