Snapshot for release 2026.10.12.1 (internal 8d252bd)
This commit is contained in:
parent
504a6f080a
commit
3c4f093e3d
60 changed files with 5748 additions and 602 deletions
|
|
@ -57,9 +57,12 @@ public sealed class RynthOraclePlugin : RynthPluginBase
|
|||
{
|
||||
DefaultWidth = 620f, DefaultHeight = 560f, MinWidth = 420f, MinHeight = 260f,
|
||||
});
|
||||
// The Void window is opened from the Oracle window: no bar button (and no Scripts menu
|
||||
// line, which would bring back the Scripts button just for it).
|
||||
_void = _ui.Add(new UiWindow("RynthOracle/Void", "Void")
|
||||
{
|
||||
DefaultWidth = 220f, DefaultHeight = 150f, MinWidth = 160f, MinHeight = 110f,
|
||||
ShowInBar = false,
|
||||
});
|
||||
_mainView.SetVoidWindow = v => { if (_void != null) { _void.Visible = v; _void.NeedsPass = true; } };
|
||||
_mainView.VoidWindowVisible = () => _void?.Visible ?? false;
|
||||
|
|
|
|||
|
|
@ -47,6 +47,9 @@ internal static class UiFormat
|
|||
// Window flags
|
||||
public const uint FlagVisible = 1u << 0;
|
||||
public const uint FlagShowInBar = 1u << 1;
|
||||
/// <summary>With ShowInBar: a bar button of its own instead of a Scripts menu line (engines from
|
||||
/// 2026-10-11; older ones ignore it and list the window in the Scripts menu).</summary>
|
||||
public const uint FlagBarButton = 1u << 11;
|
||||
public const uint FlagNoScrollbar = 1u << 5;
|
||||
|
||||
// Event types
|
||||
|
|
|
|||
|
|
@ -42,6 +42,9 @@ internal sealed class UiWindow
|
|||
public string Title;
|
||||
public bool Visible;
|
||||
public bool ShowInBar = true;
|
||||
/// <summary>With ShowInBar: the window has its own button on the RynthCore bar (title as the
|
||||
/// tooltip) rather than a line in the Scripts menu.</summary>
|
||||
public bool BarButton = true;
|
||||
public float DefaultWidth, DefaultHeight, MinWidth, MinHeight;
|
||||
|
||||
/// <summary>A pass is wanted at the next chance (input arrived, it was just shown, data changed).</summary>
|
||||
|
|
@ -80,7 +83,8 @@ internal sealed class UiWindow
|
|||
Title = title;
|
||||
}
|
||||
|
||||
public uint Flags => (Visible ? UiFormat.FlagVisible : 0) | (ShowInBar ? UiFormat.FlagShowInBar : 0);
|
||||
public uint Flags => (Visible ? UiFormat.FlagVisible : 0) | (ShowInBar ? UiFormat.FlagShowInBar : 0)
|
||||
| (ShowInBar && BarButton ? UiFormat.FlagBarButton : 0);
|
||||
|
||||
public bool HeaderDirty =>
|
||||
_sentTitle != Title || _sentFlags != Flags || _sentDw != DefaultWidth || _sentDh != DefaultHeight
|
||||
|
|
|
|||
Loading…
Reference in a new issue