refactored svelte tauri events
This commit is contained in:
@@ -82,6 +82,11 @@ pub fn set_scene_interactive(interactive: bool, should_click: bool) {
|
||||
update_scene_interactive(interactive, should_click);
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn get_scene_interactive() -> Result<bool, String> {
|
||||
Ok(scene_interactive_state().load(Ordering::SeqCst))
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
pub fn set_pet_menu_state(id: String, open: bool) {
|
||||
let menus_arc = get_open_pet_menus();
|
||||
|
||||
Reference in New Issue
Block a user