mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
Triforce v0.5.0
In-game mods (GameBanana browser, search and installs, with the Mask Salesman), code-patch and cheat mods, the devs' test18 to test45 work (full performance overlay, frame pacing on, steady frame rate, save export and import, bug capture, new options rows, Setup's Mods page and Add to Steam), occlusion queries and new defaults, Auto resolution that scales, replay helper threads and robust buffers off by default, the options in sections.
This commit is contained in:
@@ -34,6 +34,9 @@ sealed partial class Shell
|
||||
HomeGoButton.Click += (_, _) => homeGo?.Invoke();
|
||||
NewFolderLink.Click += (_, _) => { NewFolderLink.IsChecked = false; ShowSetup(); };
|
||||
InitSaves();
|
||||
InitMods();
|
||||
InitSteam();
|
||||
InitSounds();
|
||||
}
|
||||
|
||||
// ---- welcome back ----
|
||||
@@ -50,7 +53,7 @@ sealed partial class Shell
|
||||
var built = hasGame ? BuiltVersion(folder!) : null;
|
||||
Program.Log("home: GameFolder=[" + (folder ?? "null") + "] exe=[" + (folder != null ? GameExe(folder) ?? "null" : "-") + "] built=[" + (built ?? "null") + "] tools=[" + (tools ?? "null") + "] latest=[" + (latest?.Tag ?? "null") + "]");
|
||||
|
||||
var setupNewer = latest != null && Program.Version != "dev" && latest.Tag != Program.Version && latest.SetupUrl != null;
|
||||
var setupNewer = latest != null && SetupNewer(latest);
|
||||
var toolsNewer = latest != null && latest.Tag != tools;
|
||||
var gameBehind = hasGame && built != null && tools != null && built != tools; // (new tools already here, game not rebuilt yet)
|
||||
var update = setupNewer || toolsNewer || gameBehind;
|
||||
@@ -58,6 +61,7 @@ sealed partial class Shell
|
||||
|
||||
HomeFill(hasGame, hasGame ? "Triforce " + (built ?? tools ?? "?") : null, folder, built, target, update, offline);
|
||||
ShowSavesLine();
|
||||
LoadSounds(); // (the game folder may be another one, or its mods other ones: Shell.Sounds.cs)
|
||||
Show(HomePage);
|
||||
if (!update) stage.Gleam(450);
|
||||
|
||||
@@ -123,6 +127,6 @@ sealed partial class Shell
|
||||
HomeGoButton.Content = hasGame ? "Play" : "Build my game";
|
||||
NotNowButton.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
NewFolderLink.Visibility = hasGame ? Visibility.Visible : Visibility.Collapsed;
|
||||
NewFolderLink.Visibility = ModsButton.Visibility = SteamButton.Visibility = hasGame ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user