Widen scrollbars
This commit is contained in:
parent
41fd681200
commit
7f9825201d
|
@ -29,6 +29,8 @@ public class ColorComponent extends TextComponent {
|
||||||
this.gearTexture = new Texture("gear_wheel.png");
|
this.gearTexture = new Texture("gear_wheel.png");
|
||||||
this.gearTextureEnabled = new Texture("gear_wheel-enabled.png");
|
this.gearTextureEnabled = new Texture("gear_wheel-enabled.png");
|
||||||
this.checkTexture = new Texture("check.png");
|
this.checkTexture = new Texture("check.png");
|
||||||
|
|
||||||
|
this.setH(9);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ColorComponent(String name, int defaultColor, String customDisplayValue) {
|
public ColorComponent(String name, int defaultColor, String customDisplayValue) {
|
||||||
|
@ -39,6 +41,11 @@ public class ColorComponent extends TextComponent {
|
||||||
@Override
|
@Override
|
||||||
public void render(int mouseX, int mouseY, float partialTicks) {
|
public void render(int mouseX, int mouseY, float partialTicks) {
|
||||||
//super.render(mouseX, mouseY, partialTicks);
|
//super.render(mouseX, mouseY, partialTicks);
|
||||||
|
/*if (this.focused) {
|
||||||
|
this.setH(50);
|
||||||
|
} else {
|
||||||
|
this.setH(9);
|
||||||
|
}*/
|
||||||
|
|
||||||
if (isMouseInside(mouseX, mouseY))
|
if (isMouseInside(mouseX, mouseY))
|
||||||
RenderUtil.drawGradientRect(this.getX(), this.getY(), this.getX() + this.getW(), this.getY() + this.getH(), 0x30909090, 0x00101010);
|
RenderUtil.drawGradientRect(this.getX(), this.getY(), this.getX() + this.getW(), this.getY() + this.getH(), 0x30909090, 0x00101010);
|
||||||
|
|
|
@ -29,7 +29,7 @@ public final class ColorsComponent extends ResizableHudComponent {
|
||||||
private int totalHeight;
|
private int totalHeight;
|
||||||
|
|
||||||
private final int MAX_WIDTH = 215;
|
private final int MAX_WIDTH = 215;
|
||||||
private final int SCROLL_WIDTH = 4;
|
private final int SCROLL_WIDTH = 5;
|
||||||
private final int BORDER = 2;
|
private final int BORDER = 2;
|
||||||
private final int TEXT_GAP = 1;
|
private final int TEXT_GAP = 1;
|
||||||
private final int TITLE_BAR_HEIGHT = mc.fontRenderer.FONT_HEIGHT + 1;
|
private final int TITLE_BAR_HEIGHT = mc.fontRenderer.FONT_HEIGHT + 1;
|
||||||
|
@ -181,7 +181,6 @@ public final class ColorsComponent extends ResizableHudComponent {
|
||||||
this.currentColorComponent.setX(this.getX() + 20);
|
this.currentColorComponent.setX(this.getX() + 20);
|
||||||
this.currentColorComponent.setY(this.getY() + (this.getH() / 2));
|
this.currentColorComponent.setY(this.getY() + (this.getH() / 2));
|
||||||
this.currentColorComponent.setW(this.getW() - 40);
|
this.currentColorComponent.setW(this.getW() - 40);
|
||||||
this.currentColorComponent.setH(9);
|
|
||||||
|
|
||||||
// draw bg
|
// draw bg
|
||||||
RenderUtil.drawRect(this.currentColorComponent.getX(), this.currentColorComponent.getY(), this.currentColorComponent.getX() + this.currentColorComponent.getW(), this.currentColorComponent.getY() + this.currentColorComponent.getH(), 0xFF101010);
|
RenderUtil.drawRect(this.currentColorComponent.getX(), this.currentColorComponent.getY(), this.currentColorComponent.getX() + this.currentColorComponent.getW(), this.currentColorComponent.getY() + this.currentColorComponent.getH(), 0xFF101010);
|
||||||
|
|
|
@ -22,7 +22,7 @@ public final class HubComponent extends ResizableHudComponent {
|
||||||
private int totalHeight;
|
private int totalHeight;
|
||||||
|
|
||||||
private final int MAX_WIDTH = 125;
|
private final int MAX_WIDTH = 125;
|
||||||
private final int SCROLL_WIDTH = 4;
|
private final int SCROLL_WIDTH = 5;
|
||||||
private final int BORDER = 2;
|
private final int BORDER = 2;
|
||||||
private final int TEXT_GAP = 1;
|
private final int TEXT_GAP = 1;
|
||||||
private final int TEXTURE_SIZE = 8;
|
private final int TEXTURE_SIZE = 8;
|
||||||
|
|
|
@ -36,7 +36,7 @@ public final class ModuleListComponent extends ResizableHudComponent {
|
||||||
private int totalHeight;
|
private int totalHeight;
|
||||||
|
|
||||||
private final int MAX_WIDTH = 150;
|
private final int MAX_WIDTH = 150;
|
||||||
private final int SCROLL_WIDTH = 4;
|
private final int SCROLL_WIDTH = 5;
|
||||||
private final int BORDER = 2;
|
private final int BORDER = 2;
|
||||||
private final int TEXT_GAP = 1;
|
private final int TEXT_GAP = 1;
|
||||||
private final int TEXTURE_SIZE = 8;
|
private final int TEXTURE_SIZE = 8;
|
||||||
|
@ -637,7 +637,7 @@ public final class ModuleListComponent extends ResizableHudComponent {
|
||||||
RenderUtil.drawLine(component.getX() - offsetX + 1, component.getY() + component.getH() / 2, component.getX(), component.getY() + component.getH() / 2, 2.0f, 0xFF202020);
|
RenderUtil.drawLine(component.getX() - offsetX + 1, component.getY() + component.getH() / 2, component.getX(), component.getY() + component.getH() / 2, 2.0f, 0xFF202020);
|
||||||
}
|
}
|
||||||
|
|
||||||
offsetY += Minecraft.getMinecraft().fontRenderer.FONT_HEIGHT + 1;
|
offsetY += component.getH() + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue