GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
Loading...
Searching...
No Matches
menu::MTextSetting Class Reference

Represents a facing widget that displays text. More...

Inheritance diagram for menu::MTextSetting:
menu::MInputNumberFace menu::MInputTextFace menu::MTextFace menu::MToolTipFace menu::MAnimationTextFace

Public Member Functions

void resetScale ()
 
Float getShadowValueX (Int unk)
 
Float setShadowValueX (Int unk, Float value)
 
Float getShadowValueY (Int unk)
 
Float setShadowValueY (Int unk, Float value)
 
MColorObject getShadowColor (Int unk)
 
Float setShadowColor (Int unk, MColorObject color)
 
Float getShadowAlpha (Int unk)
 
Float setShadowAlpha (Float value)
 
void setTextColor (Int color_index, Object unk,...)
 

Public Attributes

MColorObject color
 Text color. Defaults to [0.83, 0.83, 0.83, 1.0]. More...
 
MColorObject top_color
 Top Text color. Defaults to [0.83, 0.83, 0.83, 1.0]. More...
 
MColorObject bottom_color
 Bottom Text color. Defaults to [0.83, 0.83, 0.83, 1.0]. More...
 
Float alpha
 Alpha. Defaults to 1.0 (fully visible) More...
 
Float top_alpha
 Top Alpha. Defaults to 1.0 (fully visible) More...
 
Float bottom_alpha
 Bottom Alpha. Defaults to 1.0 (fully visible) More...
 
String font
 Font. Defaults to "IwataSet_1". More...
 
Bool proportional
 Defaults to true. More...
 
Bool alpha_proportional
 Defaults to true. More...
 
Bool num_proportional
 Defaults to true. More...
 
Bool multiline
 Whether multi-line is allowed. Defaults to false. More...
 
Bool auto_line_break
 Whether line breaks are automatically done. Defaults to false. More...
 
Bool equalized
 Defaults to false. More...
 
Bool abbreviate
 Defaults to false. More...
 
Bool aligned
 Defaults to true. More...
 
Int align
 Sets the text alignment. Defaults to 4 (Center). View details for options. More...
 
Int clut
 
Float original_scale_x
 Original Scale X. Defaults to 1.0. More...
 
Float original_scale_y
 Original Scale Y. Defaults to 1.0. More...
 
Float current_scale_x
 Same as scale_x. More...
 
Float current_scale_y
 Same as scale_y. More...
 
Float scale_x
 Scale X. Defaults to 1.0. More...
 
Float scale_y
 Scale X. Defaults to 1.0. More...
 
Float shadow_value
 Shadow value. Defaults to 0.0. More...
 
MColorObject shadow_color
 Shadow color. Defaults to [0.0, 0.0, 0.0, 1.0]. More...
 
Float shadow_alpha
 Shadow Alpha. Defaults to 1.0 (fully visible) More...
 
Float outline_value
 Outline value. Defaults to 0.0. More...
 
MColorObject outline_color
 Outline color. Defaults to [0.0, 0.0, 0.0, 1.0]. More...
 
Float nextline_offset
 Offset to the next line. Defaults to 0.0. More...
 
Float type_spacing
 Unknown. Defaults to 0.0. More...
 
Float line_height
 Line height. Defaults to 21.0. More...
 
Bool parse_enable
 Whether to enable color parsing within the text. Defaults to true. Depends on values in a string which can be seen here https://github.com/Nenkai/GTAdhocToolchain/blob/master/GTAdhocToolchain.Compiler/AdhocDefineConstants.cs. More...
 
Bool wordwrap
 Whether to enable word wrapping. Defaults to true. More...
 

Detailed Description

Represents a facing widget that displays text.

Definition at line 8 of file MTextSetting.cpp.

Member Function Documentation

◆ getShadowAlpha()

Float menu::MTextSetting::getShadowAlpha ( Int  unk)

◆ getShadowColor()

MColorObject menu::MTextSetting::getShadowColor ( Int  unk)

◆ getShadowValueX()

Float menu::MTextSetting::getShadowValueX ( Int  unk)

◆ getShadowValueY()

Float menu::MTextSetting::getShadowValueY ( Int  unk)

◆ resetScale()

void menu::MTextSetting::resetScale ( )

◆ setShadowAlpha()

Float menu::MTextSetting::setShadowAlpha ( Float  value)

◆ setShadowColor()

Float menu::MTextSetting::setShadowColor ( Int  unk,
MColorObject  color 
)

◆ setShadowValueX()

Float menu::MTextSetting::setShadowValueX ( Int  unk,
Float  value 
)

◆ setShadowValueY()

Float menu::MTextSetting::setShadowValueY ( Int  unk,
Float  value 
)

◆ setTextColor()

void menu::MTextSetting::setTextColor ( Int  color_index,
Object  unk,
  ... 
)

Member Data Documentation

◆ abbreviate

Bool menu::MTextSetting::abbreviate

Defaults to false.

Definition at line 52 of file MTextSetting.cpp.

◆ align

Int menu::MTextSetting::align

Sets the text alignment. Defaults to 4 (Center). View details for options.

Each value is a different alignment:

  • 0: Top-Left
  • 1: Top-Center
  • 2: Top-Right
  • 3: Left
  • 4: Center
  • 5: Right
  • 6: Bottom-Left
  • 7: Bottom-Center
  • 8: Bottom-Right

Definition at line 68 of file MTextSetting.cpp.

