From 53139c9e5c0453daaf427d19a3814d7ebb08d892 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 4 Jul 2024 17:33:16 -0400 Subject: [PATCH] v2.5.0: renamed badges scene to journal scene --- .../assets/messages/scenes/scenes.properties | 2 +- .../{BadgesScene.java => JournalScene.java} | 2 +- .../scenes/TitleScene.java | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) rename core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/{BadgesScene.java => JournalScene.java} (99%) diff --git a/core/src/main/assets/messages/scenes/scenes.properties b/core/src/main/assets/messages/scenes/scenes.properties index b073754fd..0d08f890a 100644 --- a/core/src/main/assets/messages/scenes/scenes.properties +++ b/core/src/main/assets/messages/scenes/scenes.properties @@ -15,7 +15,7 @@ scenes.amuletscene.exit=Let's call it a day scenes.amuletscene.stay=I'm not done yet scenes.amuletscene.text=You finally hold it in your hands, the Amulet of Yendor! With the power of this amulet nothing will be able to stand in your way! You have conquered the dungeon and succeeded in your quest!\n\nOr, perhaps you're not ready yet? You can also decide to just hold onto the amulet, stay a mere mortal a little longer, and perhaps leave the dungeon the old fashioned way... -scenes.badgesscene.title=Your Badges +scenes.badgesscene.title=Journal scenes.changesscene.title=Change History scenes.changesscene.new=New Content diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/BadgesScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/JournalScene.java similarity index 99% rename from core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/BadgesScene.java rename to core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/JournalScene.java index 3be26cd4b..9cd670664 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/BadgesScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/JournalScene.java @@ -40,7 +40,7 @@ import com.watabou.noosa.Camera; import com.watabou.noosa.NinePatch; import com.watabou.noosa.audio.Music; -public class BadgesScene extends PixelScene { +public class JournalScene extends PixelScene { public static final int WIDTH_P = 126; public static final int WIDTH_L = 216; diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java index 802f4cce8..e88ff1f63 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java @@ -148,13 +148,13 @@ public class TitleScene extends PixelScene { add(btnRankings); Dungeon.daily = Dungeon.dailyReplay = false; - StyledButton btnBadges = new StyledButton(GREY_TR, Messages.get(this, "badges")){ + StyledButton btnBadges = new StyledButton(GREY_TR, "Journal"){ @Override protected void onClick() { - ShatteredPixelDungeon.switchNoFade( BadgesScene.class ); + ShatteredPixelDungeon.switchNoFade( JournalScene.class ); } }; - btnBadges.icon(Icons.get(Icons.BADGES)); + btnBadges.icon(Icons.get(Icons.JOURNAL)); add(btnBadges); StyledButton btnNews = new NewsButton(GREY_TR, Messages.get(this, "news")); @@ -187,11 +187,11 @@ public class TitleScene extends PixelScene { align(btnPlay); btnSupport.setRect(btnPlay.right()+2, btnPlay.top(), btnPlay.width(), BTN_HEIGHT); btnRankings.setRect(btnPlay.left(), btnPlay.bottom()+ GAP, (btnPlay.width()*.67f)-1, BTN_HEIGHT); - btnBadges.setRect(btnRankings.left(), btnRankings.bottom()+GAP, btnRankings.width(), BTN_HEIGHT); - btnNews.setRect(btnRankings.right()+2, btnRankings.top(), btnRankings.width(), BTN_HEIGHT); - btnChanges.setRect(btnNews.left(), btnNews.bottom() + GAP, btnRankings.width(), BTN_HEIGHT); - btnSettings.setRect(btnNews.right()+2, btnNews.top(), btnRankings.width(), BTN_HEIGHT); - btnAbout.setRect(btnSettings.left(), btnSettings.bottom() + GAP, btnRankings.width(), BTN_HEIGHT); + btnBadges.setRect(btnRankings.right()+2, btnRankings.top(), btnRankings.width(), BTN_HEIGHT); + btnNews.setRect(btnBadges.right()+2, btnBadges.top(), btnRankings.width(), BTN_HEIGHT); + btnSettings.setRect(btnRankings.left(), btnRankings.bottom() + GAP, btnRankings.width(), BTN_HEIGHT); + btnChanges.setRect(btnSettings.right()+2, btnSettings.top(), btnRankings.width(), BTN_HEIGHT); + btnAbout.setRect(btnChanges.right()+2, btnSettings.top(), btnRankings.width(), BTN_HEIGHT); } else { btnPlay.setRect(title.x, topRegion+GAP, title.width(), BTN_HEIGHT); align(btnPlay); @@ -219,7 +219,7 @@ public class TitleScene extends PixelScene { fadeIn(); } - + private void placeTorch( float x, float y ) { Fireball fb = new Fireball(); fb.setPos( x, y );