mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-24 05:47:59 +01:00
Adjust icon size and positioning in the main ability slot
This commit is contained in:
parent
3948bf4a58
commit
e49828fea1
2 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,7 @@ import net.minecraft.client.util.math.MatrixStack;
|
|||
class ManaRingSlot extends Slot {
|
||||
|
||||
public ManaRingSlot(UHud uHud, AbilitySlot normalSlot, AbilitySlot backupSlot, int x, int y) {
|
||||
super(uHud, normalSlot, backupSlot, x, y, 8, UHud.PRIMARY_SLOT_SIZE, 33, 43, 42);
|
||||
super(uHud, normalSlot, backupSlot, x, y, 8, UHud.PRIMARY_SLOT_SIZE, 33, 43, 30);
|
||||
background(0, 5);
|
||||
foreground(0, 59);
|
||||
}
|
||||
|
|
|
@ -93,8 +93,9 @@ class Slot {
|
|||
|
||||
AbilityDispatcher.Stat stat = abilities.getStat(bSwap ? bSlot : aSlot);
|
||||
|
||||
int iconPosition = ((size - iconSize + slotPadding + 1) / 2);
|
||||
int sz = iconSize - slotPadding;
|
||||
uHud.renderAbilityIcon(context, stat, slotPadding, slotPadding, sz, sz, sz, sz);
|
||||
uHud.renderAbilityIcon(context, stat, iconPosition, iconPosition, sz, sz, sz, sz);
|
||||
|
||||
float cooldown = stat.getFillProgress();
|
||||
|
||||
|
|
Loading…
Reference in a new issue