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

Function set_add_node_popup

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

Source from the content-addressed store, hash-verified

4855 visible: bool,
4856) {
4857 if let Some(id) = find_named(ctx, name) {
4858 let _ = with_node_mut!(ctx.run, UiGrid, id, |node| {
4859 node.visible = visible;
4860 node.input_enabled = visible;
4861 });
4862 }
4863}
4864
4865pub fn set_camera_stream_visible<API: ScriptAPI + ?Sized>(
4866 ctx: &mut ScriptContext<'_, API>,
4867 name: &str,
4868 visible: bool,
4869) {
4870 if let Some(id) = find_named(ctx, name) {
4871 let _ = with_node_mut!(ctx.run, UiCameraStream, id, |node| {
4872 node.visible = visible;
4873 node.input_enabled = visible;
4874 });

Callers 4

add_nodeFunction · 0.85
handle_editor_escapeFunction · 0.85
open_add_node_popupFunction · 0.85

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected