Space Engineers
Public Member Functions | Public Attributes | Properties | List of all members
Sandbox.Graphics.GUI.MyToolTips Class Reference

Public Member Functions

 MyToolTips ()
 Creates new instance with empty tooltips More...
 
 MyToolTips (String toolTip)
 Creates new instance with one default tooltip More...
 
void AddToolTip (String toolTip, float textScale=MyGuiConstants.TOOL_TIP_TEXT_SCALE, string font=MyFontEnum.Blue)
 
void RecalculateSize ()
 Recalculates size of tooltips More...
 
void Draw (Vector2 mousePosition)
 

Public Attributes

readonly ObservableCollection< MyColoredTextToolTips
 
Vector2 Size
 

Properties

bool Highlight [get, set]
 
Vector4 HighlightColor [get, set]
 

Detailed Description

Definition at line 10 of file MyToolTips.cs.

Constructor & Destructor Documentation

Sandbox.Graphics.GUI.MyToolTips.MyToolTips ( )
inline

Creates new instance with empty tooltips

Definition at line 22 of file MyToolTips.cs.

Sandbox.Graphics.GUI.MyToolTips.MyToolTips ( String  toolTip)
inline

Creates new instance with one default tooltip

Parameters
toolTipTooltip's text

Definition at line 39 of file MyToolTips.cs.

Member Function Documentation

void Sandbox.Graphics.GUI.MyToolTips.AddToolTip ( String  toolTip,
float  textScale = MyGuiConstants.TOOL_TIP_TEXT_SCALE,
string  font = MyFontEnum.Blue 
)
inline

Definition at line 45 of file MyToolTips.cs.

void Sandbox.Graphics.GUI.MyToolTips.Draw ( Vector2  mousePosition)
inline

Definition at line 83 of file MyToolTips.cs.

void Sandbox.Graphics.GUI.MyToolTips.RecalculateSize ( )
inline

Recalculates size of tooltips

Definition at line 56 of file MyToolTips.cs.

Member Data Documentation

Vector2 Sandbox.Graphics.GUI.MyToolTips.Size

Definition at line 14 of file MyToolTips.cs.

readonly ObservableCollection<MyColoredText> Sandbox.Graphics.GUI.MyToolTips.ToolTips

Definition at line 12 of file MyToolTips.cs.

Property Documentation

bool Sandbox.Graphics.GUI.MyToolTips.Highlight
getset

Definition at line 16 of file MyToolTips.cs.

Vector4 Sandbox.Graphics.GUI.MyToolTips.HighlightColor
getset

Definition at line 17 of file MyToolTips.cs.


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