oωo (owo-lib)

oωo (owo-lib)

23M Downloads

[owo-ui] Tooltips are not rendered when returning to a previously initialized screen

Zailer43 opened this issue · 1 comments

commented

Description

I have:

@Override
public void close() {
    this.setScreen(this.parent);
}

To return to the main screen but I’ve noticed that since version 0.12.19, tooltips are not rendered when returning to the previous screen

Issue

This event should also be registered when the screen has been previously initialized

ScreenEvents.afterRender(this).register((screen, drawContext, mouseX, mouseY, tickDelta) -> {
if (this.uiAdapter != null) this.uiAdapter.drawTooltip(drawContext, mouseX, mouseY, tickDelta);
});

ScreenEvents.afterRender(this).register((screen, drawContext, mouseX, mouseY, tickDelta) -> {
if (this.uiAdapter != null) this.uiAdapter.drawTooltip(drawContext, mouseX, mouseY, tickDelta);
});

Versions

fabric_version = 0.111.0+1.21.4
owo_version = 0.12.19+1.21.4

commented