Tooltips near the top should be pushed down to be visible.

This commit is contained in:
AlgorithmX2 2014-08-04 22:32:07 -05:00
parent 8291499920
commit da86bd65f6

View file

@ -460,9 +460,12 @@ public abstract class AEBaseGui extends GuiContainer
{ {
if ( y < mouse_y && y + tooltip.getHeight() > mouse_y ) if ( y < mouse_y && y + tooltip.getHeight() > mouse_y )
{ {
if ( y < 15 )
y = 15;
String msg = tooltip.getMsg(); String msg = tooltip.getMsg();
if ( msg != null ) if ( msg != null )
drawTooltip( x + 8, y + 4, 0, msg ); drawTooltip( x + 11, y + 4, 0, msg );
} }
} }
} }