mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
fix ability icon sizes on the hud
This commit is contained in:
parent
379ae435ee
commit
3c987fcd29
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ class Slot {
|
|||
// background
|
||||
UHud.drawTexture(matrices, 0, 0, backgroundU, backgroundV, size, size, 128, 128);
|
||||
|
||||
uHud.renderAbilityIcon(matrices, abilities.getStat(bSwap ? bSlot : aSlot), slotPadding / 2, slotPadding / 2, iconSize, iconSize, iconSize, iconSize);
|
||||
int sz = iconSize - slotPadding;
|
||||
uHud.renderAbilityIcon(matrices, abilities.getStat(bSwap ? bSlot : aSlot), slotPadding, slotPadding, sz, sz, sz, sz);
|
||||
|
||||
if (cooldown > 0 && cooldown <= 1) {
|
||||
float lerpCooldown = MathHelper.lerp(tickDelta, cooldown, lastCooldown);
|
||||
|
|
Loading…
Reference in a new issue