commit
8ffad9c22c
@ -0,0 +1,56 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.trs.main.view.screens;
|
||||
|
||||
import com.badlogic.gdx.Game;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jan
|
||||
*/
|
||||
public class InventoryScreen extends AbstractScreen{
|
||||
|
||||
/**
|
||||
* TODO: Inventorydata? | Playerdata in constructor? own function? resume?
|
||||
* @param game
|
||||
* @param CAMERA_WIDTH
|
||||
* @param CAMERA_HEIGHT
|
||||
*/
|
||||
public InventoryScreen(Game game, float CAMERA_WIDTH, float CAMERA_HEIGHT) {
|
||||
super(game, CAMERA_WIDTH, CAMERA_HEIGHT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void show() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(float f) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resize(int i, int i1) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void pause() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resume() {
|
||||
paused = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hide() {
|
||||
paused = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.trs.main.view.screens;
|
||||
|
||||
import com.badlogic.gdx.Game;
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import com.badlogic.gdx.graphics.OrthographicCamera;
|
||||
import com.badlogic.gdx.scenes.scene2d.Stage;
|
||||
import com.badlogic.gdx.utils.viewport.FitViewport;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jan
|
||||
*/
|
||||
public class MenuScreen extends AbstractScreen{
|
||||
|
||||
Stage stage;
|
||||
OrthographicCamera camera;
|
||||
|
||||
public MenuScreen(Game game, float CAMERA_WIDTH, float CAMERA_HEIGHT) {
|
||||
super(game, CAMERA_WIDTH, CAMERA_HEIGHT);
|
||||
camera = new OrthographicCamera();
|
||||
camera.setToOrtho(false, CAMERA_WIDTH, CAMERA_HEIGHT);
|
||||
camera.update();
|
||||
stage = new Stage(new FitViewport(CAMERA_WIDTH, CAMERA_HEIGHT, camera));
|
||||
Gdx.input.setInputProcessor(stage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void show() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(float f) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resize(int i, int i1) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void pause() {
|
||||
paused = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resume() {
|
||||
paused = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hide() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in new issue