1
0
Fork 0
mirror of https://github.com/Sollace/Unicopia.git synced 2025-03-07 10:41:28 +01:00

A couple ui fixes and add slightly better ability icons

This commit is contained in:
Sollace 2020-09-23 23:18:54 +02:00
parent 361a00bf3f
commit 5aa9d27861
10 changed files with 3 additions and 3 deletions
src/main
java/com/minelittlepony/unicopia/client/gui
resources/assets/unicopia/textures/gui

View file

@ -58,7 +58,7 @@ class Slot {
matrices.translate(x, y, 0);
AbilityDispatcher.Stat stat = abilities.getStat(slot);
float cooldown = 0.99999F;// stat.getFillProgress();
float cooldown = stat.getFillProgress();
// background
UHud.drawTexture(matrices, 0, 0, textureU, textureV, size, size, 128, 128);

View file

@ -28,7 +28,7 @@ public class UHud extends DrawableHelper {
private final MinecraftClient client = MinecraftClient.getInstance();
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.TERTIARY, 36, 19, 3, 22, 17, 18).background(80, 105));
});
@ -45,7 +45,7 @@ public class UHud extends DrawableHelper {
int scaledHeight = client.getWindow().getScaledHeight();
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.enableBlend();

Binary file not shown.

Before

(image error) Size: 728 B

After

(image error) Size: 782 B

Binary file not shown.

Before

(image error) Size: 690 B

Binary file not shown.

Before

(image error) Size: 701 B

After

(image error) Size: 838 B

Binary file not shown.

Before

(image error) Size: 701 B

After

(image error) Size: 998 B

Binary file not shown.

Before

(image error) Size: 701 B

After

(image error) Size: 621 B

Binary file not shown.

Before

(image error) Size: 690 B

After

(image error) Size: 679 B

Binary file not shown.

Before

(image error) Size: 793 B

After

(image error) Size: 802 B

Binary file not shown.

Before

(image error) Size: 23 KiB

After

(image error) Size: 19 KiB