mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 05:35:08 +00:00
f14d2a423f
* Super Retro VFX! * Updated Screen Jump default * also airboarder works now --------- Co-authored-by: minenice55 <star.elementa@gmail.com>
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class EffectSettingsUI : MonoBehaviour
|
|
{
|
|
public ImageEffectController imageEffectController;
|
|
public BackgroundManager backgroundManager;
|
|
public Slider impastoSlider;
|
|
public Slider impastoSlider2;
|
|
public Slider blurSlider;
|
|
public Slider vignetteSlider;
|
|
public Slider vignetteSlider2;
|
|
public Button captureBtn;
|
|
private void Start()
|
|
{
|
|
impastoSlider.onValueChanged.AddListener(UpdateImpastoIntensity);
|
|
impastoSlider2.onValueChanged.AddListener(UpdateImpastoNormalIntensity);
|
|
vignetteSlider2.onValueChanged.AddListener(UpdateVignetteSmoothness);
|
|
blurSlider.onValueChanged.AddListener(UpdateBlurIntensity);
|
|
vignetteSlider.onValueChanged.AddListener(UpdateVignetteIntensity);
|
|
captureBtn.onClick.AddListener(() => backgroundManager.CaptureAndSetBackground());
|
|
}
|
|
private void UpdateImpastoIntensity(float value)
|
|
{
|
|
imageEffectController.impastoIntensity = value;
|
|
}
|
|
private void UpdateImpastoNormalIntensity(float value)
|
|
{
|
|
imageEffectController.normalInfluence = value;
|
|
}
|
|
private void UpdateVignetteSmoothness(float value)
|
|
{
|
|
imageEffectController.vignetteSmoothness = value;
|
|
}
|
|
private void UpdateBlurIntensity(float value)
|
|
{
|
|
imageEffectController.blurIntensity = value;
|
|
}
|
|
private void UpdateVignetteIntensity(float value)
|
|
{
|
|
imageEffectController.vignetteIntensity = value;
|
|
}
|
|
}
|
|
|