(
ctx: &mut ScriptContext<'_, API>,
visible: bool,
)
| 4855 | visible: bool, |
| 4856 | ) { |
| 4857 | if let Some(id) = find_named(ctx, name) { |
| 4858 | let _ = with_node_mut!(ctx.run, UiGrid, id, |node| { |
| 4859 | node.visible = visible; |
| 4860 | node.input_enabled = visible; |
| 4861 | }); |
| 4862 | } |
| 4863 | } |
| 4864 | |
| 4865 | pub fn set_camera_stream_visible<API: ScriptAPI + ?Sized>( |
| 4866 | ctx: &mut ScriptContext<'_, API>, |
| 4867 | name: &str, |
| 4868 | visible: bool, |
| 4869 | ) { |
| 4870 | if let Some(id) = find_named(ctx, name) { |
| 4871 | let _ = with_node_mut!(ctx.run, UiCameraStream, id, |node| { |
| 4872 | node.visible = visible; |
| 4873 | node.input_enabled = visible; |
| 4874 | }); |
no test coverage detected