Snapshot for release 2026.10.19.1 (internal f0bdcf8)

This commit is contained in:
Tom Bohar 2026-10-19 09:11:22 -04:00
commit 39de36d3af
131 changed files with 11266 additions and 520 deletions

View file

@ -9,12 +9,18 @@ namespace RynthCore.Plugin.RynthOracle.Views;
/// </summary>
internal sealed partial class OracleView
{
public const string TabQuests = "Quests", TabCharacter = "Character", TabAugs = "Augs", TabSociety = "Society",
public const string TabQuests = "Quests", TabCharacter = "Character",
TabSkills = "Skills", TabAttributes = "Attributes", TabProgress = "Progress",
TabAugs = "Augs", TabSociety = "Society",
TabMarkers = "Markers", TabTitles = "Titles", TabVoid = "Void", TabFellowship = "Fellowship",
TabBoards = "Leaderboards", TabConquest = "Conquest", TabAbout = "About";
/// <summary>A tab: shown where any of its server tags matches the server; no tags = everywhere (retail).</summary>
private sealed record TabDef(string Name, string[] Servers, Action<UiWindow> Draw, bool LiveTimers);
/// <summary>
/// A tab: shown where any of its server tags matches the server; no tags = everywhere (retail).
/// Refresh is the page's Refresh button (Views\RefreshBar.cs); Help its tooltip.
/// </summary>
private sealed record TabDef(string Name, string[] Servers, Action<UiWindow> Draw, bool LiveTimers,
Func<RefreshResult> Refresh, Func<string> Help);
private readonly OracleContext _c;
private readonly TabDef[] _tabs;
@ -29,18 +35,35 @@ internal sealed partial class OracleView
string[] any = Array.Empty<string>();
_tabs = new TabDef[]
{
new(TabQuests, any, DrawQuests, true),
new(TabCharacter, any, DrawCharacter, true),
new(TabAugs, any, DrawAugs, true),
new(TabSociety, any, DrawSociety, true),
new(TabMarkers, any, DrawMarkers, false),
new(TabTitles, any, DrawTitles, false),
new(TabVoid, any, DrawVoid, true),
new(TabFellowship, any, DrawFellowship, false),
new(TabQuests, any, DrawQuests, true, () => RefreshQuests(),
() => "Sends /myquests to the server and reads the reply."),
new(TabCharacter, any, DrawCharacter, true, RefreshCharacter,
() => "Re-reads your level, experience, buffs and skills from the game now (and RynthAi's session)."),
// Skills / Attributes / Progress: RynthCore draws its Skills panel body under the tab
// strip (SkillsEmbed). The engine's panel reads the game itself, so there is no Refresh row.
new(TabSkills, any, DrawEmbedded, false, RefreshCharacter,
() => "RynthCore's skills panel: raise and train skills."),
new(TabAttributes, any, DrawEmbedded, false, RefreshCharacter,
() => "RynthCore's skills panel: attributes and vitals."),
new(TabProgress, any, DrawEmbedded, false, RefreshCharacter,
() => "RynthCore's skills panel: progression planners (Infinite Leaftide)."),
new(TabAugs, any, DrawAugs, true, RefreshCharacterAndQuests,
() => "Re-reads your character from the game and sends /myquests for the gem timers."),
new(TabSociety, any, DrawSociety, true, RefreshCharacterAndQuests,
() => "Re-reads your society standing from the game and sends /myquests for today's ribbons and quest timers."),
new(TabMarkers, any, DrawMarkers, false, () => RefreshQuests(),
() => "Sends /myquests: the markers you found are in your quest flags."),
new(TabTitles, any, DrawTitles, false, RefreshTitles,
() => "Re-reads the titles you hold from the game."),
new(TabVoid, any, DrawVoid, true, RefreshVoid,
() => "Re-reads your buffs from the game and drops the spell timers that ran out."),
new(TabFellowship, any, DrawFellowship, false, RefreshFellowship,
() => "Re-reads the fellowship and its members from the game."),
// Server-specific: each parser and its commands only exist on its own server.
new(TabBoards, new[] { Data.ServerTags.Conquest, Data.ServerTags.Aelrynth }, DrawBoards, false),
new(TabConquest, new[] { Data.ServerTags.Conquest }, DrawConquest, true),
new(TabAbout, any, DrawAbout, false),
new(TabBoards, new[] { Data.ServerTags.Conquest, Data.ServerTags.Aelrynth }, DrawBoards, false, RefreshBoards, BoardsHelp),
new(TabConquest, new[] { Data.ServerTags.Conquest }, DrawConquest, true, RefreshConquest, ConquestHelp),
new(TabAbout, any, DrawAbout, false, RefreshAbout,
() => "Loads the quest list and server pack from their files again and asks RynthCore which server this is."),
};
}
@ -103,11 +126,20 @@ internal sealed partial class OracleView
return;
}
// Skills / Attributes / Progress: nothing more is recorded. The rest of the window is
// the region RynthCore fills with its Skills panel body (see SkillsEmbed), so the page
// has no Refresh row and no child of its own to cover it.
if (SkillsEmbed.IsEmbedTab(tab)) return;
if (current != null) DrawRefreshRow(w, current);
w.BeginChild("page." + tab, 0f, 0f, border: false);
(current?.Draw ?? DrawAbout)(w);
w.EndChild();
}
/// <summary>The Skills-family tabs record nothing: <see cref="Draw"/> returns before it would call this.</summary>
private void DrawEmbedded(UiWindow w) { }
// ── Shared helpers ──────────────────────────────────────────────────────
/// <summary>"Done" in green or "--" in grey, the status column most lists start with.</summary>
@ -125,7 +157,7 @@ internal sealed partial class OracleView
w.Text(value);
}
/// <summary>Prints a quest's name, status, notes and wiki link in chat (upstream "thinks" them).</summary>
/// <summary>Prints an entry's name, status, notes and wiki link in chat (upstream "thinks" them). Quests print more: <see cref="OracleContext.PrintQuest"/>.</summary>
private void PrintEntry(string name, string flag, string status, string details, string url)
{
_c.Print(flag.Length > 0 ? $"{name} ({flag}){(status.Length > 0 ? " - " + status : "")}" : name);