// 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);
        }
Beispiel #2
0
 public DrawMainMenuButtonsEvent(Hacknet.MainMenu mainMenuInstance)
 {
     this.mainMenuInstance = mainMenuInstance;
 }
Beispiel #3
0
 public DrawMainMenuEvent(Hacknet.MainMenu mainMenuInstance, GameTime gameTime)
 {
     this.mainMenuInstance = mainMenuInstance;
     this.gameTime         = gameTime;
 }
 public DrawMainMenuTitlesEvent(Hacknet.MainMenu mainMenu, TitleData <int> main, TitleData <float> sub) : base(mainMenu)
 {
     Main = main;
     Sub  = sub;
 }
 public DrawMainMenuTitlesEvent(Hacknet.MainMenu mainMenu, string mainTitle, string subtitle) : base(mainMenu)
 {
     MainTitle = mainTitle;
     Subtitle  = subtitle;
 }
 public DrawMainMenuButtonsEvent(Hacknet.MainMenu mainMenu, int mainY, int secondY) : base(mainMenu)
 {
     MainButtonY      = mainY;
     SecondaryButtonY = secondY;
 }
 public DrawMainMenuEvent(Hacknet.MainMenu mainMenu, GameTime gameTime) : base(mainMenu)
 {
     GameTime = gameTime;
 }
 public MainMenuEvent(Hacknet.MainMenu mainMenu)
 {
     MainMenu = mainMenu;
 }
        // Hook location : MainMenu.drawMainMenuButtons()
        public static void onMainMenuButtonsDraw(Hacknet.MainMenu self)
        {
            var drawMainMenuButtonsEvent = new Event.DrawMainMenuButtonsEvent(self);

            drawMainMenuButtonsEvent.CallEvent();
        }