It actually works now
It threw errors before
This commit is contained in:
parent
af7b39d8e9
commit
4a1f1b7545
@ -21,12 +21,6 @@ import ru.windcorp.progressia.client.graphics.input.KeyEvent;
|
|||||||
|
|
||||||
public class Button extends Interactable {
|
public class Button extends Interactable {
|
||||||
|
|
||||||
private Vec2i currentSize;
|
|
||||||
private boolean isDisabled;
|
|
||||||
private boolean isClicked;
|
|
||||||
private Label label;
|
|
||||||
private LayoutAlign align;
|
|
||||||
|
|
||||||
public <T extends InputEvent> Button(String name, Label textLabel, Consumer<Button> onClick) {//, InputListener<T> onClick, Class<? extends T> onClickClass) {
|
public <T extends InputEvent> Button(String name, Label textLabel, Consumer<Button> onClick) {//, InputListener<T> onClick, Class<? extends T> onClickClass) {
|
||||||
super(name, textLabel);
|
super(name, textLabel);
|
||||||
setPreferredSize(107,34);
|
setPreferredSize(107,34);
|
||||||
|
@ -5,6 +5,7 @@ import com.google.common.eventbus.Subscribe;
|
|||||||
import ru.windcorp.progressia.client.graphics.gui.event.FocusEvent;
|
import ru.windcorp.progressia.client.graphics.gui.event.FocusEvent;
|
||||||
import ru.windcorp.progressia.client.graphics.gui.event.HoverEvent;
|
import ru.windcorp.progressia.client.graphics.gui.event.HoverEvent;
|
||||||
import ru.windcorp.progressia.client.graphics.gui.layout.LayoutAlign;
|
import ru.windcorp.progressia.client.graphics.gui.layout.LayoutAlign;
|
||||||
|
import glm.vec._2.i.Vec2i;
|
||||||
|
|
||||||
public class Interactable extends Component {
|
public class Interactable extends Component {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user