statusbarplugin: Recolor health bar when infected by a parasite (#12874)

This commit is contained in:
Malfuryent
2020-12-23 09:44:16 +01:00
committed by GitHub
parent 74a881d3a9
commit a0dec6a632
2 changed files with 15 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ class StatusBarsOverlay extends Overlay
private static final Color SPECIAL_ATTACK_COLOR = new Color(3, 153, 0, 195);
private static final Color ENERGY_COLOR = new Color(199, 174, 0, 220);
private static final Color DISEASE_COLOR = new Color(255, 193, 75, 181);
private static final Color PARASITE_COLOR = new Color(196, 62, 109, 181);
private static final int HEIGHT = 252;
private static final int RESIZED_BOTTOM_HEIGHT = 272;
private static final int IMAGE_SIZE = 17;
@@ -132,6 +133,11 @@ class StatusBarsOverlay extends Overlay
return DISEASE_COLOR;
}
if (client.getVar(Varbits.PARASITE) >= 1)
{
return PARASITE_COLOR;
}
return HEALTH_COLOR;
},
() -> HEAL_COLOR,