Project

General

Profile

Bug #18073

AddModApplication shows button on main screen when it shouldn't

Added by linuxgurugamer about 6 years ago. Updated about 6 years ago.

Status:
Moot
Severity:
Unworthy
Assignee:
-
Category:
Controls and UI
Target version:
-
Start date:
03/16/2018
% Done:

0%

Version:
Platform:
Windows
Expansion:
Core Game
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

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 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));

Actually seemed to be a bug in the mod, I'm not seeing it anymore, so please close this.

Also available in: Atom PDF