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

Function set_panel_display

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

Source from the content-addressed store, hash-verified

4210 node.style.fill = Color::from_hex("#23272DF2").unwrap_or(node.style.fill);
4211 node.style.stroke = Color::from_hex("#6BA0EA").unwrap_or(node.style.stroke);
4212 node.style.stroke_width = 1.0;
4213 node.style.set_corner_radius(0.06);
4214 node.visible = false;
4215 node.input_enabled = false;
4216 });
4217 let _ = with_node_mut!(ctx.run, UiLabel, label, |node| {
4218 node.layout.anchor = UiAnchor::Center;
4219 node.layout.size = UiVector2::ratio(1.0, 1.0);
4220 node.transform.position = UiVector2::percent(50.0, 50.0);
4221 node.transform.pivot = UiVector2::percent(50.0, 50.0);
4222 node.text = "Reloading scripts".into();
4223 node.text_size_ratio = 0.36;
4224 node.color = Color::from_hex(theme::TEXT).unwrap_or(node.color);
4225 node.visible = false;
4226 node.input_enabled = false;

Callers 3

apply_viewport_modeFunction · 0.85
apply_viewport_canvasFunction · 0.85

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected