Repository navigation
Masonry 0.0.1.30 (Build #30)
Pre-release
Pre-release
What's New
[2026-04-08] Build menu icon polish + tooltips (T-0001)
Milestone: UI polish
Files changed: src/gui/ui/ui_gamehud.cpp, src/gui/aggregatorinventory.cpp, content/db/ingnomia.db.sql
Changes
- Larger framed build icons — bumped icon size from 48px → 64px and added a
FrameBg-tinted, bordered backdrop drawn viaImDrawList. Reads cleanly against any panel background. - Real material in baked previews —
setBuildItemValuesnow picks the first concrete available material per required component (falling back toPine) instead of passing"None", so workshop/item previews render in colour rather than as flat silhouettes. - Auto-trim transparent / flat-bg margins — at draw time the build menu computes a content bbox over the buffer (sampling the top-left corner as backdrop colour with a tolerance), caches uv0/uv1 per cache key, and feeds them into
ImageWithBgso small sprites (chairs, cabinets, walls) fill the framed box. - Background knock-out —
stripBlackBackgroundwalks the freshly-baked RGBA buffer in the aggregator and zeros alpha on any pixel within tolerance of the top-left sample, removing the opaque black square the bake leaves behind. - Furniture / mechanism / hydraulics tooltips — added 29
$BuildingDesc_*Translation rows (Bed, Chair, Table, Cabinet, Painting, Statue, GearBox, SteamEngine, Axle, Lever, Pipe, Pump, Windmill, ...) and an$ItemDesc_<id>fallback inbuildingTooltipDescso any item with an existing item description surfaces it without an extra row.
Technical Details
- ImGui ≥1.90 deprecated
Image(..., tint, border); switched toImageWithBg(tex, size, uv0, uv1, bg, tint). The tint is held at ~1.15× to lift the dim baked previews without blowing out colour. - The bbox cache lives as a function-local
static std::unordered_map<unsigned int, ImVec4>keyed by the existing sprite cache key, so it inherits invalidation for free when the texture cache is cleared. stripBlackBackgroundsamples the corner pixel rather than hard-coding(0,0,0), so it tolerates any flat backdrop the bake might use.
Build: #30 | Commit: 6ecc9ef
Downloads
- Windows:
Masonry-Windows.zip— extract and runMasonry.exe - macOS:
Masonry-macOS.zip— extract, right-click Masonry.app → Open (first time) - Linux:
Masonry-Linux.tar.gz— extract and run./masonry.sh