errors and warnings / stdlib / E8441
E8441 error
Visibility driver value other than show or hide
- area
- stdlib (x8xxx)
- fails the build
- yes
A visibility driver (secure.visibility) only has two values, show and
hide; every clause of the conditional must end in one of them. Use
secure.state for a driver with values of your own.
Example
import * as secure from "wowlua:secure" local bar = CreateFrame("Frame", nil, UIParent, "SecureHandlerStateTemplate")secure.visibility(bar, "[combat] visible; hidden")import * as secure from "wowlua:secure" local bar = CreateFrame("Frame", nil, UIParent, "SecureHandlerStateTemplate")secure.visibility(bar, "[combat] show; hide")The compiler reports it like this:
error[E8441]: a visibility driver's values are `show` and `hide`, not `visible` ┌─ src/main.wowlua:4:24 │ 4 │ secure.visibility(bar, "[combat] visible; hidden") │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ here
Related codes
| code | message |
|---|---|
| E8440 | Invalid macro conditional in a literal state driver (brackets, or an unknown condition) |
Offline
$ wowlua explain E8441 E8441 (error): Visibility driver value other than show or hide