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

Function set_grid_visible

perro_editor/res/scripts/ui/editor_ui.rs:4308–4319  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    name: &str,
    visible: bool,
)

Source from the content-addressed store, hash-verified

4306 node.editable = interactive;
4307 });
4308 }
4309}
4310
4311pub 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

Callers 1

apply_viewport_modeFunction · 0.85

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected