Gah - a solution with more questions. – EntropicLqd

UE2:GUIContextMenu (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UT2004 Object >> GUI >> GUIComponent >> GUIContextMenu

Contents

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

[edit] Properties

[edit] ContextItems

Type: array<string>

Modifiers: localized

List of menu items

[edit] ItemHeight

Type: int


[edit] ItemIndex

Type: int

Selected item

[edit] SelectionStyle

Type: GUIStyles

Holds the style

[edit] SelectionStyleName

Type: string

Name of the Style to use

Default value: "ListSelection"

[edit] Default values

Property Value
bRequiresStyle True
FontScale FNS_Small
StyleName "ContextMenu"

[edit] Delegates

[edit] OnClose

delegate bool OnClose (GUIContextMenu Sender)


[edit] OnContextHitTest

delegate bool OnContextHitTest (float MouseX, float MouseY)


[edit] OnOpen

delegate bool OnOpen (GUIContextMenu Sender)


[edit] OnSelect

delegate OnSelect (GUIContextMenu Sender, int ClickIndex)


[edit] Instance functions

[edit] AddItem

function int AddItem (string NewItem)


[edit] InsertItem

function int InsertItem (string NewItem, int Index)


[edit] RemoveItemByIndex

function bool RemoveItemByIndex (int Index)


[edit] RemoveItemByName

function bool RemoveItemByName (string ItemName)


[edit] ReplaceItem

function bool ReplaceItem (int Index, string NewItem)


Personal tools