Fix regressions

This commit is contained in:
Sollace 2024-10-10 17:29:28 +01:00
parent 02b62372cf
commit 49847d1479
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 10 additions and 2 deletions

View file

@ -101,6 +101,11 @@ public class DismissSpellScreen extends GameGui {
matrices.pop();
}
@Override
public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta) {
}
@Override
public boolean shouldPause() {
return false;

View file

@ -103,7 +103,7 @@ public class TribeConfirmationScreen extends GameGui implements HidesHud {
}
@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta) {
context.getMatrices().push();
context.getMatrices().translate(0, 0, -2);
if (parent != null) {
@ -112,6 +112,7 @@ public class TribeConfirmationScreen extends GameGui implements HidesHud {
parent.render(context, -1, -1, delta);
context.getMatrices().pop();
}
renderInGameBackground(context);
final int columnHeight = 180;
final int columnWidth = 310;
@ -132,9 +133,11 @@ public class TribeConfirmationScreen extends GameGui implements HidesHud {
context.drawTexture(TribeSelectionScreen.TEXTURE, left + 35, top, 148, 70, 21, 50);
textBody.render(context, mouseX, mouseY, delta);
context.getMatrices().pop();
context.drawTexture(TribeSelectionScreen.TEXTURE, left - 35, top - 5, 10, 70, 69, 50);
context.drawTexture(TribeSelectionScreen.TEXTURE, left - 35, top - 15, 10, 70, 69, 50);
super.render(context, mouseX, mouseY, delta);
}
@Override