mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Make the hud fade out when not being used
This commit is contained in:
parent
1feb8c84d2
commit
96b65a5b1b
1 changed files with 4 additions and 3 deletions
|
@ -79,8 +79,11 @@ public class UHud extends DrawableHelper {
|
|||
renderMessage(matrices, tickDelta);
|
||||
}
|
||||
|
||||
RenderSystem.enableBlend();
|
||||
|
||||
float progress = messageTime >= 20 ? 1 : (messageTime - tickDelta) / 20;
|
||||
|
||||
RenderSystem.setShaderColor(1, 1, 1, Math.max(0.1F, progress));
|
||||
RenderSystem.enableBlend();
|
||||
RenderSystem.setShaderTexture(0, HUD_TEXTURE);
|
||||
|
||||
boolean swap = client.options.keySneak.isPressed();
|
||||
|
@ -117,8 +120,6 @@ public class UHud extends DrawableHelper {
|
|||
RenderSystem.applyModelViewMatrix();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void renderMessage(MatrixStack matrices, float tickDelta) {
|
||||
|
|
Loading…
Reference in a new issue