// Path: HexBoxServer/src/com/hexabeast/hexboxserver/HMessage.java
// public class HMessage {
// 	
// 	public int id;
// 	public String str;
// 	public String owner;
// 
// 	public HMessage()
// 	{
// 		
// 	}
// 	
// 	public HMessage(String str, String owner)
// 	{
// 		this.str = str;
// 		this.owner = owner;
// 	}
// }


import java.util.ArrayList;
import java.util.Random;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle;
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;
import com.badlogic.gdx.utils.Align;
import com.hexabeast.hexboxserver.HMessage;
package com.hexabeast.sandbox;



public class Chat {
	TextField inputField;
	Stage scene;
	
	ArrayList<Message> messages = new ArrayList<Message>();
	
	BitmapFont font;
	Random ran;
	
	public Chat()
	{
		ran = new Random();
		font = FontManager.instance.fontsmall;
		
		this.scene = new Stage();
		TextFieldStyle tfs = new TextFieldStyle();
		tfs.font = font;
		tfs.fontColor = Color.WHITE;
		tfs.selection = new TextureRegionDrawable(TextureManager.instance.textBoxSurline);
		tfs.cursor = new TextureRegionDrawable(TextureManager.instance.textBoxCursor);
		//tfs.background = new TextureRegionDrawable(TextureManager.instance.ipButton);
		
		inputField = new TextField("", tfs);
		inputField.setWidth(400);
		
		inputField.setPosition(10,60);
		
		scene.addActor(inputField);
	}
	
// Path: HexBoxServer/src/com/hexabeast/hexboxserver/HMessage.java
// public class HMessage {
// 	
// 	public int id;
// 	public String str;
// 	public String owner;
// 
// 	public HMessage()
// 	{
// 		
// 	}
// 	
// 	public HMessage(String str, String owner)
// 	{
// 		this.str = str;
// 		this.owner = owner;
// 	}
// }


// Path: core/src/com/hexabeast/sandbox/Chat.java
import java.util.ArrayList;
import java.util.Random;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.GlyphLayout;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;
import com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle;
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;
import com.badlogic.gdx.utils.Align;
import com.hexabeast.hexboxserver.HMessage;

package com.hexabeast.sandbox;



public class Chat {
	TextField inputField;
	Stage scene;
	
	ArrayList<Message> messages = new ArrayList<Message>();
	
	BitmapFont font;
	Random ran;
	
	public Chat()
	{
		ran = new Random();
		font = FontManager.instance.fontsmall;
		
		this.scene = new Stage();
		TextFieldStyle tfs = new TextFieldStyle();
		tfs.font = font;
		tfs.fontColor = Color.WHITE;
		tfs.selection = new TextureRegionDrawable(TextureManager.instance.textBoxSurline);
		tfs.cursor = new TextureRegionDrawable(TextureManager.instance.textBoxCursor);
		//tfs.background = new TextureRegionDrawable(TextureManager.instance.ipButton);
		
		inputField = new TextField("", tfs);
		inputField.setWidth(400);
		
		inputField.setPosition(10,60);
		
		scene.addActor(inputField);
	}
	
	public void addMessageN(HMessage msg)