RynthServers as of 2026-11-08 (internal 471970b): release 2026.11.8.1

This commit is contained in:
Tom Bohar 2026-11-08 15:48:49 -05:00
commit e52923ba5c
40 changed files with 4831 additions and 31 deletions

View file

@ -169,7 +169,8 @@ internal sealed class ServerPackModel
/// is easy to find, not mixed in with the rest; until then the card and pages were sub-tabs of a
/// shared "Server" section of the Mini Remote.
/// </summary>
public static string BuildSectionsJson(ServerPackInfo info, string pluginName, IReadOnlyList<ServerPage>? pages = null)
public static string BuildSectionsJson(ServerPackInfo info, string pluginName, IReadOnlyList<ServerPage>? pages = null,
IReadOnlyList<ServerWindow>? windows = null, bool frameless = false)
{
var sb = new StringBuilder(512);
sb.Append("{\"version\":1,\"servers\":[{\"id\":").Append(Q(info.Id)).Append(",\"name\":").Append(Q(info.Name));
@ -184,7 +185,10 @@ internal sealed class ServerPackModel
sb.Append(",\"icon\":").Append(Q(WindowIcon));
sb.Append(",\"width\":").Append(tabs ? ServerPackPages.Width : 460).Append(",\"height\":").Append(ServerPackPages.Height);
sb.Append(",\"minWidth\":320,\"minHeight\":200,\"bar\":true,\"server\":").Append(Q(info.Id));
sb.Append("}]}");
sb.Append('}');
// The server's own windows (ServerWindows, ServerPackWindows.cs, 2026-11-07).
if (windows != null) sb.Append(ServerPackWindows.Json(windows, info.Id, frameless));
sb.Append("]}");
return sb.ToString();
}