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 { pub fn expand(_: TokenStream) -> TokenStream {
quote! { quote! {
output_mut(|o| o.copied_text = "".into()); output_mut(|o| o.copied_text = "".into());
output_mut(|o| o.copied_text = format!("{:?}", self.tile_db));
} }
.into() .into()
} }

View file

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