(
ctx: &mut ScriptContext<'_, API>,
name: &str,
camera: NodeID,
)
| 4332 | let _ = with_node_mut!(ctx.run, UiButton, id, |node| { |
| 4333 | node.style.fill = color; |
| 4334 | }); |
| 4335 | } |
| 4336 | } |
| 4337 | |
| 4338 | pub fn set_panel_fill<API: ScriptAPI + ?Sized>( |
| 4339 | ctx: &mut ScriptContext<'_, API>, |
| 4340 | name: &str, |
| 4341 | fill: &str, |
| 4342 | ) { |
| 4343 | let Some(color) = Color::from_hex(fill) else { |
| 4344 | return; |
| 4345 | }; |
| 4346 | if let Some(id) = find_named(ctx, name) { |
| 4347 | let _ = with_node_mut!(ctx.run, UiPanel, id, |node| { |
no test coverage detected