mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 20:52:22 +00:00
Start Clean Up Gui
This commit is contained in:
1 parent
1b338efca9
commit
3e3c9c30a4
59 files changed
+134
-127
No files matched your search
@@ -31,7 +31,7 @@ public class ControlBreweryProgress extends ControlProgressBase {
|
||||
|
||||
protected ControlBreweryProgress(final IWidget parent, final int x, final int y) {
|
||||
super(parent, x, y, 34, 39);
|
||||
this.addAttribute(Attribute.MouseOver);
|
||||
this.addAttribute(Attribute.MOUSE_OVER);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -32,7 +32,7 @@ public class ControlFruitPressProgress extends ControlProgressBase {
|
||||
|
||||
protected ControlFruitPressProgress(final IWidget parent, final int x, final int y) {
|
||||
super(parent, x, y, 37, 69);
|
||||
this.addAttribute(Attribute.MouseOver);
|
||||
this.addAttribute(Attribute.MOUSE_OVER);
|
||||
this.addSelfEventHandler(new EventMouse.Down.Handler() {
|
||||
@Override
|
||||
public void onEvent(final EventMouse.Down event) {
|
||||
|
||||
@@ -131,7 +131,7 @@ public class ControlTileSelect extends Control implements IControlValue<IDesign>
|
||||
protected ControlTile(final IWidget parent, final int x, final int y, final IDesign value) {
|
||||
super(parent, x, y, 18, 18);
|
||||
this.value = value;
|
||||
this.addAttribute(Attribute.MouseOver);
|
||||
this.addAttribute(Attribute.MOUSE_OVER);
|
||||
this.addSelfEventHandler(new EventMouse.Down.Handler() {
|
||||
@Override
|
||||
public void onEvent(final EventMouse.Down event) {
|
||||
|
||||
@@ -41,7 +41,7 @@ public class WindowDesigner extends Window {
|
||||
public void onEvent(final EventTextEdit event) {
|
||||
WindowDesigner.this.tileSelect.refresh(event.getValue());
|
||||
}
|
||||
}.setOrigin(EventHandler.Origin.DirectChild, this));
|
||||
}.setOrigin(EventHandler.Origin.DIRECT_CHILD, this));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
@@ -11,6 +11,6 @@ public class ControlDropDownMenu extends Panel {
|
||||
public ControlDropDownMenu(final IWidget parent, final int x, final int y, final int width, final int height) {
|
||||
super(parent, x, y, width, 2, MinecraftGUI.PanelType.Gray);
|
||||
this.stayOpenOnChildClick = false;
|
||||
this.addAttribute(Attribute.CanFocus);
|
||||
this.addAttribute(Attribute.CAN_FOCUS);
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,7 @@ public class ControlFluidDisplay extends Control implements ITooltip {
|
||||
|
||||
public void setTooltip() {
|
||||
this.hastooltip = true;
|
||||
this.addAttribute(Attribute.MouseOver);
|
||||
this.addAttribute(Attribute.MOUSE_OVER);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -30,7 +30,7 @@ public class ControlSlotFluid extends Control implements ITooltip {
|
||||
|
||||
public ControlSlotFluid(final IWidget parent, final int x, final int y, final int size, @Nullable final FluidStack fluid) {
|
||||
super(parent, x, y, size, size);
|
||||
this.addAttribute(Attribute.MouseOver);
|
||||
this.addAttribute(Attribute.MOUSE_OVER);
|
||||
this.itemDisplay = new ControlFluidDisplay(this, 1, 1, size - 2);
|
||||
this.fluidStack = fluid;
|
||||
this.addSelfEventHandler(new EventWidget.ChangeSize.Handler() {
|
||||
|
||||
Reference in new issue
Block a user