LookAt,Offset,Effect Remove

Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
2025-07-13 11:55:44 +08:00
parent 46766a39e0
commit c4c1c05ed6
46 changed files with 16260 additions and 17707 deletions

View File

@@ -90,7 +90,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new CameraOffsetEffect(duration, offsetValue, offsetCurve);
return new CameraOffsetEffect(duration, offsetValue, offsetCurve)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -85,7 +85,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new CameraShakeEffect(duration, frequency, amplitudeX, amplitudeY, amplitudeZ);
return new CameraShakeEffect(duration, frequency, amplitudeX, amplitudeY, amplitudeZ)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -104,7 +104,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new CameraTiltEffect(duration, tiltValue, tiltCurve);
return new CameraTiltEffect(duration, tiltValue, tiltCurve)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -42,7 +42,7 @@ namespace Ichni.RhythmGame
public override void SetUpInspector()
{
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
var container = inspector.GenerateContainer("Camera Shake");
var container = inspector.GenerateContainer("Camera Zoom");
var effectSettings = container.GenerateSubcontainer(3);
var zoomDurationInputField = inspector.GenerateInputField(this, effectSettings, "Zoom Duration", nameof(duration));
var relativeZoomInputField = inspector.GenerateInputField(this, effectSettings, "Relative Zoom", nameof(relativeZoom));
@@ -77,7 +77,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new CameraZoomEffect(duration, relativeZoom, zoomCurve);
return new CameraZoomEffect(duration, relativeZoom, zoomCurve)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -77,7 +77,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new ChromaticAberrationEffect(duration, peak, intensityCurve);
return new ChromaticAberrationEffect(duration, peak, intensityCurve)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -121,7 +121,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new EnableControlEffect(GameElement_BM.GetElement(connectedGameElementGuid), connectedVariableName,
enableValue, useExpression, expression);
enableValue, useExpression, expression)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -78,7 +78,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new HighPassFilterEffect(duration, peak, intensityCurve);
return new HighPassFilterEffect(duration, peak, intensityCurve)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -78,7 +78,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new LowPassFilterEffect(duration, bottom, intensityCurve);
return new LowPassFilterEffect(duration, bottom, intensityCurve)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -82,7 +82,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new SetIntegerEffect(targetVariableName, targetValue, isRandom, minValue, maxValue);
return new SetIntegerEffect(targetVariableName, targetValue, isRandom, minValue, maxValue)
{
attachedGameElement = attachedGameElement
};
}
}
}

View File

@@ -94,7 +94,10 @@ namespace Ichni.RhythmGame
public override EffectBase ConvertToGameType(GameElement attachedGameElement)
{
return new VignetteEffect(duration, peak, smoothness, color, intensityCurve);
return new VignetteEffect(duration, peak, smoothness, color, intensityCurve)
{
attachedGameElement = attachedGameElement
};
}
}
}