Minor fixes to ItemSelectionButton
This commit is contained in:
parent
b1b8451331
commit
edc3246bd1
1 changed files with 5 additions and 4 deletions
|
@ -14,6 +14,7 @@ public class ItemSelectionButton implements Renderable, GuiEventListener, Narrat
|
||||||
private int height;
|
private int height;
|
||||||
TBMItemButtonPress onPress;
|
TBMItemButtonPress onPress;
|
||||||
private int itemStackID;
|
private int itemStackID;
|
||||||
|
private boolean focused;
|
||||||
|
|
||||||
public ItemSelectionButton(int x, int y, int widthIn, int heightIn, int itemStackID, TBMItemButtonPress onPress) {
|
public ItemSelectionButton(int x, int y, int widthIn, int heightIn, int itemStackID, TBMItemButtonPress onPress) {
|
||||||
this.x = x;
|
this.x = x;
|
||||||
|
@ -44,17 +45,17 @@ public class ItemSelectionButton implements Renderable, GuiEventListener, Narrat
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setFocused(boolean b) {
|
public void setFocused(boolean b) {
|
||||||
|
focused = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isFocused() {
|
public boolean isFocused() {
|
||||||
return false;
|
return focused;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public NarrationPriority narrationPriority() {
|
public NarrationPriority narrationPriority() {
|
||||||
return null;
|
return NarrationPriority.FOCUSED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue