Feel  4.0.1
The best way to improve your game's feel and make it extra juicy
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 { QueryModes.Name, QueryModes.Class }
 

Public Attributes

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...
 

Static Public Attributes

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

Protected Member Functions

override void AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target) More...
 
override void CustomInitialization (MMF_Player owner)
 On init we turn the Image off if needed More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1)
 This method describes what happens when the feedback gets played More...
 
virtual void PerformQuery ()
 Performs the query and sets _visualElements with the result More...
 
virtual void HandleMarkDirty (VisualElement element)
 

Protected Attributes

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

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

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

◆ CustomPlayFeedback()

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

◆ 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

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.HasAutomatedTargetAcquisition => true

sets the inspector color for this feedback

◆ 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


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