Skip to content

Commit

Permalink
Merge pull request #16 from linuxgurugamer/master
Browse files Browse the repository at this point in the history
Merge LGG's change
  • Loading branch information
zer0Kerbal committed Jan 31, 2020
2 parents 3dca585 + 2099ada commit c9cce64
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Source/SimpleLogistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ private void Start() {
refresh = true;

requested = false;
CreateLauncher();

GameEvents.onGUIApplicationLauncherReady.Add(CreateLauncher);
//GameEvents.onGUIApplicationLauncherReady.Add(CreateLauncher);
GameEvents.onLevelWasLoaded.Add (onLevelWasLoaded);
GameEvents.onVesselChange.Add (onVesselChange);
GameEvents.onHideUI.Add(onHideUI);
Expand All @@ -84,7 +85,7 @@ private void OnDestroy() {
config.SetValue (this.name, windowRect);
config.save ();

GameEvents.onGUIApplicationLauncherReady.Remove(CreateLauncher);
//GameEvents.onGUIApplicationLauncherReady.Remove(CreateLauncher);
GameEvents.onLevelWasLoaded.Remove (onLevelWasLoaded);
GameEvents.onVesselChange.Remove (onVesselChange);
GameEvents.onHideUI.Remove(onHideUI);
Expand Down Expand Up @@ -124,10 +125,10 @@ public void onLevelWasLoaded(GameScenes scene)

public const string MODID = "SimpleLogisticsUI";
public const string MODNAME = "Simple Logistics";
private void CreateLauncher() {
private void CreateLauncher()
{
toolbarControl = gameObject.AddComponent<ToolbarControl>();
toolbarControl.AddToAllToolbars(onAppTrue, onAppFalse,

toolbarControl.AddToAllToolbars(onAppTrue, onAppFalse,
ApplicationLauncher.AppScenes.FLIGHT,
MODID,
"SIButton",
Expand Down

0 comments on commit c9cce64

Please sign in to comment.