Feel  4.3
The best way to improve your game's feel and make it extra juicy
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase Class Reference

A base feedback to set a bool on a target UI Document More...

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase:
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit MoreMountains.Feedbacks.MMF_Feedback MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVisible

Public Attributes

override bool HasCustomInspectors => true
 
- Public Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
override bool HasAutomatedTargetAcquisition => true
 sets the inspector color for this feedback More...
 
UIDocument TargetDocument
 the UI document on which to make modifications More...
 
QueryModes QueryMode = QueryModes.Name
 the way to perform the query, either via element name or via class More...
 
string Query = "ButtonA"
 the query to perform (replace this with your own element name or class) More...
 
bool MarkDirty = false
 whether to mark the UI document dirty after the operation. Set this to true when making a change that requires a repaint such as when using generateVisualContent to render a mesh and the mesh data has now changed. More...
 

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 On init we store our initial value More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we change our text's alpha More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 Stops the animation if needed More...
 
virtual void SetValue ()
 
virtual void SetValue (bool newValue)
 
virtual bool GetInitialValue ()
 
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position More...
 
- Protected Member Functions inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
override void AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target) More...
 
virtual void PerformQuery ()
 Performs the query and sets _visualElements with the result More...
 
virtual void HandleMarkDirty (VisualElement element)
 

Protected Attributes

bool _initialValue
 
- Protected Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
List< VisualElement > _visualElements = new List<VisualElement>()
 

Properties

override float FeedbackDuration [get]
 the duration of this feedback is the duration of the color transition, or 0 if instant More...
 

Additional Inherited Members

- Public Types inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
enum  QueryModes { QueryModes.Name, QueryModes.Class }
 
- Static Public Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once More...
 

Detailed Description

A base feedback to set a bool on a target UI Document

Member Function Documentation

◆ CustomInitialization()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.CustomInitialization ( MMF_Player  owner)
protectedvirtual

On init we store our initial value

Parameters
owner

Reimplemented from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.

◆ CustomPlayFeedback()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On Play we change our text's alpha

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.

◆ CustomRestoreInitialValues()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we put our object back at its initial position

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.CustomStopFeedback ( Vector3  position,
float  feedbacksIntensity = 1 
)
protectedvirtual

Stops the animation if needed

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ GetInitialValue()

virtual bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.GetInitialValue ( )
protectedvirtual

◆ SetValue() [1/2]

virtual void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.SetValue ( )
protectedvirtual

◆ SetValue() [2/2]

virtual void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.SetValue ( bool  newValue)
protectedvirtual

Member Data Documentation

◆ _initialValue

bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase._initialValue
protected

◆ HasCustomInspectors

override bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.HasCustomInspectors => true

Property Documentation

◆ FeedbackDuration

override float MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.FeedbackDuration
get

the duration of this feedback is the duration of the color transition, or 0 if instant


The documentation for this class was generated from the following file: