Skip to content

Commit c2436ac

Browse files
committed
Slightly adjust the visuals
1 parent 29d284a commit c2436ac

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/main/java/com/supermobtracker/client/event/ClientEvents.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void onGuiInit(GuiScreenEvent.InitGuiEvent.Post event) {
133133
}
134134

135135
// Starting position: top of the inventory GUI, right of the player preview
136-
int startX = guiLeft + 78;
136+
int startX = guiLeft + 77;
137137
int startY = guiTop + 8;
138138

139139
// For creative inventory, the layout is different, put it right to the search box
@@ -186,10 +186,10 @@ private int[] findNonCollidingPosition(int startX, int startY, int btnW, int btn
186186
if (!collidesWithAnyButton(x, y, btnW, btnH, buttons)) return new int[] { x, y };
187187

188188
// Move down
189-
y += btnH + 3;
189+
y += btnH + 5;
190190
}
191191

192-
x += btnW + 3;
192+
x += btnW + 5; // Move right to next column
193193
y = startY;
194194
}
195195

src/main/java/com/supermobtracker/client/gui/GuiIconButton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)
2626
// Draw frame and background of the button
2727
boolean hovered = mouseX >= this.x - 1 && mouseY >= this.y - 1 && mouseX < this.x + this.width + 1 && mouseY < this.y + this.height + 1;
2828
int color = hovered ? 0xFFBBBBBB : 0xFFCCCCCC;
29-
int borderColor = 0xFF555555;
29+
int borderColor = 0xFF333333;
3030
this.drawRect(this.x, this.y - 1, this.x + this.width, this.y, borderColor); // Top border
3131
this.drawRect(this.x, this.y + this.height, this.x + this.width, this.y + this.height + 1, borderColor); // Bottom border
3232
this.drawRect(this.x - 1, this.y, this.x, this.y + this.height, borderColor); // Left border

src/main/java/com/supermobtracker/client/gui/GuiMobTracker.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,11 +412,10 @@ private void drawStopSign(float centerX, float centerY, float radius, int color)
412412
// Diagonal bar
413413
GlStateManager.color(r, g, b, a);
414414

415-
// TODO: incline the bar a bit more (middle between 0-1 and 4-5)
416415
GL11.glLineWidth(4.0f);
417416
GL11.glBegin(GL11.GL_LINES);
418-
GL11.glVertex3f(pxInner[0], pyInner[0], 0f);
419-
GL11.glVertex3f(pxInner[4], pyInner[4], 0f);
417+
GL11.glVertex3f((px[7] + px[0]) / 2, (py[7] + py[0]) / 2, 0f);
418+
GL11.glVertex3f((px[3] + px[4]) / 2, (py[3] + py[4]) / 2, 0f);
420419
GL11.glEnd();
421420

422421
GlStateManager.shadeModel(GL11.GL_FLAT);
-266 Bytes
Loading

0 commit comments

Comments
 (0)