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 7ce6d1f29..b290a5db8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java @@ -150,12 +150,16 @@ public class TitleScene extends PixelScene { changes.setPos( w-changes.width(), h - version.height() - changes.height()); add( changes ); + int pos = 0; + PrefsButton btnPrefs = new PrefsButton(); - btnPrefs.setPos( 0, 0 ); + btnPrefs.setRect( pos, 0, 16, 16 ); add( btnPrefs ); + + pos += btnPrefs.width(); LanguageButton btnLang = new LanguageButton(); - btnLang.setRect(16, 0, 16, 15); + btnLang.setRect(pos, 0, 14, 16); add( btnLang ); ExitButton btnExit = new ExitButton(); diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/Icons.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/Icons.java index 61e5f1e7a..89198d49c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/Icons.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/Icons.java @@ -152,7 +152,7 @@ public enum Icons { icon.frame( icon.texture.uvRect( 79, 40, 94, 56 ) ); break; case LANGS: - icon.frame( icon.texture.uvRect( 94, 42, 110, 51 ) ); + icon.frame( icon.texture.uvRect( 95, 42, 107, 51 ) ); break; case CHALLENGE_OFF: icon.frame( icon.texture.uvRect( 78, 16, 102, 40 ) ); diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/PrefsButton.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/PrefsButton.java index 087f8ab49..bef67ce6d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/PrefsButton.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/PrefsButton.java @@ -22,6 +22,7 @@ package com.shatteredpixel.shatteredpixeldungeon.ui; import com.shatteredpixel.shatteredpixeldungeon.Assets; +import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene; import com.shatteredpixel.shatteredpixeldungeon.windows.WndSettings; import com.watabou.noosa.Image; import com.watabou.noosa.audio.Sample; @@ -31,13 +32,6 @@ public class PrefsButton extends Button { private Image image; - public PrefsButton() { - super(); - - width = image.width; - height = image.height; - } - @Override protected void createChildren() { super.createChildren(); @@ -50,8 +44,9 @@ public class PrefsButton extends Button { protected void layout() { super.layout(); - image.x = x; - image.y = y; + image.x = x + (width - image.width)/2f; + image.y = y + (height - image.height)/2f; + PixelScene.align(image); } @Override