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