minor cleanup
This commit is contained in:
parent
a7cf85a581
commit
ea7b81d342
@ -34,7 +34,6 @@ public class PreGameScreen extends ScreenAdapter implements TransitionAdapter {
|
||||
Label lastStatement;
|
||||
|
||||
MusicSelectionPage musicSelection;
|
||||
|
||||
public PreGameScreen(final Polyjet core) {
|
||||
this.core = core;
|
||||
analyzer = new AudioAnalyzer();
|
||||
@ -58,7 +57,7 @@ public class PreGameScreen extends ScreenAdapter implements TransitionAdapter {
|
||||
public void postTransition() {
|
||||
stage.clear();
|
||||
//draw music selector
|
||||
musicSelection = new MusicSelectionPage(core, core.defaultSkin);
|
||||
musicSelection = new MusicSelectionPage(core);
|
||||
stage.addActor(musicSelection);
|
||||
|
||||
statusText = new Label(null, core.defaultSkin);
|
||||
|
@ -2,17 +2,17 @@ package zero1hd.polyjet.ui;
|
||||
|
||||
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.Image;
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
|
||||
|
||||
import zero1hd.polyjet.Polyjet;
|
||||
|
||||
public class MusicSelectionPage extends Page {
|
||||
Image loading;
|
||||
|
||||
public MusicSelectionPage(final Polyjet core) {
|
||||
super("Select music", core.defaultSkin);
|
||||
|
||||
public MusicSelectionPage(Polyjet core, Skin skin) {
|
||||
super("Select music", skin);
|
||||
|
||||
loading = new Image(skin, "loading");
|
||||
loading = new Image(core.defaultSkin, "loading");
|
||||
loading.setPosition((getWidth()-loading.getWidth())/2, (getHeight()-loading.getHeight())/2);
|
||||
loading.setOrigin(loading.getWidth()/2, loading.getHeight()/2);
|
||||
loading.addAction(Actions.forever(Actions.rotateBy(-360f, 2f)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user