Fix Tooltips

This commit is contained in:
noil 2022-12-05 01:44:05 -05:00
parent 37ca0275ea
commit 6773e67ee2
2 changed files with 2 additions and 2 deletions

View File

@ -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*/) {

View File

@ -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;