cleaned up formatting:

- removed trailing whitespace
- changed all leading whitespace to tabs
- removed IDE created author comments
This commit is contained in:
Evan Debenham
2015-06-12 16:22:26 -04:00
parent baa83b7e43
commit cebdff0221
335 changed files with 8555 additions and 8714 deletions
@@ -50,14 +50,14 @@ public class TitleScene extends PixelScene {
int gameversion = ShatteredPixelDungeon.version();
int gameversion = ShatteredPixelDungeon.version();
if (gameversion != Game.versionCode) {
//new intro, make older players see it again.
if (gameversion < 9)
ShatteredPixelDungeon.intro(true);
Game.switchScene(WelcomeScene.class);
}
if (gameversion != Game.versionCode) {
//new intro, make older players see it again.
if (gameversion < 9)
ShatteredPixelDungeon.intro(true);
Game.switchScene(WelcomeScene.class);
}
Music.INSTANCE.play( Assets.THEME, true );
Music.INSTANCE.volume( 1f );
@@ -104,7 +104,7 @@ public class TitleScene extends PixelScene {
DashboardItem btnBadges = new DashboardItem( TXT_BADGES, 3 ) {
@Override
protected void onClick() {
ShatteredPixelDungeon.switchNoFade( BadgesScene.class );
ShatteredPixelDungeon.switchNoFade( BadgesScene.class );
}
};
add( btnBadges );
@@ -112,7 +112,7 @@ public class TitleScene extends PixelScene {
DashboardItem btnAbout = new DashboardItem( TXT_ABOUT, 1 ) {
@Override
protected void onClick() {
ShatteredPixelDungeon.switchNoFade( AboutScene.class );
ShatteredPixelDungeon.switchNoFade( AboutScene.class );
}
};
add( btnAbout );
@@ -120,7 +120,7 @@ public class TitleScene extends PixelScene {
DashboardItem btnPlay = new DashboardItem( TXT_PLAY, 0 ) {
@Override
protected void onClick() {
ShatteredPixelDungeon.switchNoFade( StartScene.class );
ShatteredPixelDungeon.switchNoFade( StartScene.class );
}
};
add( btnPlay );
@@ -128,7 +128,7 @@ public class TitleScene extends PixelScene {
DashboardItem btnHighscores = new DashboardItem( TXT_HIGHSCORES, 2 ) {
@Override
protected void onClick() {
ShatteredPixelDungeon.switchNoFade( RankingsScene.class );
ShatteredPixelDungeon.switchNoFade( RankingsScene.class );
}
};
add( btnHighscores );
@@ -146,28 +146,28 @@ public class TitleScene extends PixelScene {
btnHighscores.setPos( w / 2, btnPlay.top() );
}
BitmapText source = new BitmapText( "PD v 1.7.5", font1x );
source.measure();
source.hardlight( 0x444444 );
source.x = w - source.width();
source.y = h - source.height();
add( source );
BitmapText source = new BitmapText( "PD v 1.7.5", font1x );
source.measure();
source.hardlight( 0x444444 );
source.x = w - source.width();
source.y = h - source.height();
add( source );
BitmapText version = new BitmapText( "v " + Game.version + "", font1x );
version.measure();
version.hardlight( 0xCCCCCC );
version.x = w - version.width();
version.y = h - version.height() - source.height();
BitmapText version = new BitmapText( "v " + Game.version + "", font1x );
version.measure();
version.hardlight( 0xCCCCCC );
version.x = w - version.width();
version.y = h - version.height() - source.height();
add( version );
add( version );
PrefsButton btnPrefs = new PrefsButton();
btnPrefs.setPos( 0, 0 );
add( btnPrefs );
ExitButton btnExit = new ExitButton();
btnExit.setPos( w - btnExit.width(), 0 );
add( btnExit );
ExitButton btnExit = new ExitButton();
btnExit.setPos( w - btnExit.width(), 0 );
add( btnExit );
fadeIn();
}