mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-18 03:25:07 +00:00
Fix soil item model and start to move craftgui
This commit is contained in:
1 parent
de2dc3dabb
commit
3ed915f9d5
12 files changed
+14
-16
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package binnie.botany.craftgui;
|
||||
|
||||
import binnie.botany.api.IColourMix;
|
||||
import binnie.core.genetics.BreedingSystem;
|
||||
import binnie.craftgui.controls.listbox.ControlList;
|
||||
import binnie.craftgui.controls.listbox.ControlOption;
|
||||
import binnie.craftgui.mod.database.WindowAbstractDatabase;
|
||||
|
||||
public class ControlColourMixItem extends ControlOption<IColourMix> {
|
||||
ControlColourDisplay itemWidget1;
|
||||
ControlColourDisplay itemWidget2;
|
||||
ControlColourDisplay itemWidget3;
|
||||
ControlColourMixSymbol addSymbol;
|
||||
ControlColourMixSymbol arrowSymbol;
|
||||
|
||||
public ControlColourMixItem(final ControlList<IColourMix> controlList, final IColourMix option, final int y) {
|
||||
super(controlList, option, y);
|
||||
this.itemWidget1 = new ControlColourDisplay(this, 4.0f, 4.0f);
|
||||
this.itemWidget2 = new ControlColourDisplay(this, 44.0f, 4.0f);
|
||||
this.itemWidget3 = new ControlColourDisplay(this, 104.0f, 4.0f);
|
||||
this.addSymbol = new ControlColourMixSymbol(this, 24, 4, 0);
|
||||
this.arrowSymbol = new ControlColourMixSymbol(this, 64, 4, 1);
|
||||
final BreedingSystem system = ((WindowAbstractDatabase) this.getSuperParent()).getBreedingSystem();
|
||||
if (this.getValue() != null) {
|
||||
this.itemWidget1.setValue(this.getValue().getColourFirst());
|
||||
this.itemWidget2.setValue(this.getValue().getColourSecond());
|
||||
this.itemWidget3.setValue(this.getValue().getResult());
|
||||
this.addSymbol.setValue(this.getValue());
|
||||
this.arrowSymbol.setValue(this.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user