mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Render the icon behind the reload/charge animation
This commit is contained in:
parent
5152f7a4d3
commit
4d8c41fa8b
1 changed files with 3 additions and 1 deletions
|
@ -64,6 +64,9 @@ class Slot {
|
|||
// background
|
||||
UHud.drawTexture(matrices, 0, 0, textureU, textureV, size, size, 128, 128);
|
||||
|
||||
uHud.renderAbilityIcon(matrices, abilities.getStat(bSwap ? bSlot : aSlot), slotPadding / 2, slotPadding / 2, iconSize, iconSize, iconSize, iconSize);
|
||||
|
||||
|
||||
if (cooldown > 0 && cooldown < 1) {
|
||||
float lerpCooldown = MathHelper.lerp(tickDelta, cooldown, lastCooldown);
|
||||
|
||||
|
@ -85,7 +88,6 @@ class Slot {
|
|||
|
||||
protected void renderContents(MatrixStack matrices, AbilityDispatcher abilities, boolean bSwap, float tickDelta) {
|
||||
// contents
|
||||
uHud.renderAbilityIcon(matrices, abilities.getStat(bSwap ? bSlot : aSlot), slotPadding / 2, slotPadding / 2, iconSize, iconSize, iconSize, iconSize);
|
||||
|
||||
UHud.drawTexture(matrices, 0, 0, backgroundU, backgroundV, size, size, 128, 128);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue