Mostly Harmless

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[edit]

ContextItems[edit]

Type: array<string>

Modifiers: localized

List of menu items

ItemHeight[edit]

Type: int


ItemIndex[edit]

Type: int

Selected item

SelectionStyle[edit]

Type: GUIStyles

Holds the style

SelectionStyleName[edit]

Type: string

Name of the Style to use

Default value: "ListSelection"

Default values[edit]

Property Value
bRequiresStyle True
FontScale FNS_Small
StyleName "ContextMenu"

Delegates[edit]

OnClose[edit]

delegate bool OnClose (GUIContextMenu Sender)


OnContextHitTest[edit]

delegate bool OnContextHitTest (float MouseX, float MouseY)


OnOpen[edit]

delegate bool OnOpen (GUIContextMenu Sender)


OnSelect[edit]

delegate OnSelect (GUIContextMenu Sender, int ClickIndex)


Instance functions[edit]

AddItem[edit]

function int AddItem (string NewItem)


InsertItem[edit]

function int InsertItem (string NewItem, int Index)


RemoveItemByIndex[edit]

function bool RemoveItemByIndex (int Index)


RemoveItemByName[edit]

function bool RemoveItemByName (string ItemName)


ReplaceItem[edit]

function bool ReplaceItem (int Index, string NewItem)