| Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
| previous class next class | frames no frames | |||||
Displays a list of options for the user to choose from. Invoked when the user right-clicks on a widget which supports context menus, and the list of available options are context sensitive. Items can be either static (using static data providers) or modified at runtime. Copyright 1998-2008 Epic Games, Inc. All Rights Reserved
Core.Object
|
+-- Engine.UIRoot
|
+-- Engine.UIScreenObject
|
+-- Engine.UIObject
|
+-- Engine.UIList
|
+-- Engine.UIContextMenu
UTUI_ContextMenu
| Constants Summary |
|---|
| Inherited Contants from Engine.UIList |
|---|
| ResizeBufferPixels |
| Inherited Contants from Engine.UIObject |
|---|
| CONTEXTMENU_BINDING_INDEX, FIRST_DEFAULT_DATABINDING_INDEX, TOOLTIP_BINDING_INDEX |
| Variables Summary | |
|---|---|
| bool | bResolvePosition |
| UIObject | InvokingWidget |
| array<ContextMenuItem> | MenuItems |
| Enumerations Summary | ||
|---|---|---|
| EContextMenuItemType CMIT_Normal, CMIT_Submenu, CMIT_Separator, CMIT_Check, CMIT_Radio, | ||
| Inherited Enumerations from Engine.UIList |
|---|
| ECellAutoSizeMode, ECellLinkType, EListWrapBehavior |
| Structures Summary | ||
|---|---|---|
| ContextMenuItem OwnerMenu, ParentItem, ItemType, ItemText, ItemId | ||
| Inherited Structures from Engine.UIList |
|---|
| CellHitDetectionInfo |
| Functions Summary | ||
|---|---|---|
![]() | bool | ClearMenuItems (UIObject Widget )) |
![]() | bool | Close (int PlayerIndex=GetBestPlayerIndex()) |
![]() | int | FindMenuItemIndex (UIObject Widget, string ItemToFind )) |
![]() | bool | GetAllMenuItems (UIObject Widget, out array |
![]() | bool | GetMenuItem (UIObject Widget, int IndexToGet, out string out_MenuItem )) |
![]() | bool | InsertMenuItem (UIObject Widget, string Item, optional int InsertIndex=INDEX_NONE, optional bool bAllowDuplicates )) |
![]() | bool | IsActiveContextMenu () con) |
![]() | bool | Open (int PlayerIndex=GetBestPlayerIndex()) |
![]() | bool | RemoveMenuItem (UIObject Widget, string ItemToRemove )) |
![]() | bool | RemoveMenuItemAtIndex (UIObject Widget, int IndexToRemove )) |
![]() | bool | SetMenuItems (UIObject Widget, array<string> NewMenuItems, optional bool bClearExisting=true, optional int InsertIndex=INDEX_NONE )) |
| Variables Detail |
|---|
indicates that this context menu's position needs to be re-resolved during the next scene update
the widget that invoked this context menu
| Enumerations Detail |
|---|
Different types of context menu items
| Structures Detail |
|---|
var int ItemId;};
var string ItemText;
var EContextMenuItemType ItemType;
var transient const UIContextMenu OwnerMenu;
var native transient const pointer ParentItem;
Represents a single item in a context menu @note - temporary; not sure if this struct will actually be used
| Functions Detail |
|---|
ClearMenuItems Source codeRemoves all context menu items from this context menu.
@param Widget the widget that invoked this context menu
@return TRUE if the operation was successful.
Close Source codeCloses this context menu.
@return TRUE if the context menu closed successfully; FALSE if it didn't close (as a result of OnClose returning FALSE, for example)
FindMenuItemIndex Source codeFinds the location of a string in the context menu's array of items.
@param Widget the widget that invoked this context menu
@param ItemToFind the string to find
@return the index for the specified value, or INDEX_NONE if it couldn't be found.
GetAllMenuItems Source codeGets a list of the current context menu items strings.
@param Widget the widget that invoked this context menu
@param out_MenuItems receives the context menu item strings
@return TRUE if the operation was successful.
GetMenuItem Source codeGets the value of the context menu item located at a specified position in the array.
@param Widget the widget that invoked this context menu
@param IndexToGet the index of the context menu item to get
@param out_MenuItem receives the value of the context menu item text.
@return TRUE if the value was successfully retrieved and copied to out_MenuItem.
InsertMenuItem Source codeSets the text for a single context menu item.
@param Widget the widget that invoked this context menu
@param Item the text to add/insert to the context menu
@param InsertIndex the location [in the list's items array] to insert the new menu item; if not specified, will be appended to the end of the array.
@param bAllowDuplicates specify TRUE to allow multiple menu items with the same value; otherwise, the new value will not be added if an existing item has the same value.
@return TRUE if the operation was successful.
IsActiveContextMenu Source codeReturns TRUE if this context menu is the scene's currently active context menu.
Open Source codeOpens this context menu. Called by the owning scene when a new context menu is activated.
@param PlayerIndex the index of the player that triggered the context menu to be opened.
@return TRUE if the context menu was successfully opened.
RemoveMenuItem Source codeRemoves a single menu item from the context menu.
@param Widget the widget that invoked this context menu
@param ItemToRemove the string that should be removed from the context menu
@return TRUE if the value was successfully removed or didn't exist in the first place.
RemoveMenuItemAtIndex Source codeRemoves the context menu item located at a specified position in the array.
@param Widget the widget that invoked this context menu
@param IndexToRemove the index of the item that should be removed.
@return TRUE if the value was successfully removed; FALSE if IndexToRemove wasn't valid or the value couldn't be removed.
SetMenuItems Source codeSets the text that will be displayed in the context menu items.
@param Widget the widget that invoked this context menu
@param NewMenuItems the menu items to use in the context menu
@param bClearExisting specify TRUE to clear any existing menu items; otherwise, the new items will be appended to the old
@param InsertIndex the location [in the list's items array] to insert the new menu items at; only relevant if bClearExisting is FALSE
@return TRUE if the operation was successful.
| Defaultproperties |
|---|
defaultproperties
{
ColumnAutoSizeMode=CELLAUTOSIZE_AdjustList
RowAutoSizeMode=CELLAUTOSIZE_AdjustList
WrapType=LISTWRAP_Jump
bEnableVerticalScrollbar=False
bSingleClickSubmission=True
bUpdateItemUnderCursor=True
Begin Object Class=UIComp_ContextMenuListPresenter Name=ContextMenuDataComponent ObjName=ContextMenuDataComponent Archetype=UIComp_ContextMenuListPresenter'Engine.Default__UIComp_ContextMenuListPresenter'
Begin Object Class=UITexture Name=NormalOverlayTemplate ObjName=NormalOverlayTemplate Archetype=UITexture'Engine.Default__UIComp_ContextMenuListPresenter:NormalOverlayTemplate'
ObjectArchetype=UITexture'Engine.Default__UIComp_ContextMenuListPresenter:NormalOverlayTemplate'
End Object
Begin Object Class=UITexture Name=ActiveOverlayTemplate ObjName=ActiveOverlayTemplate Archetype=UITexture'Engine.Default__UIComp_ContextMenuListPresenter:ActiveOverlayTemplate'
ObjectArchetype=UITexture'Engine.Default__UIComp_ContextMenuListPresenter:ActiveOverlayTemplate'
End Object
Begin Object Class=UITexture Name=SelectionOverlayTemplate ObjName=SelectionOverlayTemplate Archetype=UITexture'Engine.Default__UIComp_ContextMenuListPresenter:SelectionOverlayTemplate'
ObjectArchetype=UITexture'Engine.Default__UIComp_ContextMenuListPresenter:SelectionOverlayTemplate'
End Object
Begin Object Class=UITexture Name=HoverOverlayTemplate ObjName=HoverOverlayTemplate Archetype=UITexture'Engine.Default__UIComp_ContextMenuListPresenter:HoverOverlayTemplate'
ObjectArchetype=UITexture'Engine.Default__UIComp_ContextMenuListPresenter:HoverOverlayTemplate'
End Object
ListItemOverlay(0)=UITexture'Engine.Default__UIContextMenu:ContextMenuDataComponent.NormalOverlayTemplate'
ListItemOverlay(1)=UITexture'Engine.Default__UIContextMenu:ContextMenuDataComponent.ActiveOverlayTemplate'
ListItemOverlay(2)=UITexture'Engine.Default__UIContextMenu:ContextMenuDataComponent.SelectionOverlayTemplate'
ListItemOverlay(3)=UITexture'Engine.Default__UIContextMenu:ContextMenuDataComponent.HoverOverlayTemplate'
Name="ContextMenuDataComponent"
ObjectArchetype=UIComp_ContextMenuListPresenter'Engine.Default__UIComp_ContextMenuListPresenter'
End Object
CellDataComponent=ContextMenuDataComponent
PrimaryStyle=(DefaultStyleTag="DefaultContextMenuStyle",RequiredStyleClass=Class'Engine.UIStyle_Image')
bEnableActiveCursorUpdates=True
bSupportsPrimaryStyle=True
Position=(Value[2]=16.000000,Value[3]=100.000000,ScaleType[0]=EVALPOS_PixelViewport,ScaleType[1]=EVALPOS_PixelViewport,ScaleType[2]=EVALPOS_PixelOwner,ScaleType[3]=EVALPOS_PixelOwner)
bHidden=True
Begin Object Class=UIComp_Event Name=WidgetEventComponent ObjName=WidgetEventComponent Archetype=UIComp_Event'Engine.Default__UIList:WidgetEventComponent'
ObjectArchetype=UIComp_Event'Engine.Default__UIList:WidgetEventComponent'
End Object
EventProvider=WidgetEventComponent
Name="Default__UIContextMenu"
ObjectArchetype=UIList'Engine.Default__UIList'
}
|
| Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
| previous class next class | frames no frames | |||||