mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-04-01 00:35:29 +02:00
Fix alignment of gemstones in the spell dismissal screen
This commit is contained in:
parent
f06dad53fc
commit
53f7e34e59
1 changed files with 5 additions and 5 deletions
|
@ -163,15 +163,15 @@ public class DismissSpellScreen extends GameGui {
|
||||||
@Override
|
@Override
|
||||||
public void render(DrawContext context, int mouseX, int mouseY, float tickDelta) {
|
public void render(DrawContext context, int mouseX, int mouseY, float tickDelta) {
|
||||||
MatrixStack matrices = context.getMatrices();
|
MatrixStack matrices = context.getMatrices();
|
||||||
copy.set(x, y, z, w);
|
|
||||||
copy.mul(matrices.peek().getPositionMatrix());
|
|
||||||
|
|
||||||
var type = actualSpell.getType().withTraits(actualSpell.getTraits());
|
var type = actualSpell.getType().withTraits(actualSpell.getTraits());
|
||||||
|
|
||||||
DrawableUtil.drawLine(matrices, 0, 0, (int)x, (int)y, 0xFFAAFF99);
|
copy.set(mouseX - width * 0.5F - x * 0.5F, mouseY - height * 0.5F - y * 0.5F, 0, 0);
|
||||||
|
|
||||||
|
DrawableUtil.drawLine(matrices, 0, 0, (int)x, (int)y, actualSpell.getAffinity().getColor().getColorValue());
|
||||||
DrawableUtil.renderItemIcon(context, actualSpell.isDead() ? UItems.BOTCHED_GEM.getDefaultStack() : type.getDefaultStack(),
|
DrawableUtil.renderItemIcon(context, actualSpell.isDead() ? UItems.BOTCHED_GEM.getDefaultStack() : type.getDefaultStack(),
|
||||||
copy.x - 8 + copy.z / 20F,
|
x - 8 - copy.x * 0.2F,
|
||||||
copy.y - 8 + copy.z / 20F,
|
y - 8 - copy.y * 0.2F,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue