My program doesn't have bugs. It just develops random features.

UE2:GUIStyles (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UE2Runtime Object >> GUI >> GUIStyles
Package: 
GUI
Direct subclasses:
STY_SquareButton, STY_NoBackground, STY_RoundButton, STY_ScrollZone, STY_SliderCaption, STY_SquareMenuButton, STY_TabButton, STY_TextButton, STY_TextLabel
This class in other games:
UT2003, UT2004

Class: GUI.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]

BorderOffsets[edit]

Type: int

Array size: 4

How thick is the border

Default value, index 0: 9

Default value, index 1: 9

Default value, index 2: 9

Default value, index 3: 9

bRegistered[edit]

Type: bool


FontColors[edit]

Type: Object.Color

Array size: 5

This array holds 1 font 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

FontNames[edit]

Type: string

Array size: 5


Default value, index 0: "MenuFont"

Default value, index 1: "MenuFont"

Default value, index 2: "MenuFont"

Default value, index 3: "MenuFont"

Default value, index 4: "MenuFont"

Fonts[edit]

Type: GUIFont

Array size: 5

Holds the fonts for each state

Images[edit]

Type: Material

Array size: 5

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

ImgColors[edit]

Type: Object.Color

Array size: 5

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

ImgStyle[edit]

Type: GUI.eImgStyle

Array size: 5

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

KeyName[edit]

Type: string

This is the name of the style used for lookup

RStyles[edit]

Type: GUI.EMenuRenderStyle

Array size: 5

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)


Functions[edit]

Native functions[edit]

Draw[edit]

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


DrawText[edit]

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


Events[edit]

Initialize[edit]

event Initialize ()