Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TDT4240-group23
SpaceCheckers
Commits
148a9d8d
Commit
148a9d8d
authored
Apr 23, 2021
by
Anders H. Rebner
Browse files
Deleted unused PauseView
parent
67428d70
Changes
1
Hide whitespace changes
Inline
Side-by-side
CheckersClient/core/src/com/mygdx/game/views/PauseView.java
deleted
100644 → 0
View file @
67428d70
package
com.mygdx.game.views
;
import
com.badlogic.gdx.Gdx
;
import
com.badlogic.gdx.Input
;
import
com.badlogic.gdx.assets.AssetManager
;
import
com.badlogic.gdx.graphics.Texture
;
import
com.badlogic.gdx.scenes.scene2d.Stage
;
import
com.badlogic.gdx.scenes.scene2d.ui.Skin
;
import
com.mygdx.game.controllers.PlayerController
;
public
class
PauseView
extends
AbstractView
{
private
Texture
background
;
private
Texture
playBtn
;
public
PauseView
(
GameViewManager
gvm
,
PlayerController
playerController
,
AssetManager
assetManager
,
Stage
stage
,
Skin
skin
)
{
super
(
gvm
,
playerController
,
assetManager
,
stage
,
skin
);
background
=
new
Texture
(
"Pause/PauseBackground.png"
);
playBtn
=
new
Texture
(
"Pause/PauseButton.png"
);
Gdx
.
input
.
setCursorCatched
(
true
);
}
@Override
public
void
handleInput
(
float
dt
)
{
}
@Override
public
void
update
(
float
dt
)
{
if
(
Gdx
.
input
.
isKeyPressed
(
Input
.
Keys
.
ANY_KEY
)){
gvm
.
pop
();
}
}
@Override
public
void
render
(
float
dt
)
{
stage
.
draw
();
}
@Override
public
void
fadeIn
(
float
dt
)
{
}
@Override
public
void
fadeOut
(
float
dt
)
{
}
@Override
public
void
dispose
()
{
background
.
dispose
();
playBtn
.
dispose
();
stage
.
dispose
();
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment