imgui_set_widget_visibility
Control widget visibility with conditional expressions like 'always', 'never', or checks on widget state. Show or hide UI elements dynamically based on real-time conditions.
Instructions
Set conditional visibility on a widget. Conditions: 'always', 'never', 'widget_id.checked==true', 'widget_id.value>0.5'
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"window": "<window>",
"widget": "<widget>",
"condition": "<condition>"
},
"name": "imgui_set_widget_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget | Yes | Widget identifier | |
| window | Yes | Window identifier | |
| condition | Yes | Visibility condition expression |