(offset: f32, spacing: f32)
| 4499 | }); |
| 4500 | } |
| 4501 | } |
| 4502 | |
| 4503 | pub fn set_text_box_padding<API: ScriptAPI + ?Sized>( |
| 4504 | ctx: &mut ScriptContext<'_, API>, |
| 4505 | name: &str, |
| 4506 | x: f32, |
| 4507 | y: f32, |
| 4508 | ) { |
| 4509 | if let Some(id) = find_named(ctx, name) { |
| 4510 | let _ = with_node_mut!(ctx.run, UiTextBox, id, |node| { |
| 4511 | node.padding = UiRect::symmetric(x, y); |
no outgoing calls
no test coverage detected