This commit is contained in:
galister
2025-10-31 17:33:38 +09:00
parent fa562f7b12
commit 67017a9f54
21 changed files with 30 additions and 39 deletions

View File

@@ -6,7 +6,7 @@ impl wgui::assets::AssetProvider for GuiAsset {
fn load_from_path(&mut self, path: &str) -> anyhow::Result<Vec<u8>> {
match Self::get(path) {
Some(data) => Ok(data.data.to_vec()),
None => anyhow::bail!("embedded file {} not found", path),
None => anyhow::bail!("embedded file {path} not found"),
}
}
}

View File

@@ -275,7 +275,7 @@ impl<S: 'static> OverlayBackend for GuiPanel<S> {
pos: hit.uv * self.layout.content_size,
device: hit.pointer,
});
let result = self.push_event(app, &e);
let result = self.push_event(app, e);
HoverResult {
consume: result != EventResult::NoHit,