void GameEvents_OnGameJoined(object sender, EventArgs e) { eventHandler = new StashEvents(); //run itemcount function Logger.Log("Game is joined, Start ItemCount"); ItemCountTabUI.ShowItemCount(); }
public void OnEnabled() { eventHandler = new StashEvents(); Log("Plugin ItemCount - Enabled " + Version + " now in action!"); ItemCountTabUI.InstallTab(); GameEvents.OnGameJoined += GameEvents_OnGameJoined; }
public void OnShutdown() { eventHandler = null; GameEvents.OnGameJoined -= GameEvents_OnGameJoined; }
/////////////// // DB EVENTS // public void OnDisabled() { Log("Plugin ItemCount - Disabled"); ItemCountTabUI.RemoveTab(); eventHandler = null; GameEvents.OnGameJoined -= GameEvents_OnGameJoined; }