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 3827e3245..609d213d9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java @@ -22,6 +22,7 @@ package com.shatteredpixel.shatteredpixeldungeon.scenes; import android.opengl.GLES20; + import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; import com.shatteredpixel.shatteredpixeldungeon.effects.BannerSprites; @@ -157,7 +158,7 @@ public class TitleScene extends PixelScene { add( btnPrefs ); LanguageButton btnLang = new LanguageButton(); - btnLang.setPos(16, 1); + btnLang.setRect(16, 0, 16, 15); 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 fc15ca75a..61e5f1e7a 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, 40, 110, 56 ) ); + icon.frame( icon.texture.uvRect( 94, 42, 110, 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/LanguageButton.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/LanguageButton.java index 847a264a7..c7fcb5f0d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/LanguageButton.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/LanguageButton.java @@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.ui; import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; +import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene; import com.shatteredpixel.shatteredpixeldungeon.windows.WndLangs; import com.watabou.noosa.Game; import com.watabou.noosa.Image; @@ -33,13 +34,6 @@ public class LanguageButton extends Button { private Image image; - public LanguageButton() { - super(); - - width = image.width; - height = image.height; - } - @Override protected void createChildren() { super.createChildren(); @@ -83,8 +77,9 @@ public class LanguageButton 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