command completion
This commit is contained in:
parent
0839beb98e
commit
a8f6af2b37
11 changed files with 400 additions and 347 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue