Changed GuiRenderSettings to have "Advanced" settings
Added GuiColorPicker and implemented it for Greenscreen color choosing
This commit is contained in:
@@ -38,4 +38,10 @@ public class MouseUtils {
|
||||
|
||||
return new Point(width, heigth);
|
||||
}
|
||||
|
||||
public static boolean isMouseWithinBounds(int minX, int minY, int width, int height) {
|
||||
Point mousePos = getMousePos();
|
||||
return mousePos.getX() >= minX && mousePos.getX() <= minX + width
|
||||
&& mousePos.getY() >= minY && mousePos.getY() <= minY + height;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class TooltipRenderer extends Gui {
|
||||
int i1 = 8;
|
||||
|
||||
if (textLines.length > 1) {
|
||||
i1 += 2 + (textLines.length - 1) * 10;
|
||||
i1 += (textLines.length - 1) * 12;
|
||||
}
|
||||
|
||||
if (j2 + maxLineWidth > screenWidth) {
|
||||
@@ -66,14 +66,9 @@ public class TooltipRenderer extends Gui {
|
||||
this.drawGradientRect(j2 - 3, k2 - 3, j2 + maxLineWidth + 3, k2 - 3 + 1, k1, k1);
|
||||
this.drawGradientRect(j2 - 3, k2 + i1 + 2, j2 + maxLineWidth + 3, k2 + i1 + 3, l1, l1);
|
||||
|
||||
int i = 0;
|
||||
for(String line : textLines) {
|
||||
mc.fontRendererObj.drawStringWithShadow(line, j2, k2, textColor);
|
||||
|
||||
if(i == 0) {
|
||||
k2 += 2;
|
||||
}
|
||||
|
||||
k2 += 12;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user