diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-01-17 22:19:57 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-01-17 22:19:57 +0800 |
| commit | 787d880828aed3aea46b61f0f5ebba44d1e33007 (patch) | |
| tree | 634656ecc76abf07e3cf892a90ea86fbd692543e /src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java | |
| parent | 17cbe448116391d19f50690708f48505bbe326fa (diff) | |
| download | RoughlyEnoughItems-787d880828aed3aea46b61f0f5ebba44d1e33007.tar.gz RoughlyEnoughItems-787d880828aed3aea46b61f0f5ebba44d1e33007.tar.bz2 RoughlyEnoughItems-787d880828aed3aea46b61f0f5ebba44d1e33007.zip | |
API Change
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java index 238efc2e3..fcdb2a58b 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java @@ -28,6 +28,10 @@ public abstract class ButtonWidget extends Drawable implements IWidget { private boolean pressed; private Rectangle bounds; + public ButtonWidget(Rectangle rectangle, String text) { + this(rectangle.x, rectangle.y, rectangle.width, rectangle.height, text); + } + public ButtonWidget(int x, int y, int width, int height, String text) { this.width = 200; this.height = 20; |
