Snapshot for release 2026.10.8.1 (internal e654aa5)
This commit is contained in:
parent
cfcab27d0d
commit
650915dadc
26 changed files with 1154 additions and 30 deletions
|
|
@ -20,7 +20,9 @@
|
|||
//
|
||||
// The input line belongs to ChatModel (UI/Data/ChatData.cs): Win32Backend
|
||||
// turns the chat keys into ChatModel edits on AC's thread, which is also
|
||||
// this face's thread. Clicking the box starts typing, like Enter.
|
||||
// this face's thread. Clicking the box starts typing, like Enter. While
|
||||
// typing, Ctrl+V pastes and Ctrl+C / Ctrl+X copy / cut the whole line;
|
||||
// /r and /rt reply and retell (TellMemory).
|
||||
//
|
||||
// The panel has no strip under the body for the resize grip (PanelSpec.
|
||||
// GripInBody): the input row stops short of the bottom-right corner by
|
||||
|
|
@ -639,7 +641,7 @@ internal sealed class ChatFace : IImGuiPanel
|
|||
ImGuiNET.ImGui.SetCursorScreenPos(p);
|
||||
if (ImGuiNET.ImGui.InvisibleButton("##chat_input", new Vector2(boxW, h)))
|
||||
ChatModel.BeginTyping();
|
||||
if (!typing && ChatHooks.RynthChatOwnsChat) ImGuiNET.ImGui.SetItemTooltip("Click or press Enter to chat");
|
||||
if (!typing && ChatHooks.RynthChatOwnsChat) ImGuiNET.ImGui.SetItemTooltip("Click or press Enter to chat (Ctrl+V pastes; /r replies, /rt retells)");
|
||||
dl.AddRectFilled(p, p + new Vector2(boxW, h), InputBg, 3);
|
||||
dl.AddRect(p, p + new Vector2(boxW, h), typing ? InputActive : InputBorder, 3);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@
|
|||
//
|
||||
// item its name and the profile the rule goes to
|
||||
// match name + class (default), name only, items like this
|
||||
// T11 "Include T11 attributes": also require the item's T11 tier,
|
||||
// grade, damage %, modifiers, slot special and Cast on Strike,
|
||||
// each at least this item's (any match; 2026-10-07)
|
||||
// action Keep, Keep # (with the count), Salvage, Sell, Read
|
||||
// name the rule's name (empty: RynthAi's default, "Keep Copper Pea")
|
||||
// preview the rule in words, where it goes in the list and why, notes
|
||||
|
|
@ -48,6 +51,7 @@ internal sealed class LootAddDialog
|
|||
|
||||
// What the popup asks for (0 / -1 = RynthAi's default).
|
||||
private int _match, _action, _keep = -1;
|
||||
private bool _includeT11;
|
||||
private readonly byte[] _name = new byte[128];
|
||||
private int _keepEdit = 1;
|
||||
|
||||
|
|
@ -88,6 +92,7 @@ internal sealed class LootAddDialog
|
|||
_match = 0;
|
||||
_action = 0;
|
||||
_keep = -1;
|
||||
_includeT11 = false;
|
||||
Array.Clear(_name);
|
||||
_draft = null;
|
||||
_adding = false;
|
||||
|
|
@ -113,7 +118,7 @@ internal sealed class LootAddDialog
|
|||
Item = new LootEditItemRequestDto
|
||||
{
|
||||
ItemId = _itemId, Match = _match, Action = _action, KeepCount = _keep,
|
||||
RuleName = Utf8(_name).Trim(), ToOpenProfile = _toOpenProfile, Seq = _seq,
|
||||
RuleName = Utf8(_name).Trim(), ToOpenProfile = _toOpenProfile, IncludeT11 = _includeT11, Seq = _seq,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
@ -255,6 +260,24 @@ internal sealed class LootAddDialog
|
|||
if (ImGuiNET.ImGui.IsItemHovered()) ImGuiNET.ImGui.SetTooltip(MatchTips[i]);
|
||||
}
|
||||
|
||||
// T11 attributes. Shown for every item: a non-T11 item answers with a note saying so.
|
||||
bool t11 = _includeT11;
|
||||
if (ImGuiNET.ImGui.Checkbox("Include T11 attributes##la_t11", ref t11))
|
||||
{
|
||||
_includeT11 = t11;
|
||||
changed = true;
|
||||
}
|
||||
if (ImGuiNET.ImGui.IsItemHovered())
|
||||
ImGuiNET.ImGui.SetTooltip(
|
||||
"Also require this item's T11 tier, weapon grade, damage %, every modifier, slot special\n" +
|
||||
"and Cast on Strike, each at least as good as this one. Works with any match.\n" +
|
||||
"Not added: Can Wield (depends on your character) and Zone Locked (depends on where it was assessed).");
|
||||
if (!d.IsT11)
|
||||
{
|
||||
ImGuiNET.ImGui.SameLine();
|
||||
ImGuiNET.ImGui.TextDisabled("(not a T11 item)");
|
||||
}
|
||||
|
||||
// Action.
|
||||
ImGuiNET.ImGui.TextDisabled("Action:");
|
||||
for (int i = 0; i < ActionIds.Length; i++)
|
||||
|
|
|
|||
|
|
@ -554,19 +554,45 @@ internal sealed partial class RynthAiFace : IImGuiPanel
|
|||
|
||||
// ── Footer: FPS | version | uptime ─────────────────────────────────────
|
||||
|
||||
private static string Clock(TimeSpan t) =>
|
||||
t.TotalHours >= 1 ? $"{(int)t.TotalHours}:{t.Minutes:D2}:{t.Seconds:D2}" : $"{t.Minutes}:{t.Seconds:D2}";
|
||||
|
||||
private static DateTime _clientStartedUtc = DateTime.MinValue;
|
||||
private static bool _clientStartRead;
|
||||
|
||||
/// <summary>When acclient.exe started (read once; MinValue if Windows won't say).</summary>
|
||||
private static DateTime ClientStartedUtc()
|
||||
{
|
||||
if (_clientStartRead) return _clientStartedUtc;
|
||||
_clientStartRead = true;
|
||||
try
|
||||
{
|
||||
using var p = System.Diagnostics.Process.GetCurrentProcess();
|
||||
_clientStartedUtc = p.StartTime.ToUniversalTime();
|
||||
}
|
||||
catch { _clientStartedUtc = DateTime.MinValue; }
|
||||
return _clientStartedUtc;
|
||||
}
|
||||
|
||||
private void Footer(RynthAiView? view, float x0, float width)
|
||||
{
|
||||
int fps = (int)MathF.Round(D3D9.EndSceneHook.MeasuredFps);
|
||||
if (fps != _fpsShown) { _fpsShown = fps; _fpsText = fps > 0 ? $"FPS {fps}" : "FPS —"; }
|
||||
// Bot: since this engine loaded (a hot reload restarts it). Client: since the game client
|
||||
// started (2026-10-08), which a reload doesn't touch.
|
||||
DateTime started = EntryPoint.InitStartedUtc;
|
||||
if (started != DateTime.MinValue)
|
||||
{
|
||||
TimeSpan up = DateTime.UtcNow - started;
|
||||
DateTime now = DateTime.UtcNow;
|
||||
TimeSpan up = now - started;
|
||||
long secs = (long)up.TotalSeconds;
|
||||
if (secs != _upShown)
|
||||
{
|
||||
_upShown = secs;
|
||||
_upText = up.TotalHours >= 1 ? $"Up {(int)up.TotalHours}:{up.Minutes:D2}:{up.Seconds:D2}" : $"Up {up.Minutes}:{up.Seconds:D2}";
|
||||
DateTime client = ClientStartedUtc();
|
||||
_upText = client != DateTime.MinValue
|
||||
? $"Bot {Clock(up)} Client {Clock(now - client)}"
|
||||
: $"Up {Clock(up)}";
|
||||
}
|
||||
}
|
||||
var dl = ImGuiNET.ImGui.GetWindowDrawList();
|
||||
|
|
|
|||
Loading…
Reference in a new issue