remove: overlay, will be planned for future update tho

This commit is contained in:
HorizonCode 2025-07-08 09:20:43 +02:00
parent f5831b377c
commit 57a95b4759
5 changed files with 9 additions and 48 deletions

View File

@ -21,6 +21,7 @@ It enhances the osu! experience with quality-of-life features and integration sp
- [x] Shows the number of imported skins
- [x] Displays ping to the EZPPFarm server
- [ ] Discord Rich Presence (planned and in development)
- [ ] Performance Display Overlay (planned)
---

View File

@ -6,7 +6,6 @@ use std::path::PathBuf;
use sysinfo::System;
use tauri::AppHandle;
use tauri::Emitter;
use tauri::Manager;
use tokio::fs;
use tokio::io::AsyncWriteExt;
use tokio::process::Command;
@ -641,43 +640,6 @@ pub fn get_platform() -> String {
std::env::consts::OS.to_string()
}
#[tauri::command]
pub fn show_overlay(app: tauri::AppHandle) -> Result<(), String> {
if !app.webview_windows().contains_key("overlay") {
tauri::WebviewWindowBuilder::new(
&app,
"overlay",
tauri::WebviewUrl::App("/overlay".into()),
)
.always_on_top(true)
.transparent(true)
.decorations(false)
.resizable(false)
.minimizable(false)
.fullscreen(true)
.skip_taskbar(true)
.visible(true)
.center()
.build()
.map_err(|e| e.to_string())?;
} else if let Some(overlay) = app.get_webview_window("overlay") {
overlay.show().map_err(|e| e.to_string())?;
}
Ok(())
}
#[tauri::command]
pub fn hide_overlay(app: tauri::AppHandle) -> Result<(), String> {
if app.webview_windows().contains_key("overlay")
&& let Some(overlay) = app.get_webview_window("overlay")
{
overlay.show().map_err(|e| e.to_string())?;
}
Ok(())
}
#[tauri::command]
pub async fn check_for_corruption(folder: String) -> Result<bool, String> {
let osu_path = PathBuf::from(folder);

View File

@ -4,11 +4,11 @@ use tauri::Manager;
pub mod commands;
pub mod utils;
use crate::commands::{
download_ezpp_launcher_update_files, exit, find_osu_installation, get_beatmapsets_count,
get_ezpp_launcher_update_files, get_hwid, get_launcher_version, get_osu_release_stream,
get_osu_skin, get_osu_version, get_skins_count, is_osu_running, open_url_in_browser,
replace_ui_files, run_osu, run_osu_updater, set_osu_config_values, set_osu_user_config_values,
valid_osu_folder, get_platform, check_for_corruption, show_overlay, hide_overlay
check_for_corruption, download_ezpp_launcher_update_files, exit, find_osu_installation,
get_beatmapsets_count, get_ezpp_launcher_update_files, get_hwid, get_launcher_version,
get_osu_release_stream, get_osu_skin, get_osu_version, get_platform, get_skins_count,
is_osu_running, open_url_in_browser, replace_ui_files, run_osu, run_osu_updater,
set_osu_config_values, set_osu_user_config_values, valid_osu_folder,
};
#[cfg_attr(mobile, tauri::mobile_entry_point)]
@ -47,9 +47,7 @@ pub fn run() {
get_launcher_version,
exit,
get_platform,
check_for_corruption,
show_overlay,
hide_overlay
check_for_corruption
])
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_dialog::init())

View File

@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "ezpplauncher",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"identifier": "farm.ezpp.launcher",
"build": {
"beforeDevCommand": "bun run vite:dev",

View File

@ -19,10 +19,10 @@
import { Toaster } from '@/components/ui/sonner';
import { userAuth } from '@/userAuthentication';
import { exit, getLauncherVersion, getPlatform } from '@/osuUtil';
import Button from '@/components/ui/button/button.svelte';
import '@fontsource/sora';
import '@fontsource/space-mono';
import Button from '@/components/ui/button/button.svelte';
let { children } = $props();