()
| 34 | TextureRegion image2; |
| 35 | |
| 36 | @Override |
| 37 | public void create () { |
| 38 | skin = new Skin(Gdx.files.internal("data/uiskin.json")); |
| 39 | image2 = new TextureRegion(new Texture(Gdx.files.internal("data/badlogic.jpg"))); |
| 40 | ui = new Stage(); |
| 41 | Gdx.input.setInputProcessor(ui); |
| 42 | |
| 43 | root = new Table(); |
| 44 | root.setSize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); |
| 45 | ui.addActor(root); |
| 46 | root.debug(); |
| 47 | |
| 48 | Image image = new Image(image2); |
| 49 | image.setScaling(Scaling.fill); |
| 50 | root.add(image).width(image2.getRegionWidth()).height(image2.getRegionHeight()); |
| 51 | } |
| 52 | |
| 53 | @Override |
| 54 | public void dispose () { |
nothing calls this directly
no test coverage detected