mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-25 10:25:50 +07:00
Lowered item label height to compensate for them no longer being centered at the offset
This commit is contained in:
parent
3442d3d3b2
commit
085e43d92e
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user