rimworld-blax-laws/Source/Art
Fabian @ Blax Software 756af6c14e Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail
- Laws tab with the lawbook and the case log; the book starts empty and
  the mod watches nothing until a law exists.
- Act catalogue built from the game's defs (breaks, food, drugs, usables,
  interactions, recorded acts, records, bills) plus special acts, with
  groups, break links and a starter lawbook.
- Enforcement: warn, guilty, subdue, jail for N days and subdue then jail,
  one case per incident, danger waits, role holders and mechanitors held
  for Arrest now.
- Headless test suite green in every DLC combination, core only and with
  the compat mods.
2026-12-02 21:07:17 +01:00
..
fonts Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00
README.md Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00
blax-monogram.svg Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00
header.html Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00
icon.html Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00
icon.svg Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00
monogram-centered.svg Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00
oss-banner.html Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00
preview.html Blax Laws 1.0.0: lawbook, act catalogue, enforcement and jail 2026-12-02 21:07:17 +01:00

README.md

Preview art

preview.html renders About/Preview.png (1280x720) and icon.html renders About/ModIcon.png (256x256) from icon.svg. Both follow the Blax CI from https://www.blax.at/ui-ci and match the art of the other Blax Gaming mods, so the mods read as one label: Blax black #050805, Blax green #19C63C, logo gray #CDCDCD, Geist for headings, Inter for body text, Rajdhani only for the "Blax Gaming" wordmark. Fonts are the woff2 files blax.at self-hosts (all SIL Open Font License); icons are lucide (ISC license).

The preview has Slaves' layout: wordmark top left, "Blax Laws" with a green subtitle on the left, four feature rows on the right (write your own lawbook, any act can be a crime, subdue or jail, court and votes planned). "Laws" is short, so the feature column starts at 700 px instead of Zones' 760 and the longer row titles stay on one line. The icon is the Blax monogram with a green "scale" badge, so it stands apart from Slaves' plain monogram, Castes' "layers", Zones' "package" and Defaults' "sliders-horizontal" badges in the mod list.

File Renders
preview.html About/Preview.png, 1280x720
icon.html + icon.svg About/ModIcon.png, 256x256, transparent
header.html the Workshop section headers in docs/art/steam/, 1270x150
oss-banner.html docs/art/blax-oss-banner.png, 1600x254, from docs/art/blax-oss-banner.svg
blax-monogram.svg, monogram-centered.svg the Blax monogram, used by the pages above
fonts/ Geist, Inter, Rajdhani 700

Render with Edge headless from this folder. The separate profile folder keeps the headless run away from an open Edge window, and | Out-Null waits for each screenshot.

$edge = 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
$here = (Get-Location).Path -replace '\\','/'
$edgeData = "$env:TEMP\blax-art-edge-laws"
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1280,720 --screenshot="$PWD\..\..\About\Preview.png" "file:///$here/preview.html" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=2000 --window-size=256,256 --default-background-color=00000000 --screenshot="$PWD\..\..\About\ModIcon.png" "file:///$here/icon.html" | Out-Null

About/Preview.png must stay under 1 MB for the Workshop; it is about 90 KB.

Workshop page art

The Steam description (docs/workshop-description.txt) shows a section header from docs/art/steam/ above each part and Blax Software's Open Source Initiative banner at the end. Steam shows no SVG, so the banner (docs/art/blax-oss-banner.svg, the same file as in the other Blax Gaming mods) is also rendered as a PNG; it is the same PNG as Zones' docs/art/blax-oss-banner.png. header.html takes the title (t), subtitle (s) and lucide icon name (i) as query parameters; the icon must be in its icons map.

File t s i
lawbook.png Lawbook Write what is forbidden and see every case book-open-text
crimes.png Crimes Any act can be one, DLC and modded content included fingerprint
punishments.png Punishments Warn, guilty, subdue and jail lock-keyhole
planned.png Planned Coming in later releases milestone
compatibility.png Compatibility Other mods and where they overlap puzzle
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1600,254 --screenshot="$PWD\..\..\docs\art\blax-oss-banner.png" "file:///$here/oss-banner.html" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1270,150 --screenshot="$PWD\..\..\docs\art\steam\lawbook.png" "file:///$here/header.html?t=Lawbook&s=Write%20what%20is%20forbidden%20and%20see%20every%20case&i=book-open-text" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1270,150 --screenshot="$PWD\..\..\docs\art\steam\crimes.png" "file:///$here/header.html?t=Crimes&s=Any%20act%20can%20be%20one%2C%20DLC%20and%20modded%20content%20included&i=fingerprint" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1270,150 --screenshot="$PWD\..\..\docs\art\steam\punishments.png" "file:///$here/header.html?t=Punishments&s=Warn%2C%20guilty%2C%20subdue%20and%20jail&i=lock-keyhole" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1270,150 --screenshot="$PWD\..\..\docs\art\steam\planned.png" "file:///$here/header.html?t=Planned&s=Coming%20in%20later%20releases&i=milestone" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1270,150 --screenshot="$PWD\..\..\docs\art\steam\compatibility.png" "file:///$here/header.html?t=Compatibility&s=Other%20mods%20and%20where%20they%20overlap&i=puzzle" | Out-Null

Check each result for its size before using it:

Add-Type -AssemblyName System.Drawing
Get-ChildItem ..\..\About\*.png, ..\..\docs\art\steam\*.png, ..\..\docs\art\*.png | ForEach-Object { $i = [System.Drawing.Image]::FromFile($_.FullName); '{0}: {1}x{2}, {3} bytes' -f $_.Name, $i.Width, $i.Height, $_.Length; $i.Dispose() }

The Steam page loads these images from the Blax CDN (https://cdn.blax.at/blax-gaming/), not from Forgejo: Steam requests description images cross-origin, and only the CDN answers with Access-Control-Allow-Origin. After re-rendering, copy the PNGs to blax-gaming/laws/ on the CDN (blax-gaming/laws/<name>.png; the banner is shared at blax-gaming/blax-oss-banner.png and is already there). The upload steps are in Blax's internal infrastructure docs.