Fix Tooltips
This commit is contained in:
parent
37ca0275ea
commit
6773e67ee2
|
@ -29,7 +29,7 @@ public class ToolTipComponent extends HudComponent {
|
|||
super.render(mouseX, mouseY, partialTicks);
|
||||
|
||||
if (this.alpha < 0xFF/*max alpha*/) {
|
||||
this.alpha += 2/* arbitrary value, the speed at which it fades in essentially */;
|
||||
this.alpha += 4/* arbitrary value, the speed at which it fades in essentially */;
|
||||
}
|
||||
|
||||
if (this.alpha > 0x99/* another arbitrary value, the alpha hex value at which it begins to show on screen*/) {
|
||||
|
|
|
@ -192,7 +192,7 @@ public final class ModuleListComponent extends ResizableHudComponent {
|
|||
}
|
||||
|
||||
// Handle tooltips
|
||||
if (this.hudEditorModule != null && this.hudEditorModule.tooltips.getValue() && !insideTitlebar) {
|
||||
if (this.hudEditorModule != null && this.hudEditorModule.tooltips.getValue()) {
|
||||
if (this.isMouseInside(mouseX, mouseY)) {
|
||||
String tooltipText = "";
|
||||
int height = BORDER;
|
||||
|
|
Loading…
Reference in New Issue