fix(ui): port exact paperdoll body selection
Resolve and sample retail's authored nine-color paperdoll click map, preserve local click coordinates, and select the stable highest-priority worn item with the player fallback. Keep targeted-use body clicks routed to self and pin both synthetic and live-DAT conformance. Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
parent
2644d1d527
commit
0b74d19475
16 changed files with 490 additions and 32 deletions
|
|
@ -16,6 +16,20 @@ public class UiButtonTests
|
|||
Assert.True(_clicked);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Click_ProvidesLocalCoordinatesToPositionAwareHandler()
|
||||
{
|
||||
(int X, int Y) clicked = default;
|
||||
var b = new UiButton(new ElementInfo { Type = 1, Width = 46, Height = 18 }, NoTex)
|
||||
{
|
||||
OnClickAt = (x, y) => clicked = (x, y),
|
||||
};
|
||||
|
||||
b.OnEvent(new UiEvent(0, b, UiEventType.Click, Data1: 17, Data2: 9));
|
||||
|
||||
Assert.Equal((17, 9), clicked);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void NotClickThrough_SoItReceivesClicks()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue