withVisibility

abstract fun withVisibility(visibility: () -> Boolean, init: HudElementsBuilder.() -> Unit): VisibilityWrapper

Sets visibility of an element defined in the init block.