mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 11:29:23 +00:00
Fix Analyst Window
This commit is contained in:
1 parent
ed3cfe12a1
commit
714ba830d7
2 files changed
+8
-12
No files matched your search
@@ -19,17 +19,6 @@ public class AnalystPanel extends Panel {
|
||||
public AnalystPanel(WindowAnalyst window) {
|
||||
super(window, 16, 54, 280, 164, MinecraftGUI.PanelType.OUTLINE);
|
||||
this.window = window;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void onRenderBackground(int guiWidth, int guiHeight) {
|
||||
RenderUtil.drawGradientRect(getArea(), 1157627903, 1728053247);
|
||||
super.onRenderBackground(guiWidth, guiHeight);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialise() {
|
||||
setColor(4473924);
|
||||
int sectionWidth = (getWidth() - 8 - 4) / 2;
|
||||
window.leftPage = new ControlScrollableContent<IWidget>(this, 3, 3, sectionWidth + 2, getHeight() - 8 + 2, 0) {
|
||||
@@ -84,4 +73,11 @@ public class AnalystPanel extends Panel {
|
||||
};
|
||||
window.analystPageSize = new Area(1, 1, sectionWidth, getHeight() - 8);
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void onRenderBackground(int guiWidth, int guiHeight) {
|
||||
RenderUtil.drawGradientRect(getArea(), 1157627903, 1728053247);
|
||||
super.onRenderBackground(guiWidth, guiHeight);
|
||||
}
|
||||
}
|
||||
@@ -147,7 +147,7 @@ public class WindowAnalyst extends Window {
|
||||
int y = 28;
|
||||
if (isDatabase) {
|
||||
for (BreedingSystem syst : Binnie.GENETICS.getActiveSystems()) {
|
||||
new ControlSystemButton(x, y, this, system);
|
||||
new ControlSystemButton(x, y, this, syst);
|
||||
x += 22;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user