mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 08:18:00 +01:00
Fix layering on the tribe confirmation screen
This commit is contained in:
parent
1ff0e89724
commit
797e2101b5
2 changed files with 6 additions and 14 deletions
|
@ -104,10 +104,12 @@ public class TribeConfirmationScreen extends GameGui implements HidesHud {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
||||||
|
context.getMatrices().push();
|
||||||
|
context.getMatrices().translate(0, 0, -2);
|
||||||
if (parent != null) {
|
if (parent != null) {
|
||||||
context.getMatrices().push();
|
context.getMatrices().push();
|
||||||
context.getMatrices().translate(0, 0, -100);
|
context.getMatrices().translate(0, 0, -100);
|
||||||
parent.render(context, 0, 0, delta);
|
parent.render(context, -1, -1, delta);
|
||||||
context.getMatrices().pop();
|
context.getMatrices().pop();
|
||||||
}
|
}
|
||||||
renderBackground(context);
|
renderBackground(context);
|
||||||
|
@ -120,30 +122,20 @@ public class TribeConfirmationScreen extends GameGui implements HidesHud {
|
||||||
int left = (width - columnWidth) / 2;
|
int left = (width - columnWidth) / 2;
|
||||||
|
|
||||||
top += 40;
|
top += 40;
|
||||||
|
|
||||||
final int zOffset = 0;
|
final int zOffset = 0;
|
||||||
|
|
||||||
context.drawTexture(TribeSelectionScreen.TEXTURE, left + zOffset, top, 0, 70, 123, columnHeight);
|
context.drawTexture(TribeSelectionScreen.TEXTURE, left + zOffset, top, 0, 70, 123, columnHeight);
|
||||||
|
|
||||||
context.drawTexture(TribeSelectionScreen.TEXTURE, left + segmentWidth + zOffset, top, 20, 70, 123, columnHeight);
|
context.drawTexture(TribeSelectionScreen.TEXTURE, left + segmentWidth + zOffset, top, 20, 70, 123, columnHeight);
|
||||||
|
context.drawTexture(TribeSelectionScreen.TEXTURE, width - left - segmentWidth + zOffset + 1, top, 10, 70, 123, columnHeight);
|
||||||
context.drawTexture(TribeSelectionScreen.TEXTURE, width - left - segmentWidth + zOffset, top, 10, 70, 123, columnHeight);
|
|
||||||
|
|
||||||
top -= 31;
|
top -= 31;
|
||||||
|
|
||||||
left = width / 2;
|
left = width / 2;
|
||||||
|
|
||||||
context.drawTexture(TribeSelectionScreen.TEXTURE, left - 55, top, 140, 70, 21, 50);
|
context.drawTexture(TribeSelectionScreen.TEXTURE, left - 55, top, 140, 70, 21, 50);
|
||||||
context.drawTexture(TribeSelectionScreen.TEXTURE, left + 35, top, 148, 70, 21, 50);
|
context.drawTexture(TribeSelectionScreen.TEXTURE, left + 35, top, 148, 70, 21, 50);
|
||||||
|
|
||||||
textBody.render(context, mouseX, mouseY, delta);
|
textBody.render(context, mouseX, mouseY, delta);
|
||||||
|
context.getMatrices().pop();
|
||||||
context.getMatrices().push();
|
|
||||||
context.getMatrices().translate(0, 0, 2);
|
|
||||||
context.drawTexture(TribeSelectionScreen.TEXTURE, left - 35, top - 5, 10, 70, 69, 50);
|
context.drawTexture(TribeSelectionScreen.TEXTURE, left - 35, top - 5, 10, 70, 69, 50);
|
||||||
context.drawTexture(TribeSelectionScreen.TEXTURE, left - 35, top - 15, 10, 70, 69, 50);
|
context.drawTexture(TribeSelectionScreen.TEXTURE, left - 35, top - 15, 10, 70, 69, 50);
|
||||||
super.render(context, mouseX, mouseY, delta);
|
super.render(context, mouseX, mouseY, delta);
|
||||||
context.getMatrices().pop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"biomes": "#minecraft:is_forest",
|
"biomes": "#minecraft:is_forest",
|
||||||
"max_distance_from_center": 112,
|
"max_distance_from_center": 112,
|
||||||
"project_start_to_heightmap": "WORLD_SURFACE_WG",
|
"project_start_to_heightmap": "WORLD_SURFACE_WG",
|
||||||
"size": 20,
|
"size": 7,
|
||||||
"spawn_overrides": {
|
"spawn_overrides": {
|
||||||
"monster": {
|
"monster": {
|
||||||
"bounding_box": "piece",
|
"bounding_box": "piece",
|
||||||
|
|
Loading…
Reference in a new issue