MCPcopy Create free account
hub / github.com/PerroEngine/Perro / wrap_grid_offset

Function wrap_grid_offset

perro_editor/res/scripts/ui/editor_ui.rs:4501–4508  ·  view source on GitHub ↗
(offset: f32, spacing: f32)

Source from the content-addressed store, hash-verified

4499 });
4500 }
4501}
4502
4503pub 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);

Callers 1

apply_viewport_canvasFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected