(ctx: &mut ScriptContext<'_, API>)
| 4533 | if let Some(id) = find_named(ctx, name) { |
| 4534 | let _ = with_node_mut!(ctx.run, UiTextBox, id, |node| { |
| 4535 | node.padding = padding; |
| 4536 | }); |
| 4537 | } |
| 4538 | } |
| 4539 | |
| 4540 | pub fn set_ui_node_padding<API: ScriptAPI + ?Sized>( |
| 4541 | ctx: &mut ScriptContext<'_, API>, |
| 4542 | name: &str, |
| 4543 | padding: UiRect, |
| 4544 | ) { |
| 4545 | if let Some(id) = find_named(ctx, name) { |
| 4546 | let _ = with_base_node_mut!(ctx.run, UiNode, id, |node| { |
| 4547 | node.layout.padding = padding; |
no test coverage detected