(
ctx: &mut ScriptContext<'_, API>,
name: &str,
visible: bool,
)
| 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; |
no test coverage detected