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

UE3:UIComp_Event (UT3)

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT3 Object >> Component >> UIComponent >> UIComp_Event
Package: 
Engine
Within class: 
UIScreenObject
This class in other games:
UDK

Provides a list of events that a widget can process. The outer for a UIComp_Event MUST be a UIScreenObject. Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

Properties[edit]

DefaultEvents[edit]

Type: array<UIRoot.DefaultEventSpecification>

Events which should be implemented for this widget by default. For example, a button should respond to mouse clicks without requiring the designer to attach a UIEvent_ProcessClick event to every button. To accomplish this, in the UIButton class's defaultproperties you would define a UIEvent_ButtonClick object using a subobject definition, then add that event to the DefaultEvents array for the EventProvider of the UIButton class. Since this property will almost always have values assigned in defaults (via the subobject definition for this object) it isn't marked instanced (see the

Note: in the next comment). Instead, these objects will be manually instanced when a new widget is created.

DisabledEventAliases[edit]

Type: array<name>

List of disabled UI event aliases that will not have their input subscribed.

EventContainer[edit]

Type: UISequence

Modifiers: instanced

The sequence that contains the events implemented for this widget.

Note: do not give this variable a default value, or each time a UIComp_Event object is loaded from disk, StaticConstructObject (well, really InitProperties) will construct an object of this type that will be immediately overwritten when the UIComp_Event object is serialized from disk.

InputProcessor[edit]

Type: UIEvent_ProcessInput

Modifiers: transient

The UIEvent responsible for routing input key events to kismet actions. Created at runtime whenever input keys are registered with the owning wiget.

Native functions[edit]

RegisterInputEvents[edit]

native final function RegisterInputEvents (UIState InputEventOwner, int PlayerIndex)

Adds the input events for the specified state to the owning scene's InputEventSubscribers

Parameters:

  • InputEventOwner - the state that contains the input keys that should be registered with the scene
  • PlayerIndex - the index of the player to register the input keys for

UnregisterInputEvents[edit]

native final function UnregisterInputEvents (UIState InputEventOwner, int PlayerIndex)

Removes the input events for the specified state from the owning scene's InputEventSubscribers

Parameters:

  • InputEventOwner - the state that contains the input keys that should be removed from the scene
  • PlayerIndex - the index of the player to unregister input keys for