Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public FuelFacilityDialog(GameWorld world, GuiComponent gui) { super("Health check", gui.defaultSkin);
- this.world = world;
- this.gui = gui;
- setModal(true);
- setMovable(false);
- setResizable(false);
- Image healthIndicator = new Image();
- Button button1 = new TextButton("heal", gui.defaultSkin);
- Button button4 = new TextButton("Exit", gui.defaultSkin);
- healthIndicator.setDrawable(new TextureRegionDrawable(AssetLoader.healthIndicatorV));
- healthIndicator.setScaling(Scaling.fit);
- setObject(button1, true);
- setObject(button4, false);
- Table imageTable = new Table();
- Table buttonTable = new Table();
- imageTable.add(healthIndicator).width(100).height(200);
- buttonTable.add(button1).width(100).height(50).expandY();
- this.getContentTable().padTop(20);
- this.getContentTable().padBottom(20);
- this.getContentTable().add(imageTable);
- this.getContentTable().add(buttonTable).height(200);
- getButtonTable().add(button2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement