feat(tracker): Lum/5m and pass-up rows from RynthTracker 0.4.0
See Changelog/2026-10-11-tracker-lum5m-passup.md.
This commit is contained in:
parent
97993f3694
commit
9ca537a0d0
3 changed files with 60 additions and 3 deletions
44
Changelog/2026-10-11-tracker-lum5m-passup.md
Normal file
44
Changelog/2026-10-11-tracker-lum5m-passup.md
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# Tracker panel: Lum/5m and pass-up rows
|
||||
|
||||
Pairs with RynthTracker 0.4.0 in RynthSuite.
|
||||
|
||||
## What changed
|
||||
|
||||
RynthTracker and RynthAi's Mini Remote now share one session-stats engine (RynthSuite
|
||||
`Plugins/Shared/SessionStats.cs`), so the Tracker panel and the Mini Remote count XP, luminance and
|
||||
kills the same way. The Tracker panel shows the new figures:
|
||||
|
||||
- **Lum/5m:** luminance earned in the last five minutes. It shows when RynthTracker sends it
|
||||
(0.4.0 and later), so an older RynthTracker still gets the old rows.
|
||||
- **Pass/hr and Pass-up:** allegiance pass-up luminance per hour and for the session. These rows
|
||||
appear only where RynthTracker can tell pass-up apart, which is on ACECustom, where the bank
|
||||
luminance is read. Fellowship and Zone Share splits arrive the same silent way and are included;
|
||||
the label tooltip says so.
|
||||
- **Row order:**
|
||||
1. Session
|
||||
2. XP/hr
|
||||
3. Lum/hr
|
||||
4. Lum/5m
|
||||
5. [Pass/hr]
|
||||
6. [Rad/hr]
|
||||
7. Kls/hr
|
||||
8. XP
|
||||
9. Lum
|
||||
10. [Pass-up]
|
||||
11. [Rad]
|
||||
12. Kills
|
||||
13. XP/kl
|
||||
14. Deaths
|
||||
|
||||
Rows in brackets appear only on some servers.
|
||||
|
||||
## Files
|
||||
|
||||
- `src/RynthCore.Engine/UI/Data/PanelSources.cs`: `TrackerSource` reads `l5`, `pk`, `ph` and `pt`;
|
||||
`TrackerSnapshot.DefaultLabels` includes Lum/5m.
|
||||
- `src/RynthCore.Engine/ImGui/Panels/P1Faces.cs`: tooltips on the Lum/5m and pass-up labels.
|
||||
|
||||
## Testing
|
||||
|
||||
- The engine builds in Release, and ItemHudTests pass (63 assertions).
|
||||
- Not yet checked in game.
|
||||
|
|
@ -210,7 +210,7 @@ internal sealed unsafe class LogFace : IImGuiPanel
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>Tracker: nine session-stat rows over an adjustable-opacity background.</summary>
|
||||
/// <summary>Tracker: the session-stat rows (TrackerSource) over an adjustable-opacity background.</summary>
|
||||
internal sealed class TrackerFace : IImGuiPanel
|
||||
{
|
||||
private static readonly Vector4 TitleColor = RynthTheme.Vec(0xFFE6B450);
|
||||
|
|
@ -275,6 +275,10 @@ internal sealed class TrackerFace : IImGuiPanel
|
|||
float rowRight = ImGuiNET.ImGui.GetCursorPosX() + ImGuiNET.ImGui.GetContentRegionAvail().X;
|
||||
if (ImGuiNET.ImGui.GetCursorScreenPos().Y + rowH > gripTop) rowRight -= grip;
|
||||
ImGuiNET.ImGui.TextColored(LabelColor, labels[i]);
|
||||
if (labels[i].StartsWith("Pass", StringComparison.Ordinal))
|
||||
ImGuiNET.ImGui.SetItemTooltip("Luminance that reached your bank without a \"You've banked\" line: your vassals' pass-up.\nFellowship and Zone Share splits arrive the same silent way and are included.");
|
||||
else if (labels[i] == "Lum/5m")
|
||||
ImGuiNET.ImGui.SetItemTooltip("Luminance earned in the last five minutes.");
|
||||
string value = values != null && i < values.Length ? values[i] : "—";
|
||||
ImGuiNET.ImGui.PushFont(ImGuiFonts.Get(UiFont.Mono9));
|
||||
float w = ImGuiNET.ImGui.CalcTextSize(value).X;
|
||||
|
|
|
|||
|
|
@ -33,10 +33,13 @@ internal sealed class LogSource : UiSource<LogSnapshot>
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>The Tracker panel's rows, formatted: nine, plus two Radiance rows on Aelrynth once earned.</summary>
|
||||
/// <summary>
|
||||
/// The Tracker panel's rows, formatted: ten (Lum/5m from RynthTracker 0.4.0), plus two pass-up rows
|
||||
/// on ACECustom (the bank is read) and two Radiance rows on Aelrynth once earned.
|
||||
/// </summary>
|
||||
internal sealed record TrackerSnapshot(string[] Labels, string[] Values)
|
||||
{
|
||||
public static readonly string[] DefaultLabels = { "Session", "XP/hr", "Lum/hr", "Kls/hr", "XP", "Lum", "Kills", "XP/kl", "Deaths" };
|
||||
public static readonly string[] DefaultLabels = { "Session", "XP/hr", "Lum/hr", "Lum/5m", "Kls/hr", "XP", "Lum", "Kills", "XP/kl", "Deaths" };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -82,11 +85,17 @@ internal sealed unsafe class TrackerSource : UiSource<TrackerSnapshot>
|
|||
string Xp(long v) => maxLevel ? "max level" : FormatNum(v);
|
||||
var labels = new List<string> { "Session", "XP/hr", "Lum/hr" };
|
||||
var values = new List<string> { FormatTime(Num("ss")), Xp((long)Num("xh")), FormatNum((long)Num("lh")) };
|
||||
// Luminance of the last five minutes (RynthTracker 0.4.0; an older one doesn't send it).
|
||||
if (r.TryGetProperty("l5", out _)) { labels.Add("Lum/5m"); values.Add(FormatNum((long)Num("l5"))); }
|
||||
// Allegiance pass-up: only where the plugin can tell it apart (ACECustom's bank is read).
|
||||
bool passUp = Num("pk") > 0;
|
||||
if (passUp) { labels.Add("Pass/hr"); values.Add(FormatNum((long)Num("ph"))); }
|
||||
// Radiance (Aelrynth's Bank session total): rows only once some has been earned.
|
||||
long rad = (long)Num("rt");
|
||||
if (rad > 0) { labels.Add("Rad/hr"); values.Add(FormatNum((long)Num("rh"))); }
|
||||
labels.AddRange(new[] { "Kls/hr", "XP", "Lum" });
|
||||
values.AddRange(new[] { Num("kh").ToString("F1", ic), Xp((long)Num("xt")), FormatNum((long)Num("lt")) });
|
||||
if (passUp) { labels.Add("Pass-up"); values.Add(FormatNum((long)Num("pt"))); }
|
||||
if (rad > 0) { labels.Add("Rad"); values.Add(FormatNum(rad)); }
|
||||
labels.AddRange(new[] { "Kills", "XP/kl", "Deaths" });
|
||||
values.AddRange(new[] { ((long)Num("kt")).ToString(ic), Xp((long)Num("xk")), ((long)Num("dt")).ToString(ic) });
|
||||
|
|
|
|||
Loading…
Reference in a new issue