hideWhen()
showWhen() の反対で、チェックボックスにチェックが入っている間、またはオプションが選択されている間、項目を非表示にします。つまり、チェックボックスにチェックが入っていない間、または他のオプションが選択されている間に表示されます。
シグネチャ
hideWhen(checkBoxId: number): DialogComponent
hideWhen(radioGroupId: number, optionId: number): DialogComponent
戻り値
同じ項目を返すため、呼び出しをチェーンできます
例
Dialog:add(CheckBox(1, "Use the default Attack position", true))
-- Only asked when the box is not ticked
Dialog:add(TapPicker(2, "Tap the Attack button"):hideWhen(1))
ブロックエディタでは、条件付き表示の未チェックまたはオプションID以外がこれにあたります。