Exemplo 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();
 }
Exemplo n.º 2
0
 public void OnEnabled()
 {
     eventHandler = new StashEvents();
     Log("Plugin ItemCount - Enabled " + Version + " now in action!");
     ItemCountTabUI.InstallTab();
     GameEvents.OnGameJoined += GameEvents_OnGameJoined;
 }
Exemplo n.º 3
0
 public void OnShutdown()
 {
     eventHandler = null;
     GameEvents.OnGameJoined -= GameEvents_OnGameJoined;
 }
Exemplo n.º 4
0
 ///////////////
 // DB EVENTS //
 public void OnDisabled()
 {
     Log("Plugin ItemCount - Disabled");
     ItemCountTabUI.RemoveTab();
     eventHandler = null;
     GameEvents.OnGameJoined -= GameEvents_OnGameJoined;
 }