Exemple #1
0
 public static void Open(ModConfig config)
 {
     Game1.activeClickableMenu = new ChecklistMenu(config);
 }
Exemple #2
0
        public OpenChecklistButton(Action openChecklist, Func <int> countRemainingTasks, ModConfig config)
            : base(0, 0, OverlayTextures.Sign.Width * Game1.pixelZoom, OverlayTextures.Sign.Height * Game1.pixelZoom, false)
        {
            this.config = config;
            this.countRemainingTasks = countRemainingTasks;
            this.texture             = OverlayTextures.Sign;
            this.openChecklist       = openChecklist;

            MenuEvents.MenuClosed += this.OnMenuClosed;
            this.UpdateButtonPosition(config.OpenChecklistButtonLocation);
        }