mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 11:45:01 +01:00
more
This commit is contained in:
parent
d32839a469
commit
556590a486
2 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue