Exemplo n.º 1
0
        public override void Entry(IModHelper helper)
        {
            Helper.Events.Input.ButtonPressed  += OnButtonPressed;
            Helper.Events.Input.ButtonReleased += OnButtonReleased;


            Config       = Helper.ReadConfig <ModConfig>();
            toolBeltMenu = new ToolBeltMenu(Helper, this, Config, Monitor);

            //support for generic mod menu
            Helper.Events.GameLoop.GameLaunched += onLaunched;
            Helper.Events.GameLoop.SaveLoaded   += reinit;
        }
Exemplo n.º 2
0
 private void reinit(object sender, SaveLoadedEventArgs e)
 {
     Config       = Helper.ReadConfig <ModConfig>();
     toolBeltMenu = new ToolBeltMenu(Helper, this, Config, Monitor);
 }