info box component: vertically center images
This commit is contained in:
@@ -71,7 +71,7 @@ public class InfoBoxComponent implements RenderableEntity
|
|||||||
{
|
{
|
||||||
graphics.drawImage(image,
|
graphics.drawImage(image,
|
||||||
position.x + (BOX_SIZE - image.getWidth()) / 2,
|
position.x + (BOX_SIZE - image.getWidth()) / 2,
|
||||||
SEPARATOR, null);
|
(BOX_SIZE - image.getHeight()) / 2, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
final TextComponent textComponent = new TextComponent();
|
final TextComponent textComponent = new TextComponent();
|
||||||
|
|||||||
Reference in New Issue
Block a user