Snapshot for release 2026.10.11.1 (internal 4eca83a)

This commit is contained in:
Tom Bohar 2026-10-11 15:00:53 -04:00
commit 08b80eed86
94 changed files with 11103 additions and 567 deletions

View file

@ -3,7 +3,7 @@
<!--
Offline checks for src\RynthCore.Engine\Compatibility\AcMouseOverRules.cs (2026-10-08):
a nameplate drawn under AC's windows may take a click only where AC's own mouse-over is
the 3D world (the SmartBox wrapper, type 0x10000030) - never on one of AC's windows - and
the 3D world (gmSmartBoxUI, type 0x10000014, or the SmartBox wrapper, 0x10000030) - never on one of AC's windows - and
keeps today's behaviour (takes it) whenever AC's UI state can't be read.
The AC-side facts (offsets, the type id) are checked against acclient.exe by
tools\ui_hooks_check.py.

View file

@ -41,12 +41,21 @@ internal static class Program
AcMouseTarget t = AcMouseOverRules.Classify(true, false, SomeElement, true, SmartBox);
Check(t == AcMouseTarget.World, $"SmartBox wrapper under the mouse = World (got {t})");
Check(AcMouseOverRules.UnderUiOverlayMayTakeClick(t), "may take the click");
// 2026-10-10 client logs: over open ground AC reports gmSmartBoxUI (element 0x1000049A,
// type 0x10000014), not the wrapper. Classed as a window, it kept every plate's click from the plate.
Case("cursor on the 3D world as AC reports it in game: gmSmartBoxUI (0x10000014) takes the click");
Check(AcMouseOverRules.UIElementTypeGmSmartBoxUI == 0x10000014, "gmSmartBoxUI::Register registers 0x10000014");
AcMouseTarget g = AcMouseOverRules.Classify(true, false, 0x1000049A, true, AcMouseOverRules.UIElementTypeGmSmartBoxUI);
Check(g == AcMouseTarget.World, $"gmSmartBoxUI under the mouse = World (got {g})");
Check(AcMouseOverRules.UnderUiOverlayMayTakeClick(g), "gmSmartBoxUI: may take the click");
}
private static void AcWindowsKeepTheClick()
{
Case("cursor on one of AC's windows: the click stays with AC");
foreach (int type in new[] { ItemList, 0x10000001, 0x10000032, 0, -1, SmartBox + 1 })
// 0x10000013 / 0x10000015: neighbours of gmSmartBoxUI's type stay windows.
foreach (int type in new[] { ItemList, 0x10000001, 0x10000032, 0, -1, SmartBox + 1, 0x10000013, 0x10000015 })
{
AcMouseTarget t = AcMouseOverRules.Classify(true, false, SomeElement, true, type);
Check(t == AcMouseTarget.AcWindow, $"type 0x{type:X8} = AcWindow (got {t})");