Back to project page candymem.
The source code is released under:
GNU General Public License
If you think the Android project candymem 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 se.tube42.kidsmem.item; //from w w w. ja v a 2 s. c o m import com.badlogic.gdx.graphics.*; import com.badlogic.gdx.graphics.g2d.*; import se.tube42.lib.tweeny.*; import se.tube42.lib.scene.*; import se.tube42.lib.item.*; import se.tube42.kidsmem.data.*; import se.tube42.kidsmem.service.*; public class GameStat extends BaseText implements TweenListener { private String next_text; public GameStat() { super(Assets.font1); setColor(Constants.COLOR_STATS); clear(); } public void clear() { setText(""); setAlpha(0); } public void setAnimatedText(String txt) { next_text = txt; set(ITEM_A, 0).configure(0.5f, null).finish(this, 0) .tail(1).configure(0.5f, null); } public void onFinish(Item item, int index, int data) { setText(next_text); } }