Example #1
0
 static void Postfix(CarScreenLogic __instance)
 {
     if (!Options.Get <bool>("Enabled"))
     {
         return;
     }
     __instance.gameObject.AddComponent <CarScreenLogic__Script>();
 }
Example #2
0
            public static void Clear()
            {
                FindScreen();

                if (CarScreenLogic)
                {
                    CarScreenLogic.ClearDecodeText();
                }
            }
        internal static void Postfix(CarScreenLogic __instance)
        {
            Transform cobwebTransform = __instance.transform.Find("CircleParent/HalloweenCobwebPlatform");

            if (cobwebTransform)
            {
                cobwebTransform.gameObject.SetActive(true);
            }
        }
Example #4
0
        public static void Prefix(CarScreenLogic __instance, string text, float speed, float delay, bool clearOnFinish, bool useLines, int fontSize, bool playClickSound)
        {
            if (clearOnFinish)
            {
                __instance.DoAfterWait((speed * text.Length) + delay + 0.8f, () =>
                {
                    if (__instance.errorText_.CurrentState_ != TextDecodeInLogic.State.Done)
                    {
                        return;
                    }

                    __instance.ClearDecodeText(true);
                });
            }
        }
Example #5
0
            public static void WriteText(string text, float perCharacterInterval, int clearDelayUnits, float displayDelay, bool clearOnEnd, string timeBarText)
            {
                FindScreen();

                if (CarScreenLogic)
                {
                    var formattedForScreen = text.WordWrap(LineLength);

                    for (var i = 0; i < clearDelayUnits; i++)
                    {
                        formattedForScreen += " ";
                    }
                    CarScreenLogic.DecodeText(formattedForScreen, perCharacterInterval, displayDelay, clearOnEnd, timeBarText);
                }
            }
Example #6
0
        internal static void Postfix(CarScreenLogic __instance)
        {
            Transform snowTransform = __instance.transform.Find("CircleParent/ChristmasSnow");

            if (snowTransform)
            {
                if (snowTransform.HasComponent <HolidayFeaturesToggle>())
                {
                    snowTransform.GetComponent <HolidayFeaturesToggle>().Destroy();
                }

                bool flag = Mod.Instance.IsActive && Mod.Instance.Config.ChristmasSnowVisualCheat;

                snowTransform.gameObject.SetActive(flag);
            }
        }
Example #7
0
 public void Start()
 {
     this.carscreen = gameObject.GetComponent <CarScreenLogic>();
 }
Example #8
0
 void Awake()
 {
     logic = GetComponent <CarScreenLogic>();
 }
Example #9
0
 static void Prefix(CarScreenLogic __instance)
 {
     __instance.gameObject.AddComponent <CarScreenLogic_Update>();
 }