fix(combat): restore retail combat bar controls
Resolve authored StringInfo labels from local.dat, port gmCombatUI's runtime option captions and checkbox widgets, and bind horizontal scrollbar media by retail structural roles so the green power jewel is a thumb instead of a tiled track. Persist the three combat options and make Auto Target govern target acquisition. Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
parent
2215c76c7e
commit
927fa7881a
19 changed files with 24591 additions and 48 deletions
|
|
@ -21,6 +21,7 @@ public sealed class RetailLayoutFixtureGenerator
|
|||
(0x21000024u, "paperdoll_21000024.json"),
|
||||
(0x2100002Eu, "character_2100002E.json"),
|
||||
(0x2100006Cu, "vitals_2100006C.json"),
|
||||
(0x21000073u, "combat_21000073.json"),
|
||||
(0x21000074u, "radar_21000074.json"),
|
||||
};
|
||||
|
||||
|
|
@ -46,6 +47,18 @@ public sealed class RetailLayoutFixtureGenerator
|
|||
{
|
||||
var info = LayoutImporter.ImportInfos(dats, layoutId);
|
||||
Assert.NotNull(info);
|
||||
if (layoutId == CombatUiController.LayoutId)
|
||||
{
|
||||
var labels = CombatUiLabels.Resolve(info, new DatStringResolver(dats));
|
||||
Assert.Equal("Speed", labels.Speed);
|
||||
Assert.Equal("Power", labels.Power);
|
||||
Assert.Equal("Repeat Attacks", labels.RepeatAttacks);
|
||||
Assert.Equal("Auto Target", labels.AutoTarget);
|
||||
Assert.Equal("Keep in View", labels.KeepInView);
|
||||
Assert.Equal("High", labels.High);
|
||||
Assert.Equal("Medium", labels.Medium);
|
||||
Assert.Equal("Low", labels.Low);
|
||||
}
|
||||
var json = JsonSerializer.Serialize(info, new JsonSerializerOptions
|
||||
{
|
||||
IncludeFields = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue