RynthSuite as of 2026-12-02 (internal 152e13d): release 2026.12.1.1
This commit is contained in:
parent
e8e4228d15
commit
6b5a9c7e99
65 changed files with 3920 additions and 237 deletions
|
|
@ -21,9 +21,9 @@ internal static class DefCommandParser
|
|||
"/rdef [use <slot or item name> | set <slot> [item name] | spell <slot> <spell name> | clear <slot> | bind <slot> <key> | unbind <slot> | "
|
||||
+ "weapons [search] | fav | slots <count> | list | status | settings | panels (the game panel buttons) | selection | appraisal [pin|unpin|again|popout|dock] | corpses [clear] | "
|
||||
+ "bars [add | remove <bar> | slots <bar> <count> | show <bar>] | shortcuts clearbusy [on|off] | "
|
||||
+ "qty [number|max|half] | split [number] [into <pack>] | give [number] | buy [number] [item name] | daynight [show|hide]]";
|
||||
+ "qty [number|max|half] | split [number] [into <pack>] | give [number] | buy [number] [item name] | daynight [show|hide|clear|box]]";
|
||||
|
||||
public const string DayNightUsage = "Usage: /rdef daynight [show|hide], e.g. /rdef daynight show (the Day/Night timer: real minutes to the next dawn or dusk)";
|
||||
public const string DayNightUsage = "Usage: /rdef daynight [show|hide|clear|box], e.g. /rdef daynight show (the Day/Night timer: real minutes to the next dawn or dusk; clear = no background, box = its dark box)";
|
||||
|
||||
public const string ClearBusyUsage =
|
||||
"Usage: /rdef shortcuts clearbusy on|off, e.g. /rdef shortcuts clearbusy on (a press held only by a stuck busy count clears it first; off by default)";
|
||||
|
|
@ -59,14 +59,16 @@ internal static class DefCommandParser
|
|||
case "selection": case "target":
|
||||
// "/rdef selection 0x80001234": select that object (a test hook for the Selection window).
|
||||
return new DefCommand(DefVerb.Selection, Text: rest);
|
||||
// The Day/Night timer (2026-11-04): Text "show", "hide" or "" (toggle).
|
||||
// The Day/Night timer (2026-11-04): Text "show", "hide" or "" (toggle); "clear" or "box" (2026-12-01) its background.
|
||||
case "daynight":
|
||||
return rest.ToLowerInvariant() switch
|
||||
{
|
||||
"" or "toggle" => new DefCommand(DefVerb.DayNight),
|
||||
"show" or "on" or "open" => new DefCommand(DefVerb.DayNight, Text: "show"),
|
||||
"hide" or "off" or "close" => new DefCommand(DefVerb.DayNight, Text: "hide"),
|
||||
_ => Fail($"'{rest}' isn't show or hide. {DayNightUsage}"),
|
||||
"clear" or "transparent" or "nobox" => new DefCommand(DefVerb.DayNight, Text: "clear"),
|
||||
"box" or "background" => new DefCommand(DefVerb.DayNight, Text: "box"),
|
||||
_ => Fail($"'{rest}' isn't show, hide, clear or box. {DayNightUsage}"),
|
||||
};
|
||||
case "fav": case "favourite": case "favorite": return new DefCommand(DefVerb.Favourite);
|
||||
case "weapons": case "weapon": case "picker": return new DefCommand(DefVerb.Weapons, Text: rest);
|
||||
|
|
|
|||
|
|
@ -118,6 +118,13 @@ internal sealed class DefSettings
|
|||
/// </summary>
|
||||
public bool QuantityBox = true;
|
||||
/// <summary>
|
||||
/// The Day/Night timer's dark box (2026-12-01: a clear background, so it takes no
|
||||
/// room of its own). Off (the default, and what a file from before reads as): the timer
|
||||
/// is drawn on a clear background, its sun or moon and text shadowed so they read over the radar,
|
||||
/// the arrow or the world. On: the dark box as before. /rdef daynight clear | box.
|
||||
/// </summary>
|
||||
public bool DayNightBox;
|
||||
/// <summary>
|
||||
/// Shortcuts clear a stuck busy state (2026-11-04, a player's ask): a press held only by the client's
|
||||
/// busy count (nothing of ours or RynthAi's in flight, no gesture, no "You're too busy" just now) resets
|
||||
/// the count as RynthAi's /ra clearbusy does (the engine's ForceResetBusyCount), then goes, once per
|
||||
|
|
|
|||
|
|
@ -41,6 +41,11 @@ internal static class DefReplies
|
|||
: (true, CommandReply.Shown("Day/Night timer", state == 1) + time);
|
||||
}
|
||||
|
||||
/// <summary>/rdef daynight clear | box: the timer's background after it.</summary>
|
||||
public static (bool Ok, string Text) DayNightLook(bool box) => (true, box
|
||||
? "Day/Night timer: on its dark box (/rdef daynight clear for no background)."
|
||||
: "Day/Night timer: on a clear background (/rdef daynight box brings the dark box back).");
|
||||
|
||||
/// <summary>A slot's use started (the result shows on the bar; a problem is said in chat).</summary>
|
||||
public static string UseSlot(DefSlot slot, int number) => slot.IsSpell
|
||||
? $"Casting {slot.SpellLabel} (slot {number})."
|
||||
|
|
|
|||
Loading…
Reference in a new issue