[205.023] ShowInToolbarConfig terminal property no longer exists

Digi shared this bug 10 days ago
Submitted

Any mod or programmable block that uses block.SetValue<bool>("ShowInToolbarConfig", true) would get an error because it no longer exists.


The GUI does still have it but its internal ID is "ShowInTerminal".

This is because MyTerminalBlock.CreateTerminalControls() uses SHOW_IN_TERMINAL ID on both the first and the 3rd control, instead of SHOW_IN_TOOLBAR_CONFIG being used on the 3rd.


To reproduce:

1. a world with ingame scripts enabled

2. place a battery and a programmable block

3. add this script to the PB:

public Program()
{
    Me.SetValue<bool>("ShowInToolbarConfig", false);
}
See how it throws errors bottom-right in its terminal.


And yes while there are workarounds, this should still be fixed as it causes unnecessary issues for older PB scripts and mods.

Leave a Comment
 
Attach a file