RynthSuite as of 2026-11-29 (internal 46bae49): release 2026.11.28.1
This commit is contained in:
parent
25552fa794
commit
598f49c899
131 changed files with 11825 additions and 329 deletions
|
|
@ -3,7 +3,7 @@ using System;
|
|||
namespace RynthCore.Plugin.RynthDefective.Model;
|
||||
|
||||
internal enum DefVerb { Toggle, Help, Use, Set, Clear, Bind, Unbind, Weapons, Favourite, Slots, List, Status, Error, Panels, Selection, Settings, Spell, Corpses,
|
||||
Quantity, Split, Give, Buy, DayNight, Bars, Shortcuts }
|
||||
Quantity, Split, Give, Buy, DayNight, Bars, Shortcuts, Appraisal }
|
||||
|
||||
/// <summary>
|
||||
/// A parsed "/rdef ..." line. Use: <see cref="Slot"/> (1-based) or <see cref="Text"/> (an item name).
|
||||
|
|
@ -19,7 +19,7 @@ internal static class DefCommandParser
|
|||
{
|
||||
public const string Usage =
|
||||
"/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 | corpses [clear] | "
|
||||
+ "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]]";
|
||||
|
||||
|
|
@ -54,6 +54,8 @@ internal static class DefCommandParser
|
|||
case "panels": case "panel": return new DefCommand(DefVerb.Panels);
|
||||
case "settings": case "options": case "setup": return new DefCommand(DefVerb.Settings);
|
||||
case "corpses": case "corpse": return new DefCommand(DefVerb.Corpses, Text: rest);
|
||||
// The Appraisal window (2026-11-28): Text "", "pin", "unpin", "again", or an object id (a test hook).
|
||||
case "appraisal": case "appraise": case "examine": return new DefCommand(DefVerb.Appraisal, Text: rest);
|
||||
case "selection": case "target":
|
||||
// "/rdef selection 0x80001234": select that object (a test hook for the Selection window).
|
||||
return new DefCommand(DefVerb.Selection, Text: rest);
|
||||
|
|
|
|||
|
|
@ -128,6 +128,11 @@ internal sealed class DefSettings
|
|||
/// within 4 s; this only saves those seconds.
|
||||
/// </summary>
|
||||
public bool ClearStuckBusy;
|
||||
/// <summary>
|
||||
/// The Appraisal window is pinned (2026-11-28): only a middle-click changes what it shows, not the
|
||||
/// player's own selections. Off (the default, and what a file from before reads as): both do.
|
||||
/// </summary>
|
||||
public bool AppraisalPinned;
|
||||
public bool BarOpen;
|
||||
public bool PickerOpen;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,6 +18,14 @@ internal static class DefReplies
|
|||
_ => (false, $"This RynthCore has no {title} window (it needs plugin API v90)."),
|
||||
};
|
||||
|
||||
/// <summary>A window after a pop out / dock: <paramref name="state"/> 1 popped out, 0 docked, -1 not open (or no such window).</summary>
|
||||
public static (bool Ok, string Text) PoppedOut(string title, int state) => state switch
|
||||
{
|
||||
1 => (true, $"{title} popped out: its own window, which you can put on another screen."),
|
||||
0 => (true, $"{title} docked back into the game window."),
|
||||
_ => (false, $"The {title} isn't open: open it first (/rdef appraisal), then pop it out."),
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// /rdef daynight [show|hide]: the Day/Night timer after it (<paramref name="state"/> as <see cref="Window"/>),
|
||||
/// then the time now when the clock can be read (null = not in world): "Day/Night timer shown. Night now
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ internal sealed class DefStore
|
|||
st.IndependentBar = Bool(s, "independentBar", st.IndependentBar); // missing (a file from before 2026-10-27): off
|
||||
st.QuantityBox = Bool(s, "quantityBox", st.QuantityBox); // missing (a file from before 2026-10-30): on
|
||||
st.ClearStuckBusy = Bool(s, "clearStuckBusy", st.ClearStuckBusy); // missing (a file from before 2026-11-04): off
|
||||
st.AppraisalPinned = Bool(s, "appraisalPinned", st.AppraisalPinned); // missing (a file from before 2026-11-28): off
|
||||
st.BarOpen = Bool(s, "barOpen", st.BarOpen);
|
||||
st.PickerOpen = Bool(s, "pickerOpen", st.PickerOpen);
|
||||
st.Clamp();
|
||||
|
|
@ -192,6 +193,7 @@ internal sealed class DefStore
|
|||
w.WriteBoolean("independentBar", s.IndependentBar);
|
||||
w.WriteBoolean("quantityBox", s.QuantityBox);
|
||||
w.WriteBoolean("clearStuckBusy", s.ClearStuckBusy);
|
||||
w.WriteBoolean("appraisalPinned", s.AppraisalPinned);
|
||||
w.WriteBoolean("barOpen", s.BarOpen);
|
||||
w.WriteBoolean("pickerOpen", s.PickerOpen);
|
||||
w.WriteEndObject();
|
||||
|
|
|
|||
Loading…
Reference in a new issue