package ethanjones.modularworld.graphics.menu.menus;

import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import ethanjones.modularworld.graphics.menu.Menu;
import ethanjones.modularworld.graphics.menu.MenuTools;

public class InfoMenu extends Menu {

  Label text;
  TextButton button;

  public InfoMenu(String labelText, String buttonText) {
    super();
    text = new Label(labelText, skin);
    button = new TextButton(buttonText, skin);
  }

  public InfoMenu(String labelText) {
    super();
    text = new Label(labelText, skin);
    button = MenuTools.getBackButton(this);
  }

  @Override
  public void resize(int width, int height) {
    super.resize(width, height);
    
  }

  @Override
  public void addActors() {
    stage.addActor(text);
    stage.addActor(button);
  }
}

@@ -47,16 +47,45 @@
 menus;%0A%0A
+import com.badlogic.gdx.Gdx;%0A
 import c
@@ -125,16 +125,16 @@
 .Label;%0A
-
 import c
@@ -179,16 +179,68 @@
 Button;%0A
+import com.badlogic.gdx.scenes.scene2d.utils.Align;%0A
 import e
@@ -656,32 +656,83 @@
 belText, skin);%0A
+    text.setAlignment(Align.center, Align.bottom);%0A
     button = Men
@@ -855,20 +855,272 @@
 eight);%0A
-
     
+text.setBounds(0, Gdx.graphics.getHeight() / 2f, Gdx.graphics.getWidth(), text.getPrefHeight());%0A    button.setBounds(Gdx.graphics.getWidth() / 2 - button.getPrefWidth() / 2, Gdx.graphics.getHeight() / 4, button.getPrefWidth(), button.getPrefHeight());
 %0A  %7D%0A%0A  

Fix info menu