From 6e3a29bd908784f3a4dd96fc40e91b77bf8ba274 Mon Sep 17 00:00:00 2001 From: Katy Fox Date: Wed, 30 Aug 2023 15:03:18 -0400 Subject: [PATCH 1/2] #26 reskin hidden parts of loco --- SkinManagerMod/SkinManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SkinManagerMod/SkinManager.cs b/SkinManagerMod/SkinManager.cs index 5e690dc..7c5ba2b 100644 --- a/SkinManagerMod/SkinManager.cs +++ b/SkinManagerMod/SkinManager.cs @@ -100,7 +100,7 @@ public static void ApplySkinToInterior(TrainCar trainCar, Skin skin) private static void ApplySkin(Transform objectRoot, Skin skin, Skin defaultSkin) { - foreach (var renderer in objectRoot.GetComponentsInChildren()) + foreach (var renderer in objectRoot.GetComponentsInChildren(true)) { if (!renderer.material) { From b98b775a029a28ca51fafd8b4706ab1a313a1d7f Mon Sep 17 00:00:00 2001 From: Katy Fox Date: Wed, 30 Aug 2023 15:15:03 -0400 Subject: [PATCH 2/2] #25 add warning message for test package function --- SkinConfigurator/MainWindow.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SkinConfigurator/MainWindow.xaml.cs b/SkinConfigurator/MainWindow.xaml.cs index 1ba2e2d..029f348 100644 --- a/SkinConfigurator/MainWindow.xaml.cs +++ b/SkinConfigurator/MainWindow.xaml.cs @@ -189,6 +189,13 @@ private void PackageButton_Click(object sender, RoutedEventArgs e) private void TestPackButton_Click(object sender, RoutedEventArgs e) { + MessageBox.Show("Select the destination folder for your skin pack - " + + "this should be a child of the Mods folder in your DV install directory. You may need " + + "to create a folder if this is the first time exporting a pack. For example:\n\n" + + "\"C:\\Program Files\\Steam\\steamapps\\common\\Derail Valley\\Mods\\My Beautiful Skin\\\"\n\n" + + "THIS WILL CLEAR THE SELECTED FOLDER!\nProceed with caution.", + "Select destination folder for skins", MessageBoxButton.OK, MessageBoxImage.Information); + var dialog = new System.Windows.Forms.FolderBrowserDialog() { Description = "Select destination folder for skins",