fix(combat): preserve authored meter child geometry
Carry the consumed dark-range child's own retail edge policy into the procedural scrollbar, widening it to the authored post-reflow interval without covering the rendered labels. Restore the bright layer to live attack-charge feedback across the full bar from the left. Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
parent
f8c174d707
commit
e671b8a5c4
10 changed files with 66 additions and 105 deletions
|
|
@ -128,16 +128,4 @@ public class UiScrollbarTests
|
|||
Assert.Equal(expectedWidth, width, 3);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0f, 6f)]
|
||||
[InlineData(0.5f, 253.5f)]
|
||||
[InlineData(1f, 501f)]
|
||||
public void ScalarThumbFillRect_StartsAtAbsoluteLeftAndEndsAtThumbCenter(
|
||||
float position, float expectedWidth)
|
||||
{
|
||||
var (x, width) = UiScrollbar.ScalarThumbFillRect(
|
||||
totalWidth: 507f, thumbWidth: 12f, position);
|
||||
Assert.Equal(0f, x, 3);
|
||||
Assert.Equal(expectedWidth, width, 3);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue