b6810a704547ddda85a72200e8559a94473b0c04
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
) {
22 this(label
, x
, y
, 200, 20, 1);
25 public Rectangle
getRect() {
29 public String
getLabel() {
41 public float getWidth() {
45 public float getHeight() {
49 public int getType() {
53 public void setType(int type
) {