Always snap to grid

UE2:GUIStyles (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:10, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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

bRegistered

Type: bool


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

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"

Fonts

Type: GUIFont

Array size: 5

Holds the fonts for each state

Images

Type: Material

Array size: 5

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

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

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

KeyName

Type: string

This is the name of the style used for lookup

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

Delegates

OnDraw

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


OnDrawText

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


Functions

Native functions

Draw

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


DrawText

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


Events

Initialize

event Initialize ()