This commit is contained in:
nora 2023-04-18 21:08:34 +02:00
parent d32839a469
commit 556590a486
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@ use quote::quote;
pub fn expand(_: TokenStream) -> TokenStream {
quote! {
output_mut(|o| o.copied_text = "".into());
output_mut(|o| o.copied_text = format!("{:?}", self.tile_db));
}
.into()
}

View file

@ -6,6 +6,7 @@ pub struct TileDef {
use egui_inspect_derive::expand;
pub(crate) struct GameState {
pub(crate) tile_db: TileDb,
}
@ -13,7 +14,6 @@ pub(crate) struct GameState {
impl GameState {
fn inspect_mut(&mut self) {
expand! {}
output_mut(|o| o.copied_text = format!("{:?}", self.tile_db));
}
}