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