mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-23 21:49:49 +00:00
port to forestry 4.2
This commit is contained in:
1 parent
dbc5c1a564
commit
f969f63b66
3697 files changed
+78372
No files matched your search
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// Decompiled by Procyon v0.5.30
|
||||
//
|
||||
|
||||
package binnie.craftgui.mod.database;
|
||||
|
||||
import binnie.craftgui.resource.minecraft.StandardTexture;
|
||||
import binnie.craftgui.resource.minecraft.CraftGUITextureSheet;
|
||||
import binnie.craftgui.core.geometry.IArea;
|
||||
import binnie.craftgui.core.geometry.IPoint;
|
||||
import binnie.craftgui.resource.minecraft.CraftGUITexture;
|
||||
import binnie.craftgui.core.CraftGUI;
|
||||
import binnie.core.genetics.BreedingSystem;
|
||||
import binnie.craftgui.core.IWidget;
|
||||
import binnie.craftgui.resource.Texture;
|
||||
import binnie.craftgui.controls.core.Control;
|
||||
|
||||
class ControlBreedingProgress extends Control
|
||||
{
|
||||
private static Texture Progress;
|
||||
private float percentage;
|
||||
private int colour;
|
||||
|
||||
public ControlBreedingProgress(final IWidget parent, final int x, final int y, final int width, final int height, final BreedingSystem system, final float percentage) {
|
||||
super(parent, x, y, width, height);
|
||||
this.percentage = percentage;
|
||||
this.colour = system.getColour();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRenderBackground() {
|
||||
CraftGUI.Render.texture(CraftGUITexture.PanelBlack, this.getArea());
|
||||
final IArea area = this.getArea().inset(1);
|
||||
area.setSize(new IPoint(area.size().x() * this.percentage, area.size().y()));
|
||||
CraftGUI.Render.colour(this.colour);
|
||||
CraftGUI.Render.texture(ControlBreedingProgress.Progress, area);
|
||||
}
|
||||
|
||||
static {
|
||||
ControlBreedingProgress.Progress = new StandardTexture(80, 22, 4, 4, CraftGUITextureSheet.Controls2);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user