X-Git-Url: https://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavedroid%2Fmenu%2Fobjects%2FButton.java;h=123b9b55f8ac646f41a15ea31dca430e8b2021fb;hp=f0da583f5c0e9c0127402e8eb067778b77211337;hb=ef32f2e88b9c0daa411d0c304ce62b1235541fb1;hpb=562b0e19a771974bb596db6815dce1a01a761ce5 diff --git a/core/src/ru/deadsoftware/cavedroid/menu/objects/Button.java b/core/src/ru/deadsoftware/cavedroid/menu/objects/Button.java index f0da583..123b9b5 100644 --- a/core/src/ru/deadsoftware/cavedroid/menu/objects/Button.java +++ b/core/src/ru/deadsoftware/cavedroid/menu/objects/Button.java @@ -4,18 +4,18 @@ import com.badlogic.gdx.math.Rectangle; public class Button { - private Rectangle rect; - private String label; + private final Rectangle rect; + private final String label; private int type; - public Button(String label, float x, float y, float width, float heigth, int type) { + public Button(String label, float x, float y, float width, float height, int type) { this.label = label; - rect = new Rectangle(x, y, width, heigth); + rect = new Rectangle(x, y, width, height); this.type = type; } - public Button(String label, float x, float y, float width, float heigth) { - this(label, x, y, width, heigth, 1); + public Button(String label, float x, float y, float width, float height) { + this(label, x, y, width, height, 1); } public Button(String label, float x, float y, int type) {