watch toolbox to support various overlay types

This commit is contained in:
galister
2025-11-26 17:16:19 +09:00
parent 3f907180f8
commit d5c5d06b3a
12 changed files with 148 additions and 51 deletions

View File

@@ -1,9 +1,13 @@
use std::sync::Arc;
use glam::{Affine3A, Quat, Vec3, vec3};
use glam::{vec3, Affine3A, Quat, Vec3};
use wlx_common::windowing::OverlayWindowState;
use crate::{gui::panel::GuiPanel, state::AppState, windowing::window::OverlayWindowConfig};
use crate::{
gui::panel::GuiPanel,
state::AppState,
windowing::window::{OverlayCategory, OverlayWindowConfig},
};
const SETTINGS_NAME: &str = "settings";
@@ -20,6 +24,7 @@ pub fn create_custom(app: &mut AppState, name: Arc<str>) -> Option<OverlayWindow
Some(OverlayWindowConfig {
name,
category: OverlayCategory::PanelCustom,
default_state: OverlayWindowState {
interactable: true,
grabbable: true,