Difference between revisions of "EnableMenu - InputEnableLayer"
Jump to navigation
Jump to search
imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus '''Member of:''' InputEnableLayer Script Enables or disables the player's ability to use the menu on this layer. == Syntax == <s...") |
imported>Docclox m (→Examples: fixed careless errors) |
||
Line 20: | Line 20: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Enable menu | ; Enable menu | ||
InputEnableLayer myLayer = InputEnableLayer.Create() | |||
myLayer.EnableMenu() | myLayer.EnableMenu() | ||
</source> | </source> | ||
<br/> | <br/> | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Disable | ; Disable menu | ||
InputEnableLayer myLayer = InputEnableLayer.Create() | InputEnableLayer myLayer = InputEnableLayer.Create() | ||
myLayer.EnableMenu(false) | myLayer.EnableMenu(false) |
Latest revision as of 07:39, 31 August 2016
Member of: InputEnableLayer Script
Enables or disables the player's ability to use the menu on this layer.
Syntax[edit | edit source]
Function EnableMenu(abEnable = true) native
Parameters[edit | edit source]
- abEnable: If true, enables menu access. Otherwise disables it.
- Default: True
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Enable menu
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableMenu()
; Disable menu
InputEnableLayer myLayer = InputEnableLayer.Create()
myLayer.EnableMenu(false)