Lowered item label height to compensate for them no longer being centered at the offset

This commit is contained in:
Collin Smith 2019-11-25 23:52:28 -08:00
parent 3442d3d3b2
commit 085e43d92e

View File

@ -62,7 +62,7 @@ public class ItemLoaderSystem extends IteratingSystem {
LabelComponent labelComponent = getEngine().createComponent(LabelComponent.class);
labelComponent.actor = itemComponent.item.details().header;
labelComponent.offset.set(box.xMin + box.width / 2, -box.yMax + box.height + labelComponent.actor.getHeight() / 2);
labelComponent.offset.set(box.xMin + box.width / 2, -box.yMax + box.height);
entity.add(labelComponent);
}
}