v2.5.0: fixed the position of secondary icons in the journal grid UI
This commit is contained in:
@@ -23,7 +23,6 @@ package com.shatteredpixel.shatteredpixeldungeon.ui;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite;
|
||||
import com.watabou.noosa.BitmapText;
|
||||
import com.watabou.noosa.ColorBlock;
|
||||
import com.watabou.noosa.Image;
|
||||
import com.watabou.noosa.Visual;
|
||||
@@ -219,9 +218,8 @@ public class ScrollingGridPane extends ScrollPane {
|
||||
PixelScene.align(icon);
|
||||
|
||||
if (secondIcon != null){
|
||||
secondIcon.x = x + width()-secondIcon.width()-1;
|
||||
secondIcon.y = y + height()-secondIcon.height()-1;
|
||||
if (secondIcon instanceof BitmapText) secondIcon.y++;
|
||||
secondIcon.x = x + width()-secondIcon.width();
|
||||
secondIcon.y = y;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user