mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Use drawRect instead of drawGradientRect where appropriate. Also represent colors as hex to make them easier to read
This commit is contained in:
8 files changed
+11
-11
No files matched your search
@@ -54,7 +54,7 @@ public class GuiDictionary extends GuiMekanism {
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth();
|
||||
int x = guiWidth + 6;
|
||||
int y = guiHeight + 6;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
|
||||
@@ -112,14 +112,14 @@ public class GuiMItemStackFilter extends GuiItemStackFilter<MItemStackFilter, Ti
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth().colorMaskAlpha();
|
||||
int x = guiWidth + 12;
|
||||
int y = guiHeight + 19;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
if (xAxis >= 149 && xAxis <= 165 && yAxis >= 19 && yAxis <= 35) {
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth().colorMaskAlpha();
|
||||
int x = guiWidth + 149;
|
||||
int y = guiHeight + 19;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
|
||||
@@ -89,14 +89,14 @@ public class GuiMMaterialFilter extends GuiMaterialFilter<MMaterialFilter, TileE
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth().colorMaskAlpha();
|
||||
int x = guiWidth + 12;
|
||||
int y = guiHeight + 19;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
if (xAxis >= 149 && xAxis <= 165 && yAxis >= 19 && yAxis <= 35) {
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth().colorMaskAlpha();
|
||||
int x = guiWidth + 149;
|
||||
int y = guiHeight + 19;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
|
||||
@@ -84,7 +84,7 @@ public class GuiMModIDFilter extends GuiModIDFilter<MModIDFilter, TileEntityDigi
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth().colorMaskAlpha();
|
||||
int x = guiWidth + 149;
|
||||
int y = guiHeight + 19;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
|
||||
@@ -96,7 +96,7 @@ public class GuiMOreDictFilter extends GuiOreDictFilter<MOreDictFilter, TileEnti
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth().colorMaskAlpha();
|
||||
int x = guiWidth + 149;
|
||||
int y = guiHeight + 19;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
|
||||
@@ -179,7 +179,7 @@ public class GuiTItemStackFilter extends GuiItemStackFilter<TItemStackFilter, Ti
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth().colorMaskAlpha();
|
||||
int x = guiWidth + 12;
|
||||
int y = guiHeight + 19;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
|
||||
@@ -96,7 +96,7 @@ public class GuiTMaterialFilter extends GuiMaterialFilter<TMaterialFilter, TileE
|
||||
MekanismRenderHelper renderHelper = new MekanismRenderHelper(true).disableLighting().disableDepth().colorMaskAlpha();
|
||||
int x = guiWidth + 12;
|
||||
int y = guiHeight + 19;
|
||||
drawGradientRect(x, y, x + 16, y + 16, -2130706433, -2130706433);
|
||||
drawRect(x, y, x + 16, y + 16, 0x80FFFFFF);
|
||||
renderHelper.cleanup();
|
||||
}
|
||||
super.drawGuiContainerBackgroundLayer(partialTick, mouseX, mouseY);
|
||||
|
||||
@@ -83,8 +83,8 @@ public class GuiRobitRepair extends GuiRobit implements IContainerListener {
|
||||
byte b0 = 67;
|
||||
|
||||
if (fontRenderer.getUnicodeFlag()) {
|
||||
drawRect(i1 - 3, b0 - 2, xSize - 25 - 7, b0 + 10, -16777216);
|
||||
drawRect(i1 - 2, b0 - 1, xSize - 25 - 8, b0 + 9, -12895429);
|
||||
drawRect(i1 - 3, b0 - 2, xSize - 25 - 7, b0 + 10, 0xFF000000);
|
||||
drawRect(i1 - 2, b0 - 1, xSize - 25 - 8, b0 + 9, 0xFF3B3B3B);
|
||||
} else {
|
||||
fontRenderer.drawString(s, i1, b0 + 1, l);
|
||||
fontRenderer.drawString(s, i1 + 1, b0, l);
|
||||
|
||||
Reference in new issue
Block a user