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

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

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

Public Attributes

string NewText = ""
 the new text to set on the target object(s) 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...
 
virtual void SetValue (string newValue)
 
override void CustomInitialization (MMF_Player owner)
 On init we turn the Image off if needed More...
 
virtual string 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

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

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

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

Member Function Documentation

◆ CustomInitialization()

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

On init we turn the Image off if needed

Parameters
owner

Reimplemented from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit.

◆ CustomPlayFeedback()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitText.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.

◆ CustomRestoreInitialValues()

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

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

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ GetInitialValue()

virtual string MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitText.GetInitialValue ( )
protectedvirtual

◆ SetValue()

virtual void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitText.SetValue ( string  newValue)
protectedvirtual

Member Data Documentation

◆ _initialText

string MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitText._initialText
protected

◆ NewText

string MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitText.NewText = ""

the new text to set on the target object(s)


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