dash and wgui sounds

This commit is contained in:
Aleksander
2026-01-03 15:00:31 +01:00
parent 383bf3b11f
commit feba52c28f
34 changed files with 258 additions and 96 deletions

View File

@@ -109,6 +109,9 @@ impl AppState {
audio::AudioSample::from_mp3(include_bytes!("res/toast.mp3"))?,
);
let mut assets = Box::new(gui::asset::GuiAsset {});
audio_sample_player.register_wgui_samples(assets.as_mut())?;
let mut defaults = wgui::globals::Defaults::default();
{
@@ -147,7 +150,7 @@ impl AppState {
anchor: Affine3A::IDENTITY,
anchor_grabbed: false,
wgui_globals: WguiGlobals::new(
Box::new(gui::asset::GuiAsset {}),
assets,
defaults,
&WguiFontConfig::default(),
get_config_file_path(&theme),