Show / Hide Table of Contents

Class GradientPicker

Custom MonoBehaviour for the GradientPicker
Inheritance
System.Object
GradientPicker
Namespace: Jotunn.GUI
Assembly: Jotunn.dll
Syntax
public class GradientPicker : MonoBehaviour

Fields

| Improve this Doc View Source

done

True when the GradientPicker is closed
Declaration
public static bool done
Field Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Cancel()

Manually cancel the GradientPicker and recovers the default value
Declaration
public static void Cancel()
| Improve this Doc View Source

CCancel()

Cancel button call
Declaration
public void CCancel()
| Improve this Doc View Source

CDone()

Done button call
Declaration
public void CDone()
| Improve this Doc View Source

CheckDeleteKey(Slider)

Checks if Key can be deleted
Declaration
public void CheckDeleteKey(Slider s)
Parameters
Type Name Description
Slider s
| Improve this Doc View Source

ChooseColor()

Choose color button call
Declaration
public void ChooseColor()
| Improve this Doc View Source

Create(Gradient, String, GradientPicker.GradientEvent, GradientPicker.GradientEvent)

Creates a new GradiantPicker
Declaration
public static bool Create(Gradient original, string message, GradientPicker.GradientEvent onGradientChanged, GradientPicker.GradientEvent onGradientSelected)
Parameters
Type Name Description
Gradient original Color before editing
System.String message Display message
GradientPicker.GradientEvent onGradientChanged Event that gets called when the gradient gets modified
GradientPicker.GradientEvent onGradientSelected Event that gets called when one of the buttons done or cancel gets pressed
Returns
Type Description
System.Boolean False if the instance is already running
| Improve this Doc View Source

CreateNewAlphaKey(Single)

Checks if new AlphaKey should be created
Declaration
public void CreateNewAlphaKey(float time)
Parameters
Type Name Description
System.Single time
| Improve this Doc View Source

CreateNewColorKey(Single)

Checks if new ColorKey should be created
Declaration
public void CreateNewColorKey(float time)
Parameters
Type Name Description
System.Single time
| Improve this Doc View Source

Done()

Manually close the GradientPicker and apply the selected color
Declaration
public static void Done()
| Improve this Doc View Source

Select()

Changes Selected Key
Declaration
public void Select()
| Improve this Doc View Source

SetAlpha(Single)

Accessed by alpha Slider
Declaration
public void SetAlpha(float value)
Parameters
Type Name Description
System.Single value
| Improve this Doc View Source

SetAlpha(String)

Accessed by alpha InputField
Declaration
public void SetAlpha(string value)
Parameters
Type Name Description
System.String value
| Improve this Doc View Source

SetTime(Single)

Accessed by position Slider
Declaration
public void SetTime(float time)
Parameters
Type Name Description
System.Single time
| Improve this Doc View Source

SetTime(String)

Accessed by position InputField
Declaration
public void SetTime(string time)
Parameters
Type Name Description
System.String time

Extension Methods

PrefabExtension.FixReferences(Object)
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