public RainbowSpinnerColorFadeTrigger(EntityData data, Vector2 offset) : base(data, offset) { // instantiate the controllers. EntityData dataA = new EntityData(); dataA.Values = new Dictionary <string, object>() { { "colors", data.Attr("colorsA") }, { "gradientSize", data.Float("gradientSizeA") }, { "loopColors", data.Bool("loopColorsA") }, { "centerX", data.Float("centerXA") }, { "centerY", data.Float("centerYA") }, { "gradientSpeed", data.Float("gradientSpeedA") }, { "persistent", data.Bool("persistent") } }; controllerA = new RainbowSpinnerColorController(dataA, Vector2.Zero); EntityData dataB = new EntityData(); dataB.Values = new Dictionary <string, object>() { { "colors", data.Attr("colorsB") }, { "gradientSize", data.Float("gradientSizeB") }, { "loopColors", data.Bool("loopColorsB") }, { "centerX", data.Float("centerXB") }, { "centerY", data.Float("centerYB") }, { "gradientSpeed", data.Float("gradientSpeedB") }, { "persistent", data.Bool("persistent") } }; controllerB = new RainbowSpinnerColorController(dataB, Vector2.Zero); // initialize other parameters. positionMode = data.Enum <PositionModes>("direction"); }
public override void Load() { Logger.SetLogLevel("MaxHelpingHand", LogLevel.Info); TempleEyeTrackingMadeline.Load(); CameraCatchupSpeedTrigger.Load(); FlagTouchSwitch.Load(); UpsideDownJumpThru.Load(); SidewaysJumpThru.Load(); GroupedDustTriggerSpikes.Load(); StaticPuffer.Load(); BlackholeCustomColors.Load(); ColorGradeFadeTrigger.Load(); RainbowSpinnerColorController.Load(); ReskinnableSwapBlock.Load(); ReskinnableCrushBlock.Load(); KevinBarrier.Load(); GradientDustTrigger.Load(); GoldenStrawberryCustomConditions.Load(); MadelineSilhouetteTrigger.Load(); BumperNotCoreMode.Load(); MultiRoomStrawberrySeed.Load(); SpeedBasedMusicParamTrigger.Load(); AnimatedParallax.Load(); NorthernLightsCustomColors.Load(); ReskinnableFloatingDebris.Load(); GuiStrawberryReskin.Load(); SeekerBarrierColorController.Load(); AmbienceVolumeTrigger.Load(); CustomTutorialWithNoBird.Load(); NonPoppingStrawberrySeed.Load(); CustomizableCrumblePlatform.Load(); MovingFlagTouchSwitch.Load(); HintDecal.Load(); CameraOffsetBorder.Load(); DisableIcePhysicsTrigger.Load(); ReskinnableBillboard.Load(); OneWayCameraTrigger.Load(); MadelinePonytailTrigger.Load(); SecretBerry.Load(); CustomizableGlassBlockController.Load(); CustomWipe.Load(); Everest.Events.Level.OnLoadBackdrop += onLoadBackdrop; }
public override void OnEnter(Player player) { base.OnEnter(player); RainbowSpinnerColorController existingController = Scene.Tracker.GetEntity <RainbowSpinnerColorController>(); // if the current controller is not in the room, add it, and replace the current one if there is one. if (existingController != controller) { // remove the current controller from the room if (existingController != null) { Scene.Remove(existingController); } // and add ours instead Scene.Add(controller); } }
public RainbowSpinnerColorTrigger(EntityData data, Vector2 offset) : base(data, offset) { controller = new RainbowSpinnerColorController(data, offset); }