V0.2.1 : HOTFIX commit, final commit.
This commit is contained in:
parent
6cd16e7f20
commit
1eb0136dab
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.shatteredpixel.shatteredpixeldungeon"
|
package="com.shatteredpixel.shatteredpixeldungeon"
|
||||||
android:versionCode="9"
|
android:versionCode="10"
|
||||||
android:versionName="0.2.1"
|
android:versionName="0.2.1a"
|
||||||
android:installLocation="auto">
|
android:installLocation="auto">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||||
|
|
|
@ -20,6 +20,8 @@ public class WelcomeScene extends PixelScene {
|
||||||
|
|
||||||
private static final String TTL_LastVer = "Updated To v0.2.1";
|
private static final String TTL_LastVer = "Updated To v0.2.1";
|
||||||
|
|
||||||
|
private static final String TTL_SameVer = "v0.2.1 Hotfixed!";
|
||||||
|
|
||||||
private static final String TTL_Future = "Wait What?";
|
private static final String TTL_Future = "Wait What?";
|
||||||
|
|
||||||
private static final String TXT_Welcome =
|
private static final String TXT_Welcome =
|
||||||
|
@ -35,6 +37,10 @@ public class WelcomeScene extends PixelScene {
|
||||||
"This update is mainly aimed at new players, but everyone should be able to appreciate some more " +
|
"This update is mainly aimed at new players, but everyone should be able to appreciate some more " +
|
||||||
"variety in the early stages of the game.";
|
"variety in the early stages of the game.";
|
||||||
|
|
||||||
|
private static final String TXT_SameVer =
|
||||||
|
"This is a quick hotfix patch to address a serious issue with the new " +
|
||||||
|
"sewer boss level generation. All sewer boss levels generated after this patch should work correctly.";
|
||||||
|
|
||||||
private static final String TXT_Future =
|
private static final String TXT_Future =
|
||||||
"It seems that your current saves are from a future version of Shattered Pixel Dungeon.\n\n"+
|
"It seems that your current saves are from a future version of Shattered Pixel Dungeon.\n\n"+
|
||||||
"You have either messing around with backup software, or something has gone buggy.\n\n"+
|
"You have either messing around with backup software, or something has gone buggy.\n\n"+
|
||||||
|
@ -52,10 +58,15 @@ public class WelcomeScene extends PixelScene {
|
||||||
BitmapTextMultiline text;
|
BitmapTextMultiline text;
|
||||||
BitmapTextMultiline title;
|
BitmapTextMultiline title;
|
||||||
|
|
||||||
if (gameversion == 0){
|
if (gameversion == 0) {
|
||||||
|
|
||||||
text = createMultiline( TXT_Welcome, 8 );
|
text = createMultiline(TXT_Welcome, 8);
|
||||||
title = createMultiline( TTL_Welcome, 16 );
|
title = createMultiline(TTL_Welcome, 16);
|
||||||
|
|
||||||
|
} else if (gameversion == 9){
|
||||||
|
|
||||||
|
text = createMultiline(TXT_SameVer, 6 );
|
||||||
|
title = createMultiline(TTL_SameVer, 12 );
|
||||||
|
|
||||||
} else if (gameversion <= Game.versionCode) {
|
} else if (gameversion <= Game.versionCode) {
|
||||||
|
|
||||||
|
@ -77,8 +88,6 @@ public class WelcomeScene extends PixelScene {
|
||||||
text.x = align( (Camera.main.width - text.width()) / 2 );
|
text.x = align( (Camera.main.width - text.width()) / 2 );
|
||||||
text.y = align( (Camera.main.height - text.height()) / 2 );
|
text.y = align( (Camera.main.height - text.height()) / 2 );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
title.maxWidth = Math.min( Camera.main.width-50, 120 );
|
title.maxWidth = Math.min( Camera.main.width-50, 120 );
|
||||||
title.measure();
|
title.measure();
|
||||||
title.hardlight(Window.TITLE_COLOR);
|
title.hardlight(Window.TITLE_COLOR);
|
||||||
|
@ -95,18 +104,26 @@ public class WelcomeScene extends PixelScene {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (gameversion == 0){
|
||||||
okay.setRect(text.x, text.y + text.height() + 5, 55, 18);
|
okay.setRect(text.x, text.y + text.height() + 5, 55, 18);
|
||||||
add(okay);
|
add(okay);
|
||||||
|
|
||||||
RedButton revert = new RedButton("Changes") {
|
RedButton changes = new RedButton("Changes") {
|
||||||
@Override
|
@Override
|
||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(LNK));
|
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(LNK));
|
||||||
Game.instance.startActivity(intent);
|
Game.instance.startActivity(intent);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
revert.setRect(text.x + 65, text.y + text.height() + 5, 55, 18);
|
|
||||||
add(revert);
|
changes.setRect(text.x + 65, text.y + text.height() + 5, 55, 18);
|
||||||
|
add(changes);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
okay.setRect(text.x, text.y + text.height() + 5, 120, 18);
|
||||||
|
add(okay);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Archs archs = new Archs();
|
Archs archs = new Archs();
|
||||||
archs.setSize( Camera.main.width, Camera.main.height );
|
archs.setSize( Camera.main.width, Camera.main.height );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user