Skip to content

Commit 56e3dc2

Browse files
committed
Some messagebox and url changes. Copyright updated to include 2004 - CurrentYear.
1 parent 19375f3 commit 56e3dc2

4 files changed

Lines changed: 36 additions & 9 deletions

File tree

Pages/AboutSimTools.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<GradientStop Color="Black" Offset="1"/>
4646
</LinearGradientBrush>
4747
</TextBlock.Foreground><Run Text="David Brown, creator of SimTools."/><LineBreak/><Run Text="Playing since OG Sims in 2000."/></TextBlock>
48-
<TextBlock x:Name="Text4" HorizontalAlignment="Left" Margin="32,272,0,0" TextWrapping="Wrap" Text="SimTools is protected under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC) license. It is open-source software, made available to the public and open to contributions. This software, in no part should be used for commercial gain." VerticalAlignment="Top" Width="473" Height="58" FontFamily="Tahoma" FontWeight="Bold" FontSize="11" FontStyle="Italic" TextAlignment="Center">
48+
<TextBlock x:Name="Text4" HorizontalAlignment="Left" Margin="32,272,0,0" TextWrapping="Wrap" Text="SimTools is protected under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC) license. It is open-source software, made available to the public and open to contributions. This software, in whole or in part cannot and should never be used for commercial gain." VerticalAlignment="Top" Width="473" Height="58" FontFamily="Tahoma" FontWeight="Bold" FontSize="11" FontStyle="Italic" TextAlignment="Center">
4949
<TextBlock.Foreground>
5050
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
5151
<GradientStop Color="Black"/>

Pages/AboutSimTools.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private void PopulateVersionInfo()
6969
Text5.Inlines.Add(new System.Windows.Documents.Run("Website: http://www.simtools-app.com"));
7070
Text5.Inlines.Add(new System.Windows.Documents.LineBreak());
7171
int currentYear = DateTime.Now.Year;
72-
string copyrightYear = currentYear > 2025 ? $"2025\u2013{currentYear}" : "2025";
72+
string copyrightYear = currentYear > 2024 ? $"2024\u2013{currentYear}" : "2025";
7373
Text5.Inlines.Add(new System.Windows.Documents.Run($"\u00a9 {copyrightYear}, Archeon Industries, LLC."));
7474
}
7575

Pages/MainWindow.xaml.cs

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private void PopulateVersionInfo()
3838
string versionStr = $"v {ver.Major}.{ver.Minor}.{ver.Build}.{ver.Revision}";
3939

4040
VersionInfo.Inlines.Clear();
41-
VersionInfo.Inlines.Add(new Run($"Copyright \u00a9 {currentYear}"));
41+
VersionInfo.Inlines.Add(new Run($"Copyright \u00a9 2004 - {currentYear}"));
4242
VersionInfo.Inlines.Add(new LineBreak());
4343
VersionInfo.Inlines.Add(new Run("Archeon Industries, LLC."));
4444
VersionInfo.Inlines.Add(new LineBreak());
@@ -418,12 +418,39 @@ private void SetupTweakContextMenu()
418418
// ── The Sims 2 ────────────────────────────────────────────────────────────
419419
var sims2Item = new MenuItem { Header = "The Sims 2" };
420420

421+
422+
421423
var sims2_rpc = new MenuItem { Header = "Sims2RPC" };
422-
sims2_rpc.Click += (_, _) => DownloadAndOpenExe(
423-
url: "%baseurl%/Sideload-Apps/x86/Sims2RPCInstaller.exe",
424-
fileName: "Sims2RPCInstaller.exe",
425-
downloadDirectory: binDir
426-
);
424+
sims2_rpc.Click += (_, _) =>
425+
{
426+
var result = MessageBox.Show(
427+
"Which version of The Sims 2 do you have installed?\n\n"
428+
+ "• YES — Standard / vanilla release (disc or Origin)\n"
429+
+ "• NO — The Sims 2 Legacy Edition (EA App)\n\n"
430+
+ "Selecting YES installs Sims2RPC.\n"
431+
+ "Selecting NO opens the LazyDuchess Legacy Extender page for manual installation.",
432+
"SimTools \u2014 Sims2RPC / Legacy Extender",
433+
MessageBoxButton.YesNo,
434+
MessageBoxImage.Question);
435+
436+
if (result == MessageBoxResult.Yes)
437+
{
438+
// Vanilla Sims 2 — install Sims2RPC
439+
DownloadAndOpenExe(
440+
url: "%baseurl%/Sideload-Apps/x86/Sims2RPCInstaller.exe",
441+
fileName: "Sims2RPCInstaller.exe",
442+
downloadDirectory: binDir);
443+
}
444+
else
445+
{
446+
// Legacy Edition — open LazyDuchess Legacy Extender GitHub page
447+
Process.Start(new ProcessStartInfo
448+
{
449+
FileName = "https://github.com/LazyDuchess/TS2-Extender",
450+
UseShellExecute = true
451+
});
452+
}
453+
};
427454
sims2Item.Items.Add(sims2_rpc);
428455
contextMenu.Items.Add(sims2Item);
429456

build.counter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4033
1+
4038

0 commit comments

Comments
 (0)