Infinite Runner Engine v1.9
Public Member Functions | Protected Member Functions | List of all members
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 bool HelpEnabled ()
 Checks the editor prefs to see if help is enabled or not More...
 
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.

◆ HelpEnabled()

virtual bool MoreMountains.Feedbacks.MMFInformationAttributeDrawer.HelpEnabled ( )
protectedvirtual

Checks the editor prefs to see if help is enabled or not

Returns
true, if enabled was helped, false otherwise.

◆ 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: