Package com.palepail.TestGame.Message

Source Code of com.palepail.TestGame.Message.MessageFloat

package com.palepail.TestGame.Message;

import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle;
import com.badlogic.gdx.scenes.scene2d.utils.Align;
import com.palepail.TestGame.Utilities.Configuration;

public class MessageFloat extends Message {
 
 
  public MessageFloat(String id, Float message, BitmapFont font) {
    super();
    this.text = message.toString();
    this.font = font;
    this.id=id;
   
    LabelStyle ls = new LabelStyle(this.font,Color.WHITE);
    label = new Label(text, ls);
    label.setFontScale(1*Configuration.gameScale/20);
    label.setAlignment(Align.center);
  }

  public void update() {

  }
 
 
 
}
TOP

Related Classes of com.palepail.TestGame.Message.MessageFloat

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.