Skip to content

Fix "spawn tiles" window UIBox2 errors - #6932

Open
eoineoineoin wants to merge 2 commits into
space-wizards:masterfrom
eoineoineoin:eoin/2026.08.06.tiles
Open

Fix "spawn tiles" window UIBox2 errors#6932
eoineoineoin wants to merge 2 commits into
space-wizards:masterfrom
eoineoineoin:eoin/2026.08.06.tiles

Conversation

@eoineoineoin

@eoineoineoin eoineoineoin commented Aug 6, 2026

Copy link
Copy Markdown
Member

Like space-wizards/space-station-14#45085, but now for engine!

If you open the sandbox menu and hit the "spawn tiles" button, you'll see UIBox2 failing validation. Some of the tile textures had multiple variants, and the ItemList had not enough room for displaying text. 8969a8f just added a sanity Math.Min to make that piece robust.

The tile menu displays all the variants of the tile, which, IMO looks bad:

TilesBefore

The ItemList supports showing only a subset of a texture, but this feature was unused and didn't work. afea191 fixes that and displays only the first tile variant in that UI:

TilesAfter

A few tile types have the same name and same variant0 (see the "asteroid sand" in that screenshot), so probably need to do something there? Animate switching between the variants? Just give them different names? An explicit icon in the tile prototype? Open to suggestions.

@deltanedas

Copy link
Copy Markdown
Contributor

it should show the id on hover like entity spawn menu at least

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants