Start Clean Up Gui

This commit is contained in:
Nedelosk committed 2017-08-01 00:37:15 +02:00
1 parent 1b338efca9
commit 3e3c9c30a4
59 files changed
+134 -127

No files matched your search

@@ -18,7 +18,7 @@ public class ControlColorDisplay extends Control implements IControlValue<IFlowe
public ControlColorDisplay(IWidget parent, int x, int y, IFlowerColor value) {
super(parent, x, y, 16, 16);
this.value = value;
addAttribute(Attribute.MouseOver);
addAttribute(Attribute.MOUSE_OVER);
}
@Override
@@ -27,7 +27,7 @@ public class ControlColorMixSymbol extends Control implements ITooltip {
super(parent, x, y, 16 + type * 16, 16);
this.value = value;
this.type = type;
addAttribute(Attribute.MouseOver);
addAttribute(Attribute.MOUSE_OVER);
}
@Override
@@ -20,7 +20,7 @@ public class ControlColorOption extends ControlTextOption<IFlowerColor> {
super(controlList, option, option.getColorName(), y);
setSize(new Point(getSize().x(), 20));
controlBee = new ControlColorDisplay(this, 2, 2, option);
addAttribute(Attribute.MouseOver);
addAttribute(Attribute.MOUSE_OVER);
CraftGUIUtil.moveWidget(textWidget, new Point(22, 0));
textWidget.setSize(textWidget.getSize().sub(new Point(24, 0)));
int th = CraftGUI.RENDER.textHeight(textWidget.getValue(), textWidget.getSize().x());