Skip to content

Resource bar Placement along a side, and Keep Health Bar Inside Border - #290

Open
Krathe82 wants to merge 2 commits into
DanderBot:mainfrom
Krathe82:krathe/resource-bar-placement
Open

Krathe82 wants to merge 2 commits into
DanderBot:mainfrom
Krathe82:krathe/resource-bar-placement

Conversation

@Krathe82

@Krathe82 Krathe82 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Resource bar Placement

In the past, a frame that faded showed the health bar through the resource bar. This adds a Placement dropdown on the Resource Bar Position card:

  • On Top of Health Bar: the default, and unchanged from today.
  • Below / Above / Left of / Right of Health Bar: the resource bar runs in a strip along that side.

When the bar is along a side:

  • The health bar keeps its full size. A mask cuts a hole under the strip in the health bar and in every bar drawn over it: missing health, absorbs, heal absorb, heal prediction, reduced max health, and the overshield and overheal glows. Nothing shows through the strip when the frame fades.
  • A see-through frame border tints the health bar the same on every side.
  • Each bar carries its own mask. Bars created later (glows, sparks, the reduced-max bar, texture layers) pick it up when they are made.
  • Adjust For Frame Border chooses whether the strip sits inside the border or runs under it.
  • Match Health Bar Width runs the bar along the whole side. With it off, the bar takes the set length, and the Anchor's part along that side places it.
  • The strip has its own Offset X / Y and Frame Level. The Frame Level defaults to 12, which keeps the bar under the frame border as before. On Top keeps its existing Frame Level setting (20).
  • A frame that shows no resource bar (for example, a role it's hidden for) keeps the whole health bar.

Keep Health Bar Inside Border

New option on the Border card, off by default. The health bar stops at the border's inner edge on every side instead of running under it, so a see-through border sits over the frame background. The resource bar follows it. While it's on, absorbs and heals drop their own border inset, so they aren't inset twice.

No change for default settings

  • On Top frames skip the cut-out pass entirely.
  • Power events re-sync the strip only when the frame's answer to "is a resource bar shown" changes.
  • All new keys default to today's behaviour, so no migration is needed.

Test mode and unit frames

  • Test mode runs the same path as live frames, so previews show the strip and the cut-out. The tank preview has a full resource bar.
  • Unit frames reuse the same page builders. When you drag a unit frame Border slider, the resource bar and the inside-border health bar now follow during the drag.

Testing

  • luac -p passes on every changed Lua file.
  • The full mover-tests suite passes: 31132 passed, 0 failed. New tests cover the insets, the strip layout (Match on/off, anchors, offsets), the per-bar cut-out, the border overlap and the frame level resolver.
  • Tested in game on the testing branch.

…r Inside Border

- Placement (Position card): On Top of Health Bar (default, unchanged) or Below / Above / Left of / Right of Health Bar. Along a side the bar runs in a strip and a mask cuts the health bar and every bar drawn over it out under the strip, so nothing shows through when the frame fades and the health bar keeps its full size.
- Along a side: Adjust For Frame Border, Match Health Bar Width or a set length placed by the Anchor's part along that side, its own Offset X / Y, and its own Frame Level (default 12, under the frame border as before).
- Keep Health Bar Inside Border (Border card): the health bar stops at the border's inner edge on every side; the resource bar follows, and absorbs and heals drop their border inset while it is on.
- Frames that don't show a resource bar keep the whole health bar; On Top frames skip the cut-out pass entirely.
- Test mode runs the same path, so previews show the strip and the cut-out.
Party test units all sat at 80% power, so every preview bar showed its
empty background. A unit can now carry its own power; Tankerino (full
health) is full, the rest stay at 80%.
@Krathe82
Krathe82 force-pushed the krathe/resource-bar-placement branch from 26e8b1d to 4321ed1 Compare November 17, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant