A couple ui fixes and add slightly better ability icons
|
@ -58,7 +58,7 @@ class Slot {
|
||||||
matrices.translate(x, y, 0);
|
matrices.translate(x, y, 0);
|
||||||
|
|
||||||
AbilityDispatcher.Stat stat = abilities.getStat(slot);
|
AbilityDispatcher.Stat stat = abilities.getStat(slot);
|
||||||
float cooldown = 0.99999F;// stat.getFillProgress();
|
float cooldown = stat.getFillProgress();
|
||||||
|
|
||||||
// background
|
// background
|
||||||
UHud.drawTexture(matrices, 0, 0, textureU, textureV, size, size, 128, 128);
|
UHud.drawTexture(matrices, 0, 0, textureU, textureV, size, size, 128, 128);
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class UHud extends DrawableHelper {
|
||||||
private final MinecraftClient client = MinecraftClient.getInstance();
|
private final MinecraftClient client = MinecraftClient.getInstance();
|
||||||
|
|
||||||
private final List<Slot> slots = Util.make(new ArrayList<>(), slots -> {
|
private final List<Slot> slots = Util.make(new ArrayList<>(), slots -> {
|
||||||
slots.add(new Slot(this, AbilitySlot.PRIMARY, 0, 0, 8, 49, 38, 24).foreground(0, 59));
|
slots.add(new Slot(this, AbilitySlot.PRIMARY, 0, 0, 8, 49, 38, 24).background(0, 5).foreground(0, 59));
|
||||||
slots.add(new Slot(this, AbilitySlot.SECONDARY, 26, -5, 3, 22, 17, 18).background(80, 105));
|
slots.add(new Slot(this, AbilitySlot.SECONDARY, 26, -5, 3, 22, 17, 18).background(80, 105));
|
||||||
slots.add(new Slot(this, AbilitySlot.TERTIARY, 36, 19, 3, 22, 17, 18).background(80, 105));
|
slots.add(new Slot(this, AbilitySlot.TERTIARY, 36, 19, 3, 22, 17, 18).background(80, 105));
|
||||||
});
|
});
|
||||||
|
@ -45,7 +45,7 @@ public class UHud extends DrawableHelper {
|
||||||
int scaledHeight = client.getWindow().getScaledHeight();
|
int scaledHeight = client.getWindow().getScaledHeight();
|
||||||
|
|
||||||
matrices.push();
|
matrices.push();
|
||||||
matrices.translate(104 + (scaledWidth - 50) / 2, 20 + scaledHeight - /*70*/ 80, 0);
|
matrices.translate(104 + (scaledWidth - 50) / 2, 20 + scaledHeight - 70, 0);
|
||||||
|
|
||||||
RenderSystem.enableAlphaTest();
|
RenderSystem.enableAlphaTest();
|
||||||
RenderSystem.enableBlend();
|
RenderSystem.enableBlend();
|
||||||
|
|
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 782 B |
Before Width: | Height: | Size: 690 B |
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 998 B |
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 621 B |
Before Width: | Height: | Size: 690 B After Width: | Height: | Size: 679 B |
Before Width: | Height: | Size: 793 B After Width: | Height: | Size: 802 B |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 19 KiB |