t0stiman 2023-11-12 19:48:05 +01:00
parent 5f709ea385
commit d3927e8d0e
1 changed files with 32 additions and 32 deletions

View File

@ -1,32 +1,32 @@
// using HarmonyLib;
// using UnityEngine;
//
// using static dumb282tweaks.Main;
//
// namespace dumb282tweaks;
//
// [HarmonyPatch(typeof(TrainCar), "LoadInterior")]
// class InteriorPatch {
// static void Postfix(ref TrainCar __instance) {
// Transform s282Interior = __instance.interior;
// Transform externalInteractables = s282Interior.transform.Find("LocoS282A_ExternalInteractables(Clone)");
// // The fact that in game it actually is called "things" is funny to me
// Transform cab = s282Interior.transform.Find("LocoS282A_Interior(Clone)/Static/Cab");
// Transform things = s282Interior.transform.Find("LocoS282A_Interior(Clone)/Static/Things");
// Transform windowRMove = externalInteractables.transform.Find("Interactables/WindowR");
// Transform windowLMove = externalInteractables.transform.Find("Interactables/WindowL");
//
// Log(externalInteractables.name);
//
// switch(Main.Settings.cabType) {
// case Settings.CabType.Default:
// break;
// case Settings.CabType.German:
// cab.gameObject.SetActive(false);
// things.gameObject.SetActive(false);
// windowRMove.gameObject.SetActive(false);
// windowLMove.gameObject.SetActive(false);
// break;
// }
// }
// }
// using HarmonyLib;
// using UnityEngine;
//
// using static dumb282tweaks.Main;
//
// namespace dumb282tweaks;
//
// [HarmonyPatch(typeof(TrainCar), "LoadInterior")]
// class InteriorPatch {
// static void Postfix(ref TrainCar __instance) {
// Transform s282Interior = __instance.interior;
// Transform externalInteractables = s282Interior.transform.Find("LocoS282A_ExternalInteractables(Clone)");
// // The fact that in game it actually is called "things" is funny to me
// Transform cab = s282Interior.transform.Find("LocoS282A_Interior(Clone)/Static/Cab");
// Transform things = s282Interior.transform.Find("LocoS282A_Interior(Clone)/Static/Things");
// Transform windowRMove = externalInteractables.transform.Find("Interactables/WindowR");
// Transform windowLMove = externalInteractables.transform.Find("Interactables/WindowL");
//
// Log(externalInteractables.name);
//
// switch(Main.Settings.cabType) {
// case Settings.CabType.Default:
// break;
// case Settings.CabType.German:
// cab.gameObject.SetActive(false);
// things.gameObject.SetActive(false);
// windowRMove.gameObject.SetActive(false);
// windowLMove.gameObject.SetActive(false);
// break;
// }
// }
// }