Snapshot for release 2026.10.28.1 (internal de8d80b)
This commit is contained in:
parent
f4246dbbd0
commit
8728446a27
46 changed files with 2522 additions and 259 deletions
|
|
@ -1267,6 +1267,15 @@ internal sealed class ChatFace : IImGuiPanel
|
|||
/// </summary>
|
||||
private void DrawLineColours()
|
||||
{
|
||||
bool retail = ChatLineColors.RetailColors;
|
||||
if (ImGuiNET.ImGui.Checkbox("Retail colours", ref retail))
|
||||
{
|
||||
ChatLineColors.RetailColors = retail;
|
||||
SaveColours();
|
||||
}
|
||||
SafeImGui.SetItemTooltip("Each kind of line in AC's own colour: magic and spells blue, combat red, tells yellow,\n" +
|
||||
"system purple, allegiance orange. RynthCore's own lines (the Rynth and Items tabs) keep theirs.\n" +
|
||||
"Off: every line takes its tab's colour. A colour you set below still wins.");
|
||||
Label("A rule's colour wins over these.", Mute);
|
||||
ColourGroup("Chat", ChatLineColors.ChatKinds);
|
||||
|
||||
|
|
@ -1320,7 +1329,9 @@ internal sealed class ChatFace : IImGuiPanel
|
|||
ImGuiNET.ImGui.SameLine();
|
||||
Label(kind.Label, RynthTheme.Argb(argb));
|
||||
SafeImGui.SetItemTooltip(kind.Hint + (set ? "" : kind.Key.StartsWith(ChatLineColors.TabPrefix, StringComparison.Ordinal)
|
||||
? "\nThe built-in colour." : $"\nNot set: the {kind.Tab} tab's colour."));
|
||||
? (ChatLineColors.RetailColors ? "\nThe built-in colour, for lines AC has no colour for (Retail colours on)." : "\nThe built-in colour.")
|
||||
: ChatLineColors.RetailColors && ChatLineColors.Get(ChatLineColors.TabPrefix + kind.Tab) == null
|
||||
? "\nNot set: AC's own colour." : $"\nNot set: the {kind.Tab} tab's colour."));
|
||||
if (set)
|
||||
{
|
||||
ImGuiNET.ImGui.SameLine();
|
||||
|
|
|
|||
|
|
@ -627,7 +627,7 @@ internal sealed class ChatFiltersFace : IImGuiPanel
|
|||
if (route.Tabs != null) tabs.AddRange(route.Tabs);
|
||||
where = tabs.Count == 0 ? "Shown nowhere." : "Shows in: " + string.Join(", ", tabs) + ".";
|
||||
}
|
||||
uint color = RynthTheme.Argb(ChatLineColors.Resolve(route.LineArgb, ChatLineColors.KindOf(type, channel, text), channel));
|
||||
uint color = RynthTheme.Argb(ChatLineColors.Resolve(route.LineArgb, ChatLineColors.KindOf(type, channel, text), channel, type));
|
||||
_testResult.Add((where + (route.LineArgb != null ? " (this is its colour)" : ""), route.Hidden ? Faded(Mute) : color));
|
||||
|
||||
// Not hidden: name a standard filter that would hide it (one not in the rules yet).
|
||||
|
|
|
|||
|
|
@ -207,6 +207,7 @@ internal sealed class ClassicMonstersTab : IClassicTab
|
|||
// Debuffs and shapes: three gems a row.
|
||||
float gw = w / 3;
|
||||
y = GemGrid("Debuffs", DamageCommands.DebuffDefs, sel, name, new Vector2(o.X, y), gw);
|
||||
y = GemGrid("Void", DamageCommands.VoidDebuffDefs, sel, name, new Vector2(o.X, y), gw);
|
||||
y = GemGrid("Spells", DamageCommands.ShapeDefs, sel, name, new Vector2(o.X, y), gw);
|
||||
return y;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -478,6 +478,7 @@ internal sealed class DamageDetailFace : IImGuiPanel
|
|||
|
||||
// A name rule has no Damage panel row: its debuffs, off hand and pet are set here.
|
||||
ToggleRow("Debuffs", DamageCommands.DebuffDefs, view, name);
|
||||
ToggleRow("Void", DamageCommands.VoidDebuffDefs, view, name);
|
||||
int off = view.OffhandId;
|
||||
string offText = off >= 0 && off < DamageCommands.OffhandModeNames.Length ? DamageCommands.OffhandModeNames[off] : "Item " + unchecked((uint)off);
|
||||
Combo("Off hand", "##offhand", DamageCommands.OffhandModeNames, offText,
|
||||
|
|
|
|||
|
|
@ -1046,6 +1046,7 @@ internal sealed class DamageFace : IImGuiPanel
|
|||
{
|
||||
var parts = new List<string>();
|
||||
foreach (var (field, label, _) in DamageCommands.DebuffDefs) if (v.GetToggle(field)) parts.Add(label);
|
||||
foreach (var (field, _, tip) in DamageCommands.VoidDebuffDefs) if (v.GetToggle(field)) parts.Add(tip[..tip.IndexOf(':')]);
|
||||
if (!string.IsNullOrEmpty(v.ExVuln) && !v.ExVuln.Equals("None", StringComparison.OrdinalIgnoreCase)) parts.Add("Extra Vuln: " + v.ExVuln);
|
||||
if (!string.IsNullOrWhiteSpace(v.CustomDebuffs)) parts.Add("Yours: " + v.CustomDebuffs);
|
||||
return string.Join("\n", parts);
|
||||
|
|
@ -1099,6 +1100,22 @@ internal sealed class DamageFace : IImGuiPanel
|
|||
SafeImGui.SetItemTooltip(tip);
|
||||
}
|
||||
|
||||
// The Void debuffs, two to a row.
|
||||
ImGuiNET.ImGui.TextColored(RynthTheme.VecOf(RynthTheme.MuteAlt), "Void Magic");
|
||||
for (int i = 0; i < DamageCommands.VoidDebuffDefs.Length; i++)
|
||||
{
|
||||
var (field, label, tip) = DamageCommands.VoidDebuffDefs[i];
|
||||
if (i % 2 == 1) ImGuiNET.ImGui.SameLine(140);
|
||||
bool on = view.GetToggle(field);
|
||||
if (ImGuiNET.ImGui.Checkbox(label + "##db_" + field, ref on))
|
||||
{
|
||||
bool v = on;
|
||||
string f = field;
|
||||
DamageCommands.EditRule(name, rule => rule.SetToggle(f, v));
|
||||
}
|
||||
SafeImGui.SetItemTooltip(tip);
|
||||
}
|
||||
|
||||
ImGuiNET.ImGui.TextColored(RynthTheme.VecOf(RynthTheme.MuteAlt), "Extra Vuln");
|
||||
ImGuiNET.ImGui.SameLine();
|
||||
string ex = string.IsNullOrEmpty(view.ExVuln) ? "None" : view.ExVuln;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,19 @@
|
|||
// here is saved the same way and a pin made here is the same pin. A drawer
|
||||
// that wasn't drawn in a frame drops its hub subscriptions (EndFrame).
|
||||
//
|
||||
// AC thread only (inside RynthAi's window, and EndFrame after the panels).
|
||||
// 2026-10-27: RynthVision draws the whole Vision window itself (it takes over
|
||||
// the engine's VisionFace, "takeOver"), but two of its tabs set things that are
|
||||
// still RynthCore's: the nameplates and the combat text (ImGui/MonsterHud,
|
||||
// MonsterHudSettings) are drawn by the engine until they move to RynthVision.
|
||||
// So RynthVision's window asks for those two tab bodies here, the same rows the
|
||||
// engine's Vision panel shows (MonsterHudSettingsUi), saved the same way:
|
||||
// nameplates the "Nameplates" tab
|
||||
// combattext the "Combat text" tab
|
||||
// They draw popped out too (the engine's Vision panel did); the three drawers
|
||||
// above stay docked-only (UiKit.RenderSettingsDrawer, DrawsPoppedOut).
|
||||
//
|
||||
// AC thread only (inside RynthAi's or RynthVision's window, and EndFrame after
|
||||
// the panels).
|
||||
// ============================================================================
|
||||
|
||||
using System;
|
||||
|
|
@ -43,6 +55,7 @@ internal static class SettingsDrawerBodies
|
|||
{
|
||||
Vector2 at = ImGuiNET.ImGui.GetCursorScreenPos();
|
||||
float w = MathF.Max(1, width);
|
||||
if (key is "nameplates" or "combattext") return DrawVisionTab(key, at, w);
|
||||
float k = MathF.Max(1f, ImGuiFonts.Get(UiFont.Dash11).FontSize / 11f);
|
||||
ImGuiNET.ImGui.PushFont(ImGuiFonts.Get(UiFont.Dash10));
|
||||
try
|
||||
|
|
@ -101,6 +114,30 @@ internal static class SettingsDrawerBodies
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>True for the bodies that draw in a popped-out window too (the Vision tabs).</summary>
|
||||
public static bool DrawsPoppedOut(string key) => key is "nameplates" or "combattext";
|
||||
|
||||
/// <summary>
|
||||
/// A Vision tab RynthVision's window shows (the engine's rows: MonsterHudSettingsUi), in Ui11 as the
|
||||
/// engine's Vision panel drew them. Returns the height drawn.
|
||||
/// </summary>
|
||||
private static float DrawVisionTab(string key, Vector2 at, float w)
|
||||
{
|
||||
ImGuiNET.ImGui.PushFont(ImGuiFonts.Get(UiFont.Ui11));
|
||||
ImGuiNET.ImGui.PushID(key == "nameplates" ? "##sdb_plates" : "##sdb_ctext");
|
||||
try
|
||||
{
|
||||
if (key == "nameplates") Hud.MonsterHudSettingsUi.DrawNameplates(w);
|
||||
else Hud.MonsterHudSettingsUi.DrawCombatText(w);
|
||||
}
|
||||
finally
|
||||
{
|
||||
ImGuiNET.ImGui.PopID();
|
||||
ImGuiNET.ImGui.PopFont();
|
||||
}
|
||||
return MathF.Max(0f, ImGuiNET.ImGui.GetCursorScreenPos().Y - at.Y);
|
||||
}
|
||||
|
||||
/// <summary>After the panels each frame: a body that wasn't drawn this frame lets its hub sources go.</summary>
|
||||
public static void EndFrame()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,6 +11,14 @@
|
|||
// your own plate), engine-side (Hud/MonsterHudSettingsUi);
|
||||
// Combat text floating damage / heal numbers, kill burst and gains.
|
||||
//
|
||||
// 2026-10-27: RynthVision draws the Vision window itself (its manifest's
|
||||
// "takeOver" window, RynthVision Ui/VisionWindow.cs, on engines with plugin
|
||||
// API v91): this face then steps aside (ImGuiPanelHost.TakeOver; same key, so
|
||||
// the saved place, bar button, hotkeys and /rc commands carry over) and comes back
|
||||
// when RynthVision unloads. Its Nameplates and Combat text tabs are drawn into
|
||||
// RynthVision's window by the engine (SettingsDrawerBodies "nameplates" /
|
||||
// "combattext"). Kept for an older RynthVision; goes a release after.
|
||||
//
|
||||
// Terrain edits a private copy and saves just the changed field
|
||||
// (VisionCommands) when a control finishes changing (a slider on release).
|
||||
// A newer snapshot replaces the copy unless a control is in use. The other
|
||||
|
|
|
|||
Loading…
Reference in a new issue