ValFox-RecentXpBars icon

RecentXpBars

Shows the four most recently active skills as XP bars at the bottom of the screen. Bars turn red when you're missing the Rested buff.

By ValFox

CHANGELOG

Changelog

All notable changes to this mod are documented here. Format loosely follows Keep a Changelog. Versions follow SemVer.

[0.13.2] - 2026-06-04

Added

  • Contact section in the README with a Discord invite for bug reports, feature requests, and feedback.

[0.13.1] - 2026-06-04

Changed

  • Preview screenshot in the README now references an externally hosted image URL instead of an embedded base64 data URL (Thunderstore's markdown renderer strips data: URLs).

[0.13.0] - 2026-05-28 — Initial Thunderstore release

Added

  • Four XP bars tiled across the bottom of the screen showing the most recently active skills (LRU eviction once a fifth distinct skill gains XP).
  • Newest skill on the left, oldest on the right.
  • Bar fill represents progress to the next level; updates on every XP tick (not just level-ups).
  • Tick marks dividing each bar into ten equal segments for at-a-glance reading.
  • Cylindrical vertical gradient on bar fills and backgrounds — bars appear rounded rather than flat.
  • Black 1-pixel text outline so skill name + level stays legible against any background.
  • Bars turn red when the player does not have the Rested status effect — a visual warning that the XP-gain bonus is missing.
  • Auto-scales to any window resolution via a 1080p reference matrix; works correctly in windowed and fullscreen modes.
  • Config file with toggles for enabled state, vertical offset, bar-width fraction, and an extra UI scale multiplier.
  • No hard dependency on any other mod beyond BepInEx.

Technical notes

  • Harmony patch on Skills.RaiseSkill with a Prefix/Postfix pair that snapshots (level, GetLevelPercentage) via Traverse into the private Skills.GetSkill, since the public GetSkillFactor returns level/100 rather than progress within the current level.
  • Rested-buff detection uses the same GetStableHashCode key the game itself uses, so the red/gold toggle stays in sync with Valheim's own rested check.
  • All visuals are procedurally generated IMGUI textures — no asset bundles, no shipped images. Plugin DLL is ~13 KB.