v0.3.4a: added patch info to the welcome scene

This commit is contained in:
Evan Debenham 2016-02-16 23:47:16 -05:00
parent 698e6e0920
commit 77aaac32b7
2 changed files with 8 additions and 1 deletions

View File

@ -54,6 +54,7 @@ scenes.titlescene.about=About
scenes.welcomescene.welcome_msg=Shattered Pixel Dungeon is a roguelike RPG, with randomly generated enemies, levels, items, and traps!\n\nEach run is a new challenging experience, but be careful, death is permanent!\n\nHappy Dungeoneering!
scenes.welcomescene.update_msg=Shattered Pixel Dungeon has been updated!\n\nThis update features support for multiple languages! Translations have been made possible by the community!\n\nThere are also some balance changes, mainly aimed at easing up on the difficulty of the sewers a little bit.
scenes.welcomescene.patch_msg=Shattered Pixel Dungeon has been patched!\n\nThis patch is primarily bugfixes.\n\nI am also currently developing an option for players to have the classic font back if they prefer.
scenes.welcomescene.what_msg=It seems that your current saves are from a future version of Shattered Pixel Dungeon!\n\nTread with caution! Your saves may contain things which don't exist in this version, this could cause some very weird errors to occur.
scenes.welcomescene.continue=Continue
scenes.welcomescene.changelist=Changelist

View File

@ -19,6 +19,8 @@ import javax.microedition.khronos.opengles.GL10;
public class WelcomeScene extends PixelScene {
private static int LATEST_UPDATE = 90;
@Override
public void create() {
super.create();
@ -101,7 +103,11 @@ public class WelcomeScene extends PixelScene {
if (previousVersion == 0) {
text.text(Messages.get(this, "welcome_msg"), w - 20);
} else if (previousVersion <= ShatteredPixelDungeon.versionCode) {
text.text(Messages.get(this, "update_msg"), w - 20);
if (previousVersion < LATEST_UPDATE){
text.text(Messages.get(this, "update_msg"), w - 20);
} else {
text.text(Messages.get(this, "patch_msg"), w - 20);
}
} else {
text.text(Messages.get(this, "what_msg"), w - 20);
}