Back to project page diploma-assignment.
The source code is released under:
MIT License
If you think the Android project diploma-assignment 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.me.battlescreen; /*ww w . j a v a2 s.c o m*/ import com.badlogic.gdx.Screen; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.scenes.scene2d.Actor; public class MyLabel extends Actor{ protected String text; protected BitmapFont font; protected int[] coords; protected Screen screen; public MyLabel(Screen s,String t,BitmapFont f,int[] c){ screen=s; text=t; font=f; coords=c; } @Override public void draw(Batch batch, float alpha){ font.draw(batch, text, coords[0], coords[1]); } public void setText(String s){ text=s; } }