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

Function set_camera_stream_visible

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

Source from the content-addressed store, hash-verified

4319 });
4320 }
4321}
4322
4323pub fn set_button_fill<API: ScriptAPI + ?Sized>(
4324 ctx: &mut ScriptContext<'_, API>,
4325 name: &str,
4326 fill: &str,
4327) {
4328 let Some(color) = Color::from_hex(fill) else {
4329 return;
4330 };
4331 if let Some(id) = find_named(ctx, name) {
4332 let _ = with_node_mut!(ctx.run, UiButton, id, |node| {
4333 node.style.fill = color;
4334 });
4335 }

Callers 1

apply_viewport_modeFunction · 0.85

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected