(
ctx: &mut ScriptContext<'_, API>,
name: &str,
size: (f32, f32),
)
| 4344 | return; |
| 4345 | }; |
| 4346 | if let Some(id) = find_named(ctx, name) { |
| 4347 | let _ = with_node_mut!(ctx.run, UiPanel, id, |node| { |
| 4348 | node.style.fill = color; |
| 4349 | }); |
| 4350 | } |
| 4351 | } |
| 4352 | |
| 4353 | pub fn set_panel_style<API: ScriptAPI + ?Sized>( |
| 4354 | ctx: &mut ScriptContext<'_, API>, |
| 4355 | name: &str, |
| 4356 | fill: &str, |
| 4357 | stroke: &str, |
| 4358 | radius: f32, |
| 4359 | ) { |
no test coverage detected