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