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

UE2:GUIContextMenu (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> GUI >> GUIComponent >> GUIContextMenu
Package: 
XInterface

Parent: GUI Class: UT2K4UI.GUIContextMenu Date: 05-01-2003

Right-click context menu.

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

Properties

ContextItems

Type: array<string>

Modifiers: localized

List of menu items

ItemHeight

Type: int


ItemIndex

Type: int

Selected item

SelectionStyle

Type: GUIStyles

Holds the style

SelectionStyleName

Type: string

Name of the Style to use

Default value: "ListSelection"

Default values

Property Value
bRequiresStyle True
FontScale FNS_Small
StyleName "ContextMenu"

Delegates

OnClose

delegate bool OnClose (GUIContextMenu Sender)


OnContextHitTest

delegate bool OnContextHitTest (float MouseX, float MouseY)


OnOpen

delegate bool OnOpen (GUIContextMenu Sender)


OnSelect

delegate OnSelect (GUIContextMenu Sender, int ClickIndex)


Instance functions

AddItem

function int AddItem (string NewItem)


InsertItem

function int InsertItem (string NewItem, int Index)


RemoveItemByIndex

function bool RemoveItemByIndex (int Index)


RemoveItemByName

function bool RemoveItemByName (string ItemName)


ReplaceItem

function bool ReplaceItem (int Index, string NewItem)