Snapshot for release 2026.10.12.1 (internal 8d252bd)

This commit is contained in:
Tom Bohar 2026-10-12 00:33:13 -04:00
commit 3c4f093e3d
60 changed files with 5748 additions and 602 deletions

View file

@ -48,6 +48,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;
// Image icon kinds (op level 2)

View file

@ -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