Refactoring custom GUI components

This commit is contained in:
kordum committed 2017-06-29 11:25:44 +03:00
1 parent e83d0e3fa6
commit 2475710a6a
70 files changed
+353 -343

No files matched your search

@@ -38,9 +38,9 @@ public class ControlSlotFluid extends Control implements ITooltip {
@Override
public void onRenderBackground() {
int size = (int) getSize().x();
CraftGUI.Render.texture(CraftGUITexture.Slot, getArea());
CraftGUI.render.texture(CraftGUITexture.Slot, getArea());
if (getSuperParent().getMousedOverWidget() == this) {
CraftGUI.Render.gradientRect(new IArea(new IPoint(1.0f, 1.0f), getArea().size().sub(new IPoint(2.0f, 2.0f))), 0x80ffffff, 0x80ffffff);
CraftGUI.render.gradientRect(new IArea(new IPoint(1.0f, 1.0f), getArea().size().sub(new IPoint(2.0f, 2.0f))), 0x80ffffff, 0x80ffffff);
}
}