I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:GUIButton (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> GUI >> GUIComponent >> GUIButton
Package: 
XInterface
Direct subclasses:
GUIEditBox, GUIGFXButton, GUISpinnerButton, GUITabButton, StateButton
This class in other games:
UE2Runtime, UT2003

Class: UT2K4UI.GUIButton

GUIButton - The basic button class

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

Properties[edit]

Property group 'GUIButton'[edit]

AutoSizePadding[edit]

Type: PaddingPercent


Default value:

Member Value
HorzPerc 0.125

bAutoShrink[edit]

Type: bool

Reduce size of button if bAutoSize & caption is smaller than WinWidth

Default value: True

bAutoSize[edit]

Type: bool

Size according to caption size.

bUseCaptionHeight[edit]

Type: bool

Get the Height from the caption

bWrapCaption[edit]

Type: bool

Wrap the caption if its too long - ignored if bAutoSize = true

Caption[edit]

Type: string

Modifiers: localized


CaptionAlign[edit]

Type: GUI.eTextAlign


Default value: TXTA_Center

CaptionEffectStyle[edit]

Type: GUIStyles

Modifiers: editconst


CaptionEffectStyleName[edit]

Type: string


SizingCaption[edit]

Type: string


Default values[edit]

Property Value
bAcceptsInput True
bCaptureMouse True
bMouseOverSound True
bTabStop True
OnClickSound CS_Click
OnKeyEvent InternalOnKeyEvent
StandardHeight 0.04
StyleName "SquareButton"
ToolTip GUIToolTip'GUIButtonToolTip'
WinHeight 0.04

Subobjects[edit]

GUIButtonToolTip[edit]

Class: XInterface.GUIToolTip

Empty subobject definition.

Structs[edit]

PaddingPercent[edit]

Modifiers: native

float HorzPerc 
float VertPerc 

Functions[edit]

Events[edit]

InitComponent[edit]

event InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: GUIComponent.InitComponent


Other instance functions[edit]

InternalOnKeyEvent[edit]

function bool InternalOnKeyEvent (out byte Key, out byte State, float delta)