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

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

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFontSize:
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFloatBase MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit MoreMountains.Feedbacks.MMF_Feedback

Protected Member Functions

override void SetValue (float newValue)
override float GetInitialValue ()
Protected Member Functions inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFloatBase
override void CustomInitialization (MMF_Player owner)
 On init we store our initial value.
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we change our text's alpha.
virtual IEnumerator ChangeValue ()
 Changes the color of the text over time.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 Stops the animation if needed.
virtual void ApplyTime (float time)
 Applies the alpha change.
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position.
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 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_UIToolkitFloatBase
enum  Modes { Instant , Interpolate , ToDestination }
 a static bool used to disable all feedbacks of this type at once More...
Public Types inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
enum  QueryModes { Name , Class }
Public Member Functions inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFloatBase
override void OnValidate ()
 On Validate, we init our curves conditions if needed.
Public Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFloatBase
Modes Mode = Modes.Interpolate
bool RelativeValue = false
 whether or not the value should be applied relatively to the initial value
bool AllowAdditivePlays = false
 if this is true, calling that feedback will trigger it, even if it's in progress. If it's false, it'll prevent any new Play until the current one is over
float Duration = 0.2f
 how long the color of the text should change over time
float InstantValue = 1f
 the value to apply when in instant mode
MMTweenType Curve = new MMTweenType(MMTween.MMTweenCurve.EaseInCubic, "", "Mode", (int)Modes.Interpolate, (int)Modes.ToDestination)
 the curve to use when interpolating towards the destination value
float CurveRemapZero = 0f
 the value to which the curve's 0 should be remapped
float CurveRemapOne = 1f
 the value to which the curve's 1 should be remapped
float DestinationValue = 1f
 the value to aim towards when in ToDestination mode
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.
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_UIToolkitFloatBase
float _initialValue
Coroutine _coroutine
Protected Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
List< VisualElement > _visualElements = new List<VisualElement>()
Properties inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFloatBase
override float FeedbackDuration [get, set]
 the duration of this feedback is the duration of the color transition, or 0 if instant
override bool HasCustomInspectors [get]
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 font size of an element on a target UI Document.

Member Function Documentation

◆ GetInitialValue()

override float MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFontSize.GetInitialValue ( )
protectedvirtual

◆ SetValue()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitFontSize.SetValue ( float newValue)
protectedvirtual

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