Exemplo n.º 1
0
        /// <summary>Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations.</summary>
        /// <param name="sender">The event sender.</param>
        /// <param name="e">The event data.</param>
        private void OnGameLaunched(object sender, GameLaunchedEventArgs e)
        {
            var helper = this.Helper;

            this.InfoBook = new BookMenu(new List <Page>
            {
                new TitlePage(helper.Translation.Get("Book_Title"), helper.Translation.Get("Book_Subtitle"), helper.Translation.Get("Book_Introduction")),
                new TextPage(helper.Translation.Get("Book_Page1")),
                new TextPage(helper.Translation.Get("Book_Page2")),
                new PaymentPage(),
                new ImagePage(helper.Content.Load <Texture2D>("assets/book/doodle1.png"), Game1.textColor, true),
                new TitlePage("DickBut", "Dickius Buttius Maximus", "The Dickius Buttius Maximus, better know as the DickBut is a mighty creature of great majesty."),
                new ImagePage(helper.Content.Load <Texture2D>("assets/book/doodle2.png"), Game1.textColor, true),
                new TitlePage("The Lie", "Absolutum Lie-um", "Please turn the page somewhere else, there is nothing to see here."),
                new ImagePage(helper.Content.Load <Texture2D>("assets/book/doodle3.png"), Game1.textColor, true),
                new TitlePage("PufferChick", "Pufferium Chickate", "Adorable abomination, dont you just want to cuddle it?")
            });
        }
Exemplo n.º 2
0
 /*********
 ** Public methods
 *********/
 public override void Entry(IModHelper helper)
 {
     ModEntry.SMonitor      = this.Monitor;
     ModEntry.SHelper       = this.Helper;
     GameEvents.UpdateTick += this.GameEvents_UpdateTick;
     helper.ConsoleCommands.Add("dd_fromseed", "dd_fromseed <seed> | Generate a dungeon from a specific seed", this.Command_Fromseed);
     this.InfoBook = new BookMenu(new List <Page>
     {
         new TitlePage(helper.Translation.Get("Book_Title"), helper.Translation.Get("Book_Subtitle"), helper.Translation.Get("Book_Introduction")),
         new TextPage(helper.Translation.Get("Book_Page1")),
         new TextPage(helper.Translation.Get("Book_Page2")),
         new PaymentPage(),
         new ImagePage(helper.Content.Load <Texture2D>("assets/book/doodle1.png"), Game1.textColor, true),
         new TitlePage("DickBut", "Dickius Buttius Maximus", "The Dickius Buttius Maximus, better know as the DickBut is a mighty creature of great majesty."),
         new ImagePage(helper.Content.Load <Texture2D>("assets/book/doodle2.png"), Game1.textColor, true),
         new TitlePage("The Lie", "Absolutum Lie-um", "Please turn the page somewhere else, there is nothing to see here."),
         new ImagePage(helper.Content.Load <Texture2D>("assets/book/doodle3.png"), Game1.textColor, true),
         new TitlePage("PufferChick", "Pufferium Chickate", "Adorable abomination, dont you just want to cuddle it?")
     });
 }