TopDown Engine v4.3
MoreMountains.Feedbacks.MMFInformationAttributeDrawer Class Reference

This class allows the display of a message box (warning, info, error...) next to a property (before or after) More...

Inheritance diagram for MoreMountains.Feedbacks.MMFInformationAttributeDrawer:

Public Member Functions

override void OnGUI (Rect rect, SerializedProperty prop, GUIContent label)
 OnGUI, displays the property and the textbox in the specified order More...
 
override float GetPropertyHeight (SerializedProperty property, GUIContent label)
 Returns the complete height of the whole block (property + help text) More...
 

Protected Member Functions

virtual float DetermineTextboxHeight (string message)
 Determines the height of the textbox. More...
 

Detailed Description

This class allows the display of a message box (warning, info, error...) next to a property (before or after)

Member Function Documentation

◆ DetermineTextboxHeight()

virtual float MoreMountains.Feedbacks.MMFInformationAttributeDrawer.DetermineTextboxHeight ( string  message)
protectedvirtual

Determines the height of the textbox.

Returns
The textbox height.
Parameters
messageMessage.

◆ GetPropertyHeight()

override float MoreMountains.Feedbacks.MMFInformationAttributeDrawer.GetPropertyHeight ( SerializedProperty  property,
GUIContent  label 
)

Returns the complete height of the whole block (property + help text)

Returns
The block height.
Parameters
propertyProperty.
labelLabel.

◆ OnGUI()

override void MoreMountains.Feedbacks.MMFInformationAttributeDrawer.OnGUI ( Rect  rect,
SerializedProperty  prop,
GUIContent  label 
)

OnGUI, displays the property and the textbox in the specified order

Parameters
rectRect.
propProperty.
labelLabel.

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