Skip to content

GUILabelComponent

Crusha K. Rool edited this page Feb 16, 2019 · 1 revision

A Label is the representation of plain text on the screen. No textures involved, not clickable, not editable.

Table of Contents

Important Variables

Localization Heading, Localization File Name

  • LocalizationHeading, LocalizationFileName.
  • String, default “GUILabelComponent” and “GUIFrameWork”.
  • Constant.
  • Used for determining the localized strings, these should be in Localization\(Language)\LocalizationFileName.INT under the heading LocalizationHeading.

bLocalizeString

  • Bool, True by default.
  • Wether or not the string (LabelText) is a reference to a localized string.

Label Text

  • LabelText
  • String.
  • Name of the string (in the specified localization file).

Label Font

  • LabelFont
  • Font.
  • If none is specified, it defaults to GUICompatibleHUD’s PlayerFont.
  • Font to be used for the LabelText.

Label Text Color

  • LabelTextColor
  • Color, White by default (R=255,G=255,B=255,A=255)
  • Color to be used for displaying the LabelText.

Alignment

  • GFxAlign enum, Align_Center by default.
  • Where the LabelText is located inside the GUILabelComponent.