1 package ru
.deadsoftware
.cavecraft
.menu
.objects
;
3 import com
.badlogic
.gdx
.math
.Rectangle
;
7 private Rectangle rect
;
11 public Button(String label
, float x
, float y
, float width
, float heigth
, int type
) {
13 rect
= new Rectangle(x
, y
, width
, heigth
);
17 public Button(String label
, float x
, float y
, float width
, float heigth
) {
18 this(label
, x
, y
, width
, heigth
, 1);
21 public Button(String label
, float x
, float y
, int type
) {
22 this(label
, x
, y
, 200, 20, type
);
25 public Button(String label
, float x
, float y
) {
26 this(label
, x
, y
, 200, 20, 1);
29 public Rectangle
getRect() {
33 public String
getLabel() {
45 public float getWidth() {
49 public float getHeight() {
53 public int getType() {
57 public void setType(int type
) {