0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Refactor HackList text color

This commit is contained in:
Alexander01998 2024-09-12 08:06:22 +02:00
parent 4143ad67e5
commit fa5a1cd369
2 changed files with 5 additions and 5 deletions

View File

@ -49,11 +49,11 @@ public final class HackListHUD implements UpdateListener
if(WurstClient.INSTANCE.getHax().rainbowUiHack.isEnabled())
{
float[] acColor = WurstClient.INSTANCE.getGui().getAcColor();
textColor = 0x04 << 24 | (int)(acColor[0] * 256) << 16
| (int)(acColor[1] * 256) << 8 | (int)(acColor[2] * 256);
textColor = 0x04 << 24 | (int)(acColor[0] * 0xFF) << 16
| (int)(acColor[1] * 0xFF) << 8 | (int)(acColor[2] * 0xFF);
}else
textColor = 0x04000000 | otf.getColor();
textColor = otf.getColor(0x04);
int height = posY + activeHax.size() * 9;
Window sr = WurstClient.MC.getWindow();

View File

@ -115,9 +115,9 @@ public final class HackListOtf extends OtherFeature
}
}
public int getColor()
public int getColor(int alpha)
{
return color.getColorI() & 0x00FFFFFF;
return color.getColorI(alpha);
}
public static enum Mode