Corgi Engine  v9.0
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitClass Class Reference

This feedback will let you change the class of an element on a target UI Document More...

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitClass:
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  Modes {
  Modes.AddToClassList, Modes.EnableInClassList, Modes.ToggleInClassList, Modes.RemoveFromClassList,
  Modes.ClearClassList
}
 
- Public Types inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
enum  QueryModes { QueryModes.Name, QueryModes.Class }
 

Public Attributes

Modes Mode = Modes.AddToClassList
 whether to add, enable, toggle, remove or clear the class list More...
 
string ClassName = ""
 the name of the class to add, enable, toggle or remove More...
 
bool Enable = true
 in EnableInClassList mode, whether to enable or disable the class More...
 
- 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 CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1)
 This method describes what happens when the feedback gets played 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...
 
override void CustomInitialization (MMF_Player owner)
 On init we turn the Image off if needed More...
 
virtual void PerformQuery ()
 Performs the query and sets _visualElements with the result More...
 
virtual void HandleMarkDirty (VisualElement element)
 

Additional Inherited Members

- 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...
 
- Protected Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
List< VisualElement > _visualElements = new List<VisualElement>()
 

Detailed Description

This feedback will let you change the class of an element on a target UI Document

Member Enumeration Documentation

◆ Modes

Enumerator
AddToClassList 
EnableInClassList 
ToggleInClassList 
RemoveFromClassList 
ClearClassList 

Member Function Documentation

◆ CustomPlayFeedback()

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

This method describes what happens when the feedback gets played

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.

Member Data Documentation

◆ ClassName

string MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitClass.ClassName = ""

the name of the class to add, enable, toggle or remove

◆ Enable

bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitClass.Enable = true

in EnableInClassList mode, whether to enable or disable the class

◆ Mode

Modes MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitClass.Mode = Modes.AddToClassList

whether to add, enable, toggle, remove or clear the class list


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