// (Triforce) The Mods page, reached from "Your game" on the welcome-back page once a game is built. It shows the game folder's // mods folder as the game reads it and changes it only by what a player could do by hand (Mods.cs: a "-" in front of a // folder's name, a number in front, a folder moved in or out). using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using Microsoft.Win32; namespace TriforceSetup; sealed partial class Shell { Grid ModsPage = null!; ListBox ModList = null!; TextBlock ModsInfo = null!; Button ModsButton = null!, ModsAdd = null!, ModsOpen = null!, ModsRescan = null!, ModsConflicts = null!, ModsBack = null!, ModsUp = null!, ModsDown = null!, ModsRemove = null!, ModsToggle = null!, ModsBuild = null!; List mods = new(); List conflicts = new(); bool modsBusy; string? modsSaid; // (what the last change ended with, shown until another mod is picked) void InitMods() { ModsPage = Part("ModsPage"); ModList = Part("ModList"); ModsInfo = Part("ModsInfo"); ModsButton = Part