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);
|
super.render(mouseX, mouseY, partialTicks);
|
||||||
|
|
||||||
if (this.alpha < 0xFF/*max alpha*/) {
|
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*/) {
|
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
|
// Handle tooltips
|
||||||
if (this.hudEditorModule != null && this.hudEditorModule.tooltips.getValue() && !insideTitlebar) {
|
if (this.hudEditorModule != null && this.hudEditorModule.tooltips.getValue()) {
|
||||||
if (this.isMouseInside(mouseX, mouseY)) {
|
if (this.isMouseInside(mouseX, mouseY)) {
|
||||||
String tooltipText = "";
|
String tooltipText = "";
|
||||||
int height = BORDER;
|
int height = BORDER;
|
||||||
|
|
Loading…
Reference in New Issue