Cogito, ergo sum

UE2:GUIStyles (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> GUI >> GUIStyles
Package: 
XInterface
Direct subclasses:
STY_RosterButton, GUI2Styles, STYComboBox, STY_IRCEntry, STY_IRCText, STY_LadderButton, STY_ListSelection, STY_NoBackground, STY_Page, STY_RoundButton, STY_ScrollZone, STY_ServerBrowserGridHeader, STY_ServerBrowserGrid, STY_SliderCaption, STY_SquareButton, STY_TabButton, STY_TextButton, STY_TextLabel
This class in other games:
UE2Runtime, UT2003

Class: UT2K4UI.GUIStyles

The GUIStyle is an object that is used to describe common visible components of the interface.

Written by Joe Wilcox (c) 2002, Epic Games, Inc. All Rights Reserved

Properties[edit]

Property group 'Style'[edit]

AlternateKeyName[edit]

Type: string

Array size: 2

Modifiers: const


BorderOffsets[edit]

Type: int

Array size: 4

Modifiers: noexport

How thick is the border

Default value, index 0: 10

Default value, index 1: 10

Default value, index 2: 10

Default value, index 3: 10

bTemporary[edit]

Type: bool

Modifiers: noexport


FontBKColors[edit]

Type: Object.Color

Array size: 5

Modifiers: noexport

This holds the Background Colors for each state

Default value, index 0:

Member Value
A 255
B 0
G 0
R 0

Default value, index 1:

Member Value
A 255
B 0
G 0
R 0

Default value, index 2:

Member Value
A 255
B 0
G 0
R 0

Default value, index 3:

Member Value
A 255
B 0
G 0
R 0

Default value, index 4:

Member Value
A 255
B 0
G 0
R 0

FontColors[edit]

Type: Object.Color

Array size: 5

Modifiers: noexport

This array holds 1 font color for each state

Default value, index 0:

Member Value
A 255
B 64
G 0
R 0

Default value, index 1:

Member Value
A 255
B 64
G 0
R 0

Default value, index 2:

Member Value
A 255
B 80
G 32
R 32

Default value, index 3:

Member Value
A 255
B 80
G 32
R 32

Default value, index 4:

Member Value
A 255
B 128
G 0
R 0

FontNames[edit]

Type: string

Array size: 15

Modifiers: noexport

Holds the names of the 5 fonts to use

Default value, index 0: "UT2SmallFont"

Default value, index 1: "UT2SmallFont"

Default value, index 10: "UT2LargeFont"

Default value, index 11: "UT2LargeFont"

Default value, index 12: "UT2LargeFont"

Default value, index 13: "UT2LargeFont"

Default value, index 14: "UT2LargeFont"

Default value, index 15: "UT2SmallFont"

Default value, index 16: "UT2SmallFont"

Default value, index 17: "UT2SmallFont"

Default value, index 18: "UT2MenuFont"

Default value, index 19: "UT2MenuFont"

Default value, index 20: "UT2MenuFont"

Default value, index 21: "UT2MenuFont"

Default value, index 22: "UT2MenuFont"

Fonts[edit]

Type: GUIFont

Array size: 15

Modifiers: noexport

Holds the fonts for each state

Images[edit]

Type: Material

Array size: 5

Modifiers: noexport

This array holds 1 material for each state (Blurry, Watched, Focused, Pressed, Disabled)

ImgColors[edit]

Type: Object.Color

Array size: 5

Modifiers: noexport

This array holds 1 image color for each state

Default value, index 0:

Member Value
A 255
B 255
G 255
R 255

Default value, index 1:

Member Value
A 255
B 255
G 255
R 255

Default value, index 2:

Member Value
A 255
B 255
G 255
R 255

Default value, index 3:

Member Value
A 255
B 255
G 255
R 255

Default value, index 4:

Member Value
A 255
B 128
G 128
R 128

ImgHeights[edit]

Type: float

Array size: 5

Modifiers: noexport

-1 if full image

Default value, index 0: -1.0

Default value, index 1: -1.0

Default value, index 2: -1.0

Default value, index 3: -1.0

Default value, index 4: -1.0

ImgStyle[edit]

Type: GUI.eImgStyle

Array size: 5

Modifiers: noexport

How should each image for each state be drawed

Default value, index 0: ISTY_Stretched

Default value, index 1: ISTY_Stretched

Default value, index 2: ISTY_Stretched

Default value, index 3: ISTY_Stretched

Default value, index 4: ISTY_Stretched

ImgWidths[edit]

Type: float

Array size: 5

Modifiers: noexport

-1 if full image

Default value, index 0: -1.0

Default value, index 1: -1.0

Default value, index 2: -1.0

Default value, index 3: -1.0

Default value, index 4: -1.0

KeyName[edit]

Type: string

Modifiers: const


RStyles[edit]

Type: GUI.EMenuRenderStyle

Array size: 5

Modifiers: noexport

The render styles for each state

Default value, index 0: MSTY_Normal

Default value, index 1: MSTY_Normal

Default value, index 2: MSTY_Normal

Default value, index 3: MSTY_Normal

Default value, index 4: MSTY_Normal

Delegates[edit]

OnDraw[edit]

delegate bool OnDraw (Canvas Canvas, GUI.eMenuState MenuState, float left, float top, float width, float height)


OnDrawText[edit]

delegate bool OnDrawText (Canvas Canvas, GUI.eMenuState MenuState, float left, float top, float width, float height, GUI.eTextAlign Align, string Text, GUI.eFontScale FontScale)


Functions[edit]

Static native functions[edit]

Draw[edit]

native static final function Draw (Canvas Canvas, GUI.eMenuState MenuState, float left, float top, float width, float height)


DrawText[edit]

native static final function DrawText (Canvas Canvas, GUI.eMenuState MenuState, float left, float top, float width, float height, GUI.eTextAlign Align, string Text, GUI.eFontScale FontScale)


TextSize[edit]

native static final function TextSize (Canvas Canvas, GUI.eMenuState MenuState, string Text, out float XL, out float YL, GUI.eFontScale FontScale)


Events[edit]

Initialize[edit]

event Initialize ()