Merge branch 'tambry-architecttabletextfield' into 6.0.x

This commit is contained in:
SpaceToad 2014-05-06 20:52:04 +02:00
commit 710f9bd453

View file

@ -8,6 +8,7 @@
*/
package buildcraft.builders.gui;
import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.GL11;
import net.minecraft.client.gui.GuiButton;
@ -59,6 +60,8 @@ public class GuiArchitect extends GuiBuildCraft {
int x = (width - xSize) / 2;
int y = (height - ySize) / 2;
Keyboard.enableRepeatEvents(true);
optionRotate = new GuiButton(0, x + 5, y + 30, 77, 20, "");
buttonList.add(optionRotate);
@ -79,6 +82,11 @@ public class GuiArchitect extends GuiBuildCraft {
updateButtons();
}
@Override
public void onGuiClosed() {
Keyboard.enableRepeatEvents(false);
}
@Override
protected void actionPerformed(GuiButton button) {
BlueprintReadConfiguration conf = architect.readConfiguration;