}
}
@Override
public void draw() {
MusePoint2D center = ul.plus(br).times(0.5);
RenderState.blendingOn();
RenderState.on2D();
if (selecting) {
MuseRenderer.drawCenteredString("Press Key", center.x(), center.y());
RenderState.off2D();
RenderState.blendingOff();
return;
}
newKeybindButton.draw();
trashKeybindButton.draw();
MuseTextureUtils.pushTexture(MuseTextureUtils.ITEM_TEXTURE_QUILT());
MuseRenderer.drawCenteredString("Use 'new' to bind new keys.", center.x(), center.y() + 40);
MuseRenderer.drawCenteredString("Drag and drop modules to bind them to keys.", center.x(), center.y() + 50);
MuseRenderer.drawCenteredString("Drop keys on 'trash' to unbind them.", center.x(), center.y() + 60);
if (takenTime + 1000 > System.currentTimeMillis()) {
MusePoint2D pos = newKeybindButton.getPosition().plus(new MusePoint2D(0, -20));
MuseRenderer.drawCenteredString("Taken!", pos.x(), pos.y());
}
for (ClickableModule module : modules) {
module.draw();
}
for (ClickableKeybinding keybind : KeybindManager.getKeybindings()) {