From 77aaac32b7daaefb5b8141f4cdbc5c34955d7dd1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 16 Feb 2016 23:47:16 -0500 Subject: [PATCH] v0.3.4a: added patch info to the welcome scene --- .../messages/scenes/scenes.properties | 1 + .../shatteredpixeldungeon/scenes/WelcomeScene.java | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/messages/scenes/scenes.properties b/src/com/shatteredpixel/shatteredpixeldungeon/messages/scenes/scenes.properties index 9b1142aa4..d6fba1051 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/messages/scenes/scenes.properties +++ b/src/com/shatteredpixel/shatteredpixeldungeon/messages/scenes/scenes.properties @@ -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 diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/scenes/WelcomeScene.java b/src/com/shatteredpixel/shatteredpixeldungeon/scenes/WelcomeScene.java index ce5dd7b11..d374b9e9b 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/scenes/WelcomeScene.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/scenes/WelcomeScene.java @@ -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); }