feat(player): port retail augmentation stat chain

This commit is contained in:
Erik 2026-07-31 08:08:23 +02:00
parent 0cb60d98a0
commit 461a1fb7b4
22 changed files with 953 additions and 138 deletions

View file

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Numerics;
using AcDream.App.UI;
using AcDream.App.UI.Layout;
using DatReaderWriter;
@ -75,6 +76,31 @@ public sealed class CharacterLayoutImportProbe
Assert.Equal(1, closes);
}
[Fact]
public void Footer_title_exposes_retail_append_text_palette()
{
string? datDir = DatDir();
if (datDir is null) return;
using var dats = new DatCollection(datDir, DatAccessType.Read);
ImportedLayout? layout = LayoutImporter.Import(
dats,
CharacterLayout,
_ => (1u, 30, 26),
null);
UiText title = Assert.IsType<UiText>(
layout!.FindElement(CharacterStatController.FooterTitleId));
Assert.Equal(
[
Vector4.One,
new Vector4(0f, 1f, 0f, 1f),
new Vector4(1f, 0f, 0f, 1f),
new Vector4(127f / 255f, 1f, 1f, 1f),
],
title.FontColorPalette);
}
private static void CollectRows(UiElement node, List<UiClickablePanel> result)
{
if (node is UiClickablePanel row && row.Height is >= 20f and <= 22f && row.OnClick is not null)