(ctx: &mut ScriptContext<'_, API>, visible: bool)
| 447 | pub fn set_sidebar_mode<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>, mode: &str) { |
| 448 | let _ = with_state_mut!(ctx.run, EditorState, ctx.id, |state| { |
| 449 | state.sidebar_mode = mode.to_string(); |
| 450 | if state.activity_mode != "glb" { |
| 451 | state.activity_mode = "scene".to_string(); |
| 452 | } |
| 453 | }); |
| 454 | refresh_all(ctx); |
| 455 | } |
| 456 | |
| 457 | pub fn set_anim_drawer<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>, visible: bool) { |
| 458 | let _ = with_state_mut!(ctx.run, EditorState, ctx.id, |state| { |
| 459 | state.anim_drawer_open = visible; |
| 460 | state.bottom_dock_open = visible; |
no test coverage detected