Barotrauma Client Doc
Barotrauma.ContextMenuOption Struct Reference

Public Member Functions

 ContextMenuOption (string label, bool isEnabled, Action onSelected)
 
 ContextMenuOption (Identifier labelTag, bool isEnabled, Action onSelected)
 
 ContextMenuOption (LocalizedString label, bool isEnabled, Action onSelected)
 
 ContextMenuOption (string label, bool isEnabled, params ContextMenuOption[] options)
 

Public Attributes

LocalizedString Label
 
Action OnSelected
 
ContextMenuOption?[] SubOptions
 
bool IsEnabled
 
LocalizedString Tooltip
 

Detailed Description

Definition at line 10 of file GUIContextMenu.cs.

Constructor & Destructor Documentation

◆ ContextMenuOption() [1/4]

Barotrauma.ContextMenuOption.ContextMenuOption ( string  label,
bool  isEnabled,
Action  onSelected 
)

Definition at line 19 of file GUIContextMenu.cs.

◆ ContextMenuOption() [2/4]

Barotrauma.ContextMenuOption.ContextMenuOption ( Identifier  labelTag,
bool  isEnabled,
Action  onSelected 
)

Definition at line 22 of file GUIContextMenu.cs.

◆ ContextMenuOption() [3/4]

Barotrauma.ContextMenuOption.ContextMenuOption ( LocalizedString  label,
bool  isEnabled,
Action  onSelected 
)

Definition at line 26 of file GUIContextMenu.cs.

◆ ContextMenuOption() [4/4]

Barotrauma.ContextMenuOption.ContextMenuOption ( string  label,
bool  isEnabled,
params ContextMenuOption[]  options 
)

Definition at line 36 of file GUIContextMenu.cs.

Member Data Documentation

◆ IsEnabled

bool Barotrauma.ContextMenuOption.IsEnabled

Definition at line 15 of file GUIContextMenu.cs.

◆ Label

LocalizedString Barotrauma.ContextMenuOption.Label

Definition at line 12 of file GUIContextMenu.cs.

◆ OnSelected

Action Barotrauma.ContextMenuOption.OnSelected

Definition at line 13 of file GUIContextMenu.cs.

◆ SubOptions

ContextMenuOption? [] Barotrauma.ContextMenuOption.SubOptions

Definition at line 14 of file GUIContextMenu.cs.

◆ Tooltip

LocalizedString Barotrauma.ContextMenuOption.Tooltip

Definition at line 16 of file GUIContextMenu.cs.