GameObject subGameObject = new GameObject("Continue");
subGameObject.transform.getLocalPosition().add(width * 0.7f* Cactus2DApplication.invCameraZoom, 0);
subGameObject.AddComponent(new SpriteRendererComponent(null));
subGameObject.spriteRenderer.gui = true;
TextureRegion[][] tmp = TextureRegion.split(tx, 128, 128);
subGameObject.AddComponent(new ButtonComponent(tmp[0][0], tmp[0][1]));
subGameObject.AddComponent(new AudioComponent("data/sound/click.wav"));
subGameObject.AddComponent(new NextstateComponent(newState));
if(GameControllerComponent.state != GameState.WON && GameControllerComponent.state != GameState.LOST){
tip.addGameObject(subGameObject);
}
subGameObject = new GameObject("Reload");
subGameObject.transform.getLocalPosition().add(10, 0);
subGameObject.AddComponent(new SpriteRendererComponent(null));
subGameObject.spriteRenderer.gui = true;
subGameObject.AddComponent(new ButtonComponent(tmp[1][0], tmp[1][1]));
subGameObject.AddComponent(new AudioComponent("data/sound/click.wav"));
subGameObject.AddComponent(new LevelLoader(MainLevel.class));
tip.addGameObject(subGameObject);
subGameObject = new GameObject("Menu");
subGameObject.transform.getLocalPosition().add(width * 0.35f * Cactus2DApplication.invCameraZoom, 0);
subGameObject.AddComponent(new SpriteRendererComponent(null));
subGameObject.spriteRenderer.gui = true;
subGameObject.AddComponent(new ButtonComponent(tmp[0][6], tmp[0][7]));
subGameObject.AddComponent(new AudioComponent("data/sound/click.wav"));
subGameObject.AddComponent(new LevelLoader(MenuLevel.class));
tip.addGameObject(subGameObject);