◆ aligned

Bool menu::MTextSetting::aligned

Defaults to true.

Definition at line 55 of file MTextSetting.cpp.

◆ alpha

Float menu::MTextSetting::alpha

Alpha. Defaults to 1.0 (fully visible)

Definition at line 22 of file MTextSetting.cpp.

◆ alpha_proportional

Bool menu::MTextSetting::alpha_proportional

Defaults to true.

Definition at line 37 of file MTextSetting.cpp.

◆ auto_line_break

Bool menu::MTextSetting::auto_line_break

Whether line breaks are automatically done. Defaults to false.

Definition at line 46 of file MTextSetting.cpp.

◆ bottom_alpha

Float menu::MTextSetting::bottom_alpha

Bottom Alpha. Defaults to 1.0 (fully visible)

Definition at line 28 of file MTextSetting.cpp.

◆ bottom_color

MColorObject menu::MTextSetting::bottom_color

Bottom Text color. Defaults to [0.83, 0.83, 0.83, 1.0].

Definition at line 19 of file MTextSetting.cpp.

◆ clut

Int menu::MTextSetting::clut

Definition at line 70 of file MTextSetting.cpp.

◆ color

MColorObject menu::MTextSetting::color

Text color. Defaults to [0.83, 0.83, 0.83, 1.0].

Definition at line 13 of file MTextSetting.cpp.

◆ current_scale_x

Float menu::MTextSetting::current_scale_x

Same as scale_x.

Definition at line 79 of file MTextSetting.cpp.

◆ current_scale_y

Float menu::MTextSetting::current_scale_y

Same as scale_y.

Definition at line 82 of file MTextSetting.cpp.

◆ equalized

Bool menu::MTextSetting::equalized

Defaults to false.

Definition at line 49 of file MTextSetting.cpp.

◆ font

String menu::MTextSetting::font

Font. Defaults to "IwataSet_1".

Definition at line 31 of file MTextSetting.cpp.

◆ line_height

Float menu::MTextSetting::line_height

Line height. Defaults to 21.0.

Definition at line 112 of file MTextSetting.cpp.

◆ multiline

Bool menu::MTextSetting::multiline

Whether multi-line is allowed. Defaults to false.

Definition at line 43 of file MTextSetting.cpp.

◆ nextline_offset

Float menu::MTextSetting::nextline_offset

Offset to the next line. Defaults to 0.0.

Definition at line 106 of file MTextSetting.cpp.

◆ num_proportional

Bool menu::MTextSetting::num_proportional

Defaults to true.

Definition at line 40 of file MTextSetting.cpp.

◆ original_scale_x

Float menu::MTextSetting::original_scale_x

Original Scale X. Defaults to 1.0.

Definition at line 73 of file MTextSetting.cpp.

◆ original_scale_y

Float menu::MTextSetting::original_scale_y

Original Scale Y. Defaults to 1.0.

Definition at line 76 of file MTextSetting.cpp.

◆ outline_color

MColorObject menu::MTextSetting::outline_color

Outline color. Defaults to [0.0, 0.0, 0.0, 1.0].

Definition at line 103 of file MTextSetting.cpp.

◆ outline_value

Float menu::MTextSetting::outline_value

Outline value. Defaults to 0.0.

Definition at line 100 of file MTextSetting.cpp.

◆ parse_enable

Bool menu::MTextSetting::parse_enable

Whether to enable color parsing within the text. Defaults to true. Depends on values in a string which can be seen here https://github.com/Nenkai/GTAdhocToolchain/blob/master/GTAdhocToolchain.Compiler/AdhocDefineConstants.cs.

Definition at line 117 of file MTextSetting.cpp.

◆ proportional

Bool menu::MTextSetting::proportional

Defaults to true.

Definition at line 34 of file MTextSetting.cpp.

◆ scale_x

Float menu::MTextSetting::scale_x

Scale X. Defaults to 1.0.

Definition at line 85 of file MTextSetting.cpp.

◆ scale_y

Float menu::MTextSetting::scale_y

Scale X. Defaults to 1.0.

Definition at line 88 of file MTextSetting.cpp.

◆ shadow_alpha

Float menu::MTextSetting::shadow_alpha

Shadow Alpha. Defaults to 1.0 (fully visible)

Definition at line 97 of file MTextSetting.cpp.

◆ shadow_color

MColorObject menu::MTextSetting::shadow_color

Shadow color. Defaults to [0.0, 0.0, 0.0, 1.0].

Definition at line 94 of file MTextSetting.cpp.

◆ shadow_value

Float menu::MTextSetting::shadow_value

Shadow value. Defaults to 0.0.

Definition at line 91 of file MTextSetting.cpp.

◆ top_alpha

Float menu::MTextSetting::top_alpha

Top Alpha. Defaults to 1.0 (fully visible)

Definition at line 25 of file MTextSetting.cpp.

◆ top_color

MColorObject menu::MTextSetting::top_color

Top Text color. Defaults to [0.83, 0.83, 0.83, 1.0].

Definition at line 16 of file MTextSetting.cpp.

◆ type_spacing

Float menu::MTextSetting::type_spacing

Unknown. Defaults to 0.0.

Definition at line 109 of file MTextSetting.cpp.

◆ wordwrap

Bool menu::MTextSetting::wordwrap

Whether to enable word wrapping. Defaults to true.

Definition at line 120 of file MTextSetting.cpp.


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