Skip to content

Commit

Permalink
status bars: add warmth
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Nov 4, 2024
1 parent 4b16ec9 commit f1af77e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runelite-api/src/main/java/net/runelite/api/Varbits.java
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,8 @@ public final class Varbits
*/
public static final int COLOSSAL_WYRM_COURSE_ADVANCED = 11293;

public static final int WINTERTODT_WARMTH = 11434;

public static final int COMBAT_TASK_EASY = 12885;
public static final int COMBAT_TASK_MEDIUM = 12886;
public static final int COMBAT_TASK_HARD = 12887;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ enum BarMode
PRAYER,
RUN_ENERGY,
SPECIAL_ATTACK,
WARMTH,
}

@ConfigItem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,14 @@ private void initRenderers()
() -> null,
() -> loadSprite(SpriteID.MINIMAP_ORB_SPECIAL_ICON)
));
barRenderers.put(StatusBarsConfig.BarMode.WARMTH, new BarRenderer(
() -> 100,
() -> client.getVarbitValue(Varbits.WINTERTODT_WARMTH) / 10,
() -> 0,
() -> new Color(244, 97, 0),
() -> null,
() -> skillIconManager.getSkillImage(Skill.FIREMAKING, true)
));
}

@Override
Expand Down

0 comments on commit f1af77e

Please sign in to comment.