// Hook location : MainMenu.Draw() public static bool onMainMenuDraw(Hacknet.MainMenu self, GameTime gameTime) { var drawMainMenuEvent = new Event.DrawMainMenuEvent(self, gameTime); drawMainMenuEvent.CallEvent(); if (drawMainMenuEvent.IsCancelled) { return(true); } return(false); }
// Hook location : MainMenu.Draw() public static bool onMainMenuDraw(MainMenu self, GameTime gameTime) { var drawMainMenuEvent = new Event.DrawMainMenuEvent(self, gameTime); drawMainMenuEvent.CallEvent(); if (drawMainMenuEvent.IsCancelled) { GuiData.endDraw(); PostProcessor.end(); self.ScreenManager.FadeBackBufferToBlack(255 - self.TransitionAlpha); return(true); } return(false); }