TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit Class Reference

This feedback is a base for UI Toolkit feedbacks. More...

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit:
MoreMountains.Feedbacks.MMF_Feedback MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitClass MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitColorBase MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFloatBase MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitStylesheet MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitText MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVector2Base MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVisible MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBackgroundColor MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBorderColor MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitImageTint MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitTextColor MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBorderRadius MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBorderWidth MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFontSize MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitOpacity MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitRotate MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitScale MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitSize MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitTransformOrigin MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitTranslate

Public Types

enum  QueryModes { Name , Class }

Public Attributes

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

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once

Protected Member Functions

override void AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target)
override void CustomInitialization (MMF_Player owner)
 On init we turn the Image off if needed.
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

List< VisualElement > _visualElements = new List<VisualElement>()

Properties

override bool HasAutomatedTargetAcquisition [get]
 sets the inspector color for this feedback

Additional Inherited Members

Detailed Description

This feedback is a base for UI Toolkit feedbacks.

Member Enumeration Documentation

◆ QueryModes

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.AutomateTargetAcquisition ( )
protectedvirtual

A method meant to be implemented per feedback letting you specify what happens (usually setting a target)

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomInitialization()

◆ CustomPlayFeedback()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1 )
protected

◆ HandleMarkDirty()

virtual void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.HandleMarkDirty ( VisualElement element)
protectedvirtual

◆ PerformQuery()

virtual void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.PerformQuery ( )
protectedvirtual

Performs the query and sets _visualElements with the result.

Member Data Documentation

◆ _visualElements

List<VisualElement> MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit._visualElements = new List<VisualElement>()
protected

◆ FeedbackTypeAuthorized

bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ MarkDirty

bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.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.

◆ Query

string MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.Query = "ButtonA"

the query to perform (replace this with your own element name or class)

◆ QueryMode

QueryModes MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.QueryMode = QueryModes.Name

the way to perform the query, either via element name or via class

◆ TargetDocument

UIDocument MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.TargetDocument

the UI document on which to make modifications

Property Documentation

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.HasAutomatedTargetAcquisition
get

sets the inspector color for this feedback


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