TopDown Engine v5.0
Loading...
Searching...
No Matches
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitStylesheet Class Reference

This feedback will let you change the stylesheet on a target UI Document. More...

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

Public Attributes

StyleSheet NewStylesheet
 the new stylesheet to apply to the document
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.

Protected Member Functions

override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1)
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 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)

Additional Inherited Members

Public Types inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
enum  QueryModes { Name , 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
Protected Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
List< VisualElement > _visualElements = new List<VisualElement>()
Properties inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
override bool HasAutomatedTargetAcquisition [get]
 sets the inspector color for this feedback

Detailed Description

This feedback will let you change the stylesheet on a target UI Document.

Member Function Documentation

◆ CustomPlayFeedback()

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

Member Data Documentation

◆ NewStylesheet

StyleSheet MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitStylesheet.NewStylesheet

the new stylesheet to apply to the document


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