ManiaScript Trackmania 2020  14/07/2025
CMlLabel Class Reference

Manialink entry. More...

#include <2025_07_14.h>

Inheritance diagram for CMlLabel:
CMlControl CNod

Public Types

enum  EBlendMode { Default, Add }
 
enum  EFilterProfanities { Never, OnlyIfNotTranslated, Always }
 
- Public Types inherited from CMlControl
enum  AlignHorizontal { Left, HCenter, Right, None }
 
enum  AlignVertical {
  Top, VCenter, Bottom, None,
  VCenter2
}
 

Public Member Functions

Void SetText (Text NewText)
 
Real ComputeWidth (Text Text)
 
Real ComputeWidth (Text Text, Boolean Translated)
 
Real ComputeHeight (Text Text)
 
Void TTS_Focus ()
 
Void TTS_Unfocus ()
 
- Public Member Functions inherited from CMlControl
Boolean HasClass (Text Class)
 
Boolean DataAttributeExists (Text DataName)
 
Text DataAttributeGet (Text DataName)
 
Void DataAttributeSet (Text DataName, Text DataValue)
 
Void Show ()
 
Void Hide ()
 
Void Focus ()
 
Void ScriptEvents_Disable ()
 
Void ScriptEvents_Restore ()
 

Public Attributes

Text Style
 
Text Substyle
 
Text TextFont
 
Text Value
 
Integer const ValueLineCount
 
Integer MaxLine
 
Real LineSpacing
 
Real ItalicSlope
 
Boolean AppendEllipsis
 
Boolean AutoNewLine
 
Real Opacity
 
Text TextPrefix
 
Vec3 TextColor
 
Real TextSizeReal
 
CMlLabel::EBlendMode Blend
 
Text TTS_AltText
 
Boolean TTS_AltText_Translate
 
CMlLabel::EFilterProfanities FilterProfanities
 
- Public Attributes inherited from CMlControl
CMlFrame *const Parent
 
Text const ControlId
 
Vec2 Size
 
CMlControl::AlignHorizontal HorizontalAlign
 
CMlControl::AlignVertical VerticalAlign
 
Boolean Visible
 
Vec2 RelativePosition_V3
 
Real ZIndex
 
Real RelativeScale
 
Real RelativeRotation
 
Vec2 const AbsolutePosition_V3
 
Real const AbsoluteScale
 
Real const AbsoluteRotation
 
Text ToolTip
 
Boolean const IsFocused
 
- Public Attributes inherited from CNod
Ident const Id
 

Detailed Description

Manialink entry.

Supported declare modes :

  • Local

Definition at line 14180 of file 2025_07_14.h.

Member Enumeration Documentation

◆ EBlendMode

Enumerator
Default 
Add 

Definition at line 14185 of file 2025_07_14.h.

14185  {
14186  Default,
14187  Add,
14188  };

◆ EFilterProfanities

Enumerator
Never 
OnlyIfNotTranslated 
Always 

Definition at line 14192 of file 2025_07_14.h.

14192  {
14193  Never,
14195  Always,
14196  };

Member Function Documentation

◆ ComputeHeight()

Real CMlLabel::ComputeHeight ( Text  Text)

◆ ComputeWidth() [1/2]

Real CMlLabel::ComputeWidth ( Text  Text)

◆ ComputeWidth() [2/2]

Real CMlLabel::ComputeWidth ( Text  Text,
Boolean  Translated 
)

◆ SetText()

Void CMlLabel::SetText ( Text  NewText)

◆ TTS_Focus()

Void CMlLabel::TTS_Focus ( )

◆ TTS_Unfocus()

Void CMlLabel::TTS_Unfocus ( )

Member Data Documentation

◆ AppendEllipsis

Boolean CMlLabel::AppendEllipsis

Definition at line 14236 of file 2025_07_14.h.

◆ AutoNewLine

Boolean CMlLabel::AutoNewLine

Definition at line 14240 of file 2025_07_14.h.

◆ Blend

CMlLabel::EBlendMode CMlLabel::Blend

Definition at line 14260 of file 2025_07_14.h.

◆ FilterProfanities

CMlLabel::EFilterProfanities CMlLabel::FilterProfanities

Definition at line 14292 of file 2025_07_14.h.

◆ ItalicSlope

Real CMlLabel::ItalicSlope

Definition at line 14232 of file 2025_07_14.h.

◆ LineSpacing

Real CMlLabel::LineSpacing

Definition at line 14228 of file 2025_07_14.h.

◆ MaxLine

Integer CMlLabel::MaxLine

Definition at line 14224 of file 2025_07_14.h.

◆ Opacity

Real CMlLabel::Opacity

Definition at line 14244 of file 2025_07_14.h.

◆ Style

Text CMlLabel::Style

Definition at line 14200 of file 2025_07_14.h.

◆ Substyle

Text CMlLabel::Substyle

Definition at line 14204 of file 2025_07_14.h.

◆ TextColor

Vec3 CMlLabel::TextColor

Definition at line 14252 of file 2025_07_14.h.

◆ TextFont

Text CMlLabel::TextFont

Definition at line 14208 of file 2025_07_14.h.

◆ TextPrefix

Text CMlLabel::TextPrefix

Used to include styling attributes like $s,$o...

Definition at line 14248 of file 2025_07_14.h.

◆ TextSizeReal

Real CMlLabel::TextSizeReal

Definition at line 14256 of file 2025_07_14.h.

◆ TTS_AltText

Text CMlLabel::TTS_AltText

Definition at line 14276 of file 2025_07_14.h.

◆ TTS_AltText_Translate

Boolean CMlLabel::TTS_AltText_Translate

Definition at line 14280 of file 2025_07_14.h.

◆ Value

Text CMlLabel::Value

Definition at line 14216 of file 2025_07_14.h.

◆ ValueLineCount

Integer const CMlLabel::ValueLineCount

Definition at line 14220 of file 2025_07_14.h.


The documentation for this class was generated from the following file:
CMlLabel::Never
@ Never
Definition: 2025_07_14.h:14193
CMlLabel::Default
@ Default
Definition: 2025_07_14.h:14186
CMlLabel::OnlyIfNotTranslated
@ OnlyIfNotTranslated
Definition: 2025_07_14.h:14194
CMlLabel::Always
@ Always
Definition: 2025_07_14.h:14195
CMlLabel::Add
@ Add
Definition: 2025_07_14.h:14187