command completion

This commit is contained in:
Sen 2025-03-17 18:21:41 +01:00
parent 0839beb98e
commit a8f6af2b37
11 changed files with 400 additions and 347 deletions

View file

@ -295,8 +295,10 @@ public abstract class GuiContainer extends Gui
this.renderItemOverlayIntoGUI(overlay.stack, overlay.x, overlay.y, overlay.alt);
}
this.drawnOverlays.clear();
if(this.tooltip != null)
Drawing.drawTextbox(this.tooltip, this.hover_x, this.hover_y, 0xaf000000);
if(this.tooltip != null) {
int width = Drawing.getBoxWidth(this.tooltip);
Drawing.drawTextbox(this.tooltip, this.hover_x + width > this.gm.fb_x ? this.hover_x - width - 32 : this.hover_x, this.hover_y, 0xaf000000);
}
this.tooltip = null;
}