Back to project page Castle-Invaders.
The source code is released under:
GNU General Public License
If you think the Android project Castle-Invaders listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.noobgygames.castleinvaders.ui; //from w ww . ja v a2 s . co m import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.Rectangle; import com.noobygames.utils.ui.Button; public class DragonUltiButton extends Button { public DragonUltiButton(Rectangle position, Texture tex) { super(position, tex); } public DragonUltiButton(Rectangle position, TextureRegion earthDragonSwitch) { super(position, null); this.setTexRegion(earthDragonSwitch); this.setClicked(false); } /**This method switches the TextureRegion of the button * **/ @Override public void onClick() { } }