Merging 1.7.5 Source: ui changes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.shatteredpixel.shatteredpixeldungeon.ui;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
|
||||
import com.watabou.noosa.Image;
|
||||
|
||||
/**
|
||||
@@ -22,15 +23,17 @@ public class ResumeIndicator extends Tag {
|
||||
@Override
|
||||
protected void createChildren() {
|
||||
super.createChildren();
|
||||
icon = Icons.get(Icons.RESUME);
|
||||
add(icon);
|
||||
|
||||
icon = Icons.get( Icons.RESUME );
|
||||
add( icon );
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void layout() {
|
||||
super.layout();
|
||||
icon.x = x + (width - icon.width()) / 2;
|
||||
icon.y = y + (height - icon.height()) / 2;
|
||||
|
||||
icon.x = PixelScene.align( PixelScene.uiCamera, x+1 + (width - icon.width) / 2 );
|
||||
icon.y = PixelScene.align( PixelScene.uiCamera, y + (height - icon.height) / 2 );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user