feat: ajout de la classe warndialog.

This commit is contained in:
Nicolas Hordé 2016-01-16 19:31:18 +01:00
parent 0fda8ec977
commit df45882b62
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
package fr.evolving.UI;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Dialog;
import com.badlogic.gdx.scenes.scene2d.ui.ImageButton;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import fr.evolving.assets.AssetLoader;
public class WarnDialog extends Dialog{
Label thelabel;
public WarnDialog(Skin skin) {
super("Informations", skin);
// TODO Auto-generated constructor stub
this.getContentTable().add(new ImageButton(AssetLoader.Skin_level,"Warnerbros")).left();
thelabel=new Label("MenuScenario",AssetLoader.Skin_level);
this.getContentTable().add(thelabel).right();
this.setModal(true);
this.button("Ok");
this.key(Input.Keys.ENTER, true);
}
public void Show(String info,Stage stage) {
this.thelabel.setText(info);
this.show(stage);
}
}