fixed positioning
This commit is contained in:
@@ -27,9 +27,10 @@ public class SaturnUi extends Screen {
|
|||||||
public static void drawHighResTexture(DrawContext context, Identifier t, int x, int y, int w, int h) {
|
public static void drawHighResTexture(DrawContext context, Identifier t, int x, int y, int w, int h) {
|
||||||
MatrixStack matricies = context.getMatrices();
|
MatrixStack matricies = context.getMatrices();
|
||||||
matricies.push();
|
matricies.push();
|
||||||
|
matricies.translate(x, y, 0);
|
||||||
matricies.scale(.25f, .25f, 1.0f);
|
matricies.scale(.25f, .25f, 1.0f);
|
||||||
|
|
||||||
context.drawTexture(RenderLayer::getGuiTextured, t, x, y, 0, 0,
|
context.drawTexture(RenderLayer::getGuiTextured, t, 0, 0, 0, 0,
|
||||||
w * 4, h * 4, w * 4, h * 4);
|
w * 4, h * 4, w * 4, h * 4);
|
||||||
|
|
||||||
matricies.pop();
|
matricies.pop();
|
||||||
@@ -38,9 +39,10 @@ public class SaturnUi extends Screen {
|
|||||||
public static void drawHighResTexture(DrawContext context, Identifier t, int x, int y, int w, int h, int c) {
|
public static void drawHighResTexture(DrawContext context, Identifier t, int x, int y, int w, int h, int c) {
|
||||||
MatrixStack matricies = context.getMatrices();
|
MatrixStack matricies = context.getMatrices();
|
||||||
matricies.push();
|
matricies.push();
|
||||||
|
matricies.translate(x, y, 0);
|
||||||
matricies.scale(.25f, .25f, 1.0f);
|
matricies.scale(.25f, .25f, 1.0f);
|
||||||
|
|
||||||
context.drawTexture(RenderLayer::getGuiTextured, t, x, y, 0, 0,
|
context.drawTexture(RenderLayer::getGuiTextured, t, 0, 0, 0, 0,
|
||||||
w * 4, h * 4, w * 4, h * 4, c);
|
w * 4, h * 4, w * 4, h * 4, c);
|
||||||
|
|
||||||
matricies.pop();
|
matricies.pop();
|
||||||
@@ -49,13 +51,14 @@ public class SaturnUi extends Screen {
|
|||||||
public static void drawHighResGuiTexture(DrawContext context, Identifier t, int x, int y, int w, int h, int c) {
|
public static void drawHighResGuiTexture(DrawContext context, Identifier t, int x, int y, int w, int h, int c) {
|
||||||
MatrixStack matricies = context.getMatrices();
|
MatrixStack matricies = context.getMatrices();
|
||||||
matricies.push();
|
matricies.push();
|
||||||
|
matricies.translate(x, y, 0);
|
||||||
matricies.scale(.25f, .25f, 1.0f);
|
matricies.scale(.25f, .25f, 1.0f);
|
||||||
|
|
||||||
context.drawGuiTexture(
|
context.drawGuiTexture(
|
||||||
RenderLayer::getGuiTextured,
|
RenderLayer::getGuiTextured,
|
||||||
t,
|
t,
|
||||||
x,
|
0,
|
||||||
y,
|
0,
|
||||||
w * 4,
|
w * 4,
|
||||||
h * 4,
|
h * 4,
|
||||||
c);
|
c);
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.1 KiB |
Reference in New Issue
Block a user