aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-12 21:28:36 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-12 21:28:36 +0800
commitdfa3067117e96aa630a88952f0e5d4535bee8bf3 (patch)
tree21550ef69e146b18158be0c49a2a7fcf581bcc90 /src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
parent936dc5f6dc09ad9a552728f9db06f11b4828bad2 (diff)
downloadRoughlyEnoughItems-dfa3067117e96aa630a88952f0e5d4535bee8bf3.tar.gz
RoughlyEnoughItems-dfa3067117e96aa630a88952f0e5d4535bee8bf3.tar.bz2
RoughlyEnoughItems-dfa3067117e96aa630a88952f0e5d4535bee8bf3.zip
Basic Config
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.java14
1 files changed, 7 insertions, 7 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 2a69df8ff..238efc2e3 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java
@@ -28,17 +28,17 @@ public abstract class ButtonWidget extends Drawable implements IWidget {
private boolean pressed;
private Rectangle bounds;
- public ButtonWidget(int int_2, int int_3, int int_4, int int_5, String string_1) {
+ public ButtonWidget(int x, int y, int width, int height, String text) {
this.width = 200;
this.height = 20;
this.enabled = true;
this.visible = true;
- this.x = int_2;
- this.y = int_3;
- this.width = int_4;
- this.height = int_5;
- this.text = string_1;
- this.bounds = new Rectangle(x, y, width, height);
+ this.x = x;
+ this.y = y;
+ this.width = width;
+ this.height = height;
+ this.text = text;
+ this.bounds = new Rectangle(x, this.y, this.width, this.height);
}
public Rectangle getBounds() {