Skip to content

Commit

Permalink
Merge pull request #27 from derail-valley-modding/shared-skins
Browse files Browse the repository at this point in the history
Bugfixes/Enhancements
  • Loading branch information
katycat5e authored Aug 31, 2023
2 parents 9e39eac + b98b775 commit a7615ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions SkinConfigurator/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion SkinManagerMod/SkinManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<MeshRenderer>())
foreach (var renderer in objectRoot.GetComponentsInChildren<MeshRenderer>(true))
{
if (!renderer.material)
{
Expand Down

0 comments on commit a7615ef

Please sign in to comment.