[206][Modding] YesNoToolbar* tags requires DisplayName to be localized

Digi shared this bug 38 hours ago
Submitted

The <YesNoToolbarBackground> requires the block to have <DisplayName> be localized, seems like a very arbitrary restriction.


I've attached a local mod for a custom block.

Place the block (find it by searching for "test"), enter it and click "setup actions" to see:

eG44Dar


Then edit the .sbc file to change the <DisplayName> to the value from the comment next to it (the one with gyro). Repeat the ingame thing with setup actions to now see:

qs5boQp


For the programmers: MyToolbar.Init() checks and passes BlockDefinition.DisplayNameEnum.

It should instead be using DisplayNameText so that it prints the block name regardless of how it's composed (localized, formatted or raw text).

Leave a Comment
 
Attach a file