v0.6.3: corrected some icon sprite dimensions

This commit is contained in:
Evan Debenham 2018-01-17 23:39:31 -05:00
parent a8ccc71954
commit 6736b53657
3 changed files with 11 additions and 12 deletions

View File

@ -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();

View File

@ -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 ) );

View File

@ -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