fix input field buttons

This commit is contained in:
Sen 2025-07-05 14:53:22 +02:00
parent eed9ea565f
commit 7706c20bf5
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
2 changed files with 11 additions and 9 deletions

View file

@ -725,14 +725,16 @@ public class Client implements IThreadListener {
public void inputGui() {
if (this.open != null)
{
if(Bind.THROW.isPressed())
this.open.dropItem();
else if(Bind.RENAME.isPressed())
this.open.renameItem();
for(int z = 0; z < this.keyBindsHotbar.length; z++) {
if(this.keyBindsHotbar[z].isPressed())
this.open.useHotbar(z);
}
if(!(this.open.selected instanceof client.gui.element.Field || this.open.selected instanceof Area)) {
if(Bind.THROW.isPressed())
this.open.dropItem();
else if(Bind.RENAME.isPressed())
this.open.renameItem();
for(int z = 0; z < this.keyBindsHotbar.length; z++) {
if(this.keyBindsHotbar[z].isPressed())
this.open.useHotbar(z);
}
}
this.primary = this.secondary = this.tertiary = this.quarternary = false;
this.zooming = false;

View file

@ -178,7 +178,7 @@ public abstract class GuiContainer extends Gui
}
if(this.gm.itemCheat) {
this.cheatLabel = this.add(new Label(this.cheatX, this.cheatY, this.cheatWidth * 18, "", true));
this.cheatDesc = this.add(new MultiLabel(this.cheatX, this.cheatY + this.cheatHeight * 18 + 20 * ((CheatTab.values().length + (this.cheatWidth - 1)) / this.cheatWidth) + 4 + 18, this.cheatWidth * 18, 60, "Vorsicht: Schummeln wird\nmit Keule bestraft!!\n(Halte Strg beim Klick\nfür vollen Stapel)"));
this.cheatDesc = this.add(new MultiLabel(this.cheatX, this.cheatY + this.cheatHeight * 18 + 20 * ((CheatTab.values().length + (this.cheatWidth - 1)) / this.cheatWidth) + 4 + 18, this.cheatWidth * 18, 60, "Vorsicht: Schummeln\nwird mit Keule bestraft!!\n(Halte Strg beim Klick\nfür vollen Stapel)"));
this.cheatSearch = this.add(new Field(this.cheatX, this.cheatY + this.cheatHeight * 18 + 20 * ((CheatTab.values().length + (this.cheatWidth - 1)) / this.cheatWidth) + 4, this.cheatWidth * 18, 0, 128, null, ""));
this.cheatLast = "";
for(CheatTab tab : CheatTab.values()) {