v2.5.0: fixed the position of secondary icons in the journal grid UI

This commit is contained in:
Evan Debenham
2024-07-02 13:59:53 -04:00
parent 8e99b51cf9
commit b0b2a32a84

View File

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