I don't need to test my programs. I have an error-correcting modem.

UE2:GUIStyles (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UE2Runtime Object >> GUI >> GUIStyles

Contents

Package: 
GUI
Known direct subclasses:
STY_NoBackground, STY_RoundButton, STY_ScrollZone, STY_SliderCaption, STY_SquareButton, 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

[edit] Properties

[edit] BorderOffsets

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

[edit] bRegistered

Type: bool


[edit] FontColors

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

[edit] FontNames

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"

[edit] Fonts

Type: GUIFont

Array size: 5

Holds the fonts for each state

[edit] Images

Type: Material

Array size: 5

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

[edit] ImgColors

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

[edit] ImgStyle

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

[edit] KeyName

Type: string

This is the name of the style used for lookup

[edit] RStyles

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

[edit] Delegates

[edit] OnDraw

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


[edit] OnDrawText

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


[edit] Functions

[edit] Native functions

[edit] Draw

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


[edit] DrawText

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


[edit] Events

[edit] Initialize

event Initialize ()


Personal tools