示例#1
0
 public override void Load()
 {
     base.Load();
     ResearchTable.ClearTable();
     invalidSetDefaults.Clear();
     if (!Main.dedServ)
     {
         purchaseUI = new UserInterface();
         ui         = new ResearchUI();
         ui.Activate();
         purchaseUI.SetState(ui);
         hotkey   = RegisterHotKey("Open or Close ResearchUI", "Add");
         prefixUI = new UserInterface();
         preUI    = new PrefixUI();
         preUI.Activate();
         prefixUI.SetState(preUI);
         preHotkey = RegisterHotKey("Open or Close Prefix Assignment", "Subtract");
     }
 }
示例#2
0
 public override void Unload()
 {
     ResearchTable.ClearTable();
     invalidSetDefaults.Clear();
 }