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

Function apply_scene_list_layout

perro_editor/res/scripts/ui/editor_ui.rs:4535–4544  ·  view source on GitHub ↗
(ctx: &mut ScriptContext<'_, API>)

Source from the content-addressed store, hash-verified

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
4540pub 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;

Callers 1

refresh_scene_pane_viewFunction · 0.85

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected