statusbarplugin: Recolor health bar when infected by a parasite (#12874)
This commit is contained in:
@@ -579,6 +579,15 @@ public enum Varbits
|
|||||||
MUTED_SOUND_EFFECT_VOLUME(9674),
|
MUTED_SOUND_EFFECT_VOLUME(9674),
|
||||||
MUTED_AREA_EFFECT_VOLUME(9675),
|
MUTED_AREA_EFFECT_VOLUME(9675),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parasite infection status during nightmare of ashihama bossfight
|
||||||
|
*
|
||||||
|
* 0 = not infected
|
||||||
|
* 1 = infected
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
PARASITE(10151),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether the Special Attack orb is disabled due to being in a PvP area
|
* Whether the Special Attack orb is disabled due to being in a PvP area
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -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 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 ENERGY_COLOR = new Color(199, 174, 0, 220);
|
||||||
private static final Color DISEASE_COLOR = new Color(255, 193, 75, 181);
|
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 HEIGHT = 252;
|
||||||
private static final int RESIZED_BOTTOM_HEIGHT = 272;
|
private static final int RESIZED_BOTTOM_HEIGHT = 272;
|
||||||
private static final int IMAGE_SIZE = 17;
|
private static final int IMAGE_SIZE = 17;
|
||||||
@@ -132,6 +133,11 @@ class StatusBarsOverlay extends Overlay
|
|||||||
return DISEASE_COLOR;
|
return DISEASE_COLOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (client.getVar(Varbits.PARASITE) >= 1)
|
||||||
|
{
|
||||||
|
return PARASITE_COLOR;
|
||||||
|
}
|
||||||
|
|
||||||
return HEALTH_COLOR;
|
return HEALTH_COLOR;
|
||||||
},
|
},
|
||||||
() -> HEAL_COLOR,
|
() -> HEAL_COLOR,
|
||||||
|
|||||||
Reference in New Issue
Block a user