IsPostFXEnabled: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6|23644 | Checks whether a specific PostFX effect is currently enabled. }} ==Syntax== <syntaxhighlight lang="lua"> bool IsPostFXEnabled ( string fxType ) </syntaxhighlight> ===Required arguments=== *'''fxType''': An string of the PostFX. Possible values are: **'''Gamma''' **'''Brightness''' **'''Contrast''' **'''Saturation''' ===Returns=== Returns '''true''' if the selected type is enabled, otherwise '''false...") |
No edit summary |
||
| Line 7: | Line 7: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool | bool isPostFXEnabled ( string fxType ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 13:00, 8 December 2025
Syntax
bool isPostFXEnabled ( string fxType )
Required arguments
- fxType: An string of the PostFX. Possible values are:
- Gamma
- Brightness
- Contrast
- Saturation
Returns
Returns true if the selected type is enabled, otherwise false
Example
This example gets whether the gamma PostFX is enabled and displays it in the chat.
addCommandHandler("isGammaEnabled",
function()
local isEnabled = isPostFXEnabled("Gamma")
outputChatBox("Your gamma mode is: "..(isEnabled and "Enabled" or "Disabled"))
end, false, false
)