TopDown Engine v4.5
Loading...
Searching...
No Matches
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

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 On init we store our initial value.
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we change our text's alpha.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 Stops the animation if needed.
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.
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)
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1)
virtual void PerformQuery ()
 Performs the query and sets _visualElements with the result.
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
override bool HasCustomInspectors [get]
Properties inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
override bool HasAutomatedTargetAcquisition [get]
 sets the inspector color for this feedback

Additional Inherited Members

Public Types inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
enum  QueryModes { Name , Class }
Public Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
UIDocument TargetDocument
 the UI document on which to make modifications
QueryModes QueryMode = QueryModes.Name
 the way to perform the query, either via element name or via class
string Query = "ButtonA"
 the query to perform (replace this with your own element name or class)
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.
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

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 )
protected

On Play we change our text's alpha.

Parameters
position
feedbacksIntensity

◆ 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

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

◆ HasCustomInspectors

override bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase.HasCustomInspectors
get

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacksForThirdParty/UIToolkit/Base/MMF_UIToolkitBoolBase.cs