Author Topic: Add a button  (Read 1619 times)

You misunderstand, I am referring to the execution of the mod itself, and not the way it handles tabs.

Code: [Select]
if($BSD_TabShifting != 1)
{
exec("./ui/BrickSelectorDlg.gui");
$BSD_SelectedTab = 0;
$BSD_TabShifting = 1;
}

The new gui that is loaded then overwrites the namespace for BrickSelectorDlg, effectively replacing the existing one instead of modifying it.
Wth
Well if it does that then it shouldn't be used as an example because recreating the whole gui is clearly the wrong way to add 2 buttons.