Revert "Increase Z value of GUIs"

This reverts commit fd3f22da29.
This commit is contained in:
DBotThePony 2021-08-23 20:54:41 +07:00
parent fd3f22da29
commit 2753997898
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 1 additions and 17 deletions

View File

@ -455,7 +455,7 @@ public abstract class MatteryScreen<T extends MatteryMenu> extends AbstractConta
}
}
float depth = -400f;
float depth = -900f;
for (var panel : panels) {
panel.set3DDepth(depth);

View File

@ -10,9 +10,6 @@ import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import static org.lwjgl.opengl.GL11.GL_ALWAYS;
import static org.lwjgl.opengl.GL11.GL_LESS;
/**
* Superclass of all panels
* This panel represent part of GMod's Panels API
@ -155,21 +152,8 @@ public class EditablePanel implements GuiEventListener {
}
stack.pushPose();
/*if (parent == null) {
RenderSystem.depthFunc(GL_ALWAYS);
RenderSystem.depthMask(true);
stack.translate(parent_x, parent_y, 0);
} else {*/
stack.translate(parent_x, parent_y, accumulated_depth);
//}
innerRender(stack, mouse_x, mouse_y, flag);
/*if (parent == null) {
RenderSystem.depthFunc(GL_LESS);
}*/
stack.popPose();
var most_depth = accumulated_depth;