fix(ui): finish retail stack selector polish
Keep the horizontal thumb at its raw pointer position so both endpoints are reachable, honor the stack entry's authored right alignment, and preserve PublicWeenieDesc plural names from CreateObject through the object table. Port retail's singular s/es fallback when no plural was sent. Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
parent
a20e5c68c7
commit
6005c51c4d
22 changed files with 233 additions and 36 deletions
|
|
@ -22,7 +22,7 @@ public sealed class ObjectTableWiringTests
|
|||
{
|
||||
// Every EntitySpawn item field is set to a DISTINCT recognisable value so
|
||||
// a positional transposition in ObjectTableWiring.ToWeenieData would trip
|
||||
// at least one Assert. All 22 WeenieData fields are verified below.
|
||||
// at least one Assert. Every mapped WeenieData field is verified below.
|
||||
var spawn = new WorldSession.EntitySpawn(
|
||||
Guid: 0x00000600u,
|
||||
Position: null,
|
||||
|
|
@ -63,6 +63,7 @@ public sealed class ObjectTableWiringTests
|
|||
RadarBehavior = 3,
|
||||
ObjectDescriptionFlags = 0x20800200u,
|
||||
CombatUse = 2,
|
||||
PluralName = "Iron Swords",
|
||||
};
|
||||
|
||||
var d = ObjectTableWiring.ToWeenieData(spawn);
|
||||
|
|
@ -108,6 +109,7 @@ public sealed class ObjectTableWiringTests
|
|||
Assert.Equal((byte)3, d.RadarBehavior);
|
||||
Assert.Equal(0x20800200u, d.PublicWeenieBitfield);
|
||||
Assert.Equal((byte)2, d.CombatUse);
|
||||
Assert.Equal("Iron Swords", d.PluralName);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue