(
ctx: &mut ScriptContext<'_, API>,
name: &str,
visible: bool,
)
| 4306 | node.editable = interactive; |
| 4307 | }); |
| 4308 | } |
| 4309 | } |
| 4310 | |
| 4311 | pub fn set_text_box_input_type<API: ScriptAPI + ?Sized>( |
| 4312 | ctx: &mut ScriptContext<'_, API>, |
| 4313 | name: &str, |
| 4314 | input_type: UiTextInputType, |
| 4315 | ) { |
| 4316 | if let Some(id) = find_named(ctx, name) { |
| 4317 | let _ = with_node_mut!(ctx.run, UiTextBox, id, |node| { |
| 4318 | node.input_type = input_type; |
| 4319 | }); |
| 4320 | } |
| 4321 | } |
| 4322 |
no test coverage detected