Bug #18073
AddModApplication shows button on main screen when it shouldn't
0%
Description
This is a bit of an odd case.
mod is adding a button to the stock toolbar at the main menu, the settings say it should only be shown in the SPB or VAB
Yet it initially shows up at the space center
After going into the editor and out, it's gone
Relevant code:
const ApplicationLauncher.AppScenes visibleScenes =
ApplicationLauncher.AppScenes.SPH | ApplicationLauncher.AppScenes.VAB;
ApplicationLauncherButton button = ApplicationLauncher.Instance.AddModApplication (onTrue, onFalse, null, null,
null, null, visibleScenes, GameDatabase.Instance.GetTexture(iconPath, false));
History
#1 Updated by linuxgurugamer about 6 years ago
- Status changed from New to Moot
- Severity changed from Normal to Unworthy
linuxgurugamer wrote:
This is a bit of an odd case.
mod is adding a button to the stock toolbar at the main menu, the settings say it should only be shown in the SPB or VAB
Yet it initially shows up at the space center
After going into the editor and out, it's goneRelevant code:
const ApplicationLauncher.AppScenes visibleScenes =
ApplicationLauncher.AppScenes.SPH | ApplicationLauncher.AppScenes.VAB;ApplicationLauncherButton button = ApplicationLauncher.Instance.AddModApplication (onTrue, onFalse, null, null,
null, null, visibleScenes, GameDatabase.Instance.GetTexture(iconPath, false));
Actually seemed to be a bug in the mod, I'm not seeing it anymore, so please close this.