RynthServers as of 2026-11-08 (internal 471970b): release 2026.11.8.1
This commit is contained in:
parent
f9db7bad87
commit
e52923ba5c
40 changed files with 4831 additions and 31 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue