mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-17 04:45:02 +01:00
more
This commit is contained in:
parent
77a0e91746
commit
ea398555ac
365 changed files with 6 additions and 84334 deletions
|
|
@ -10,7 +10,6 @@ derive = ["egui-inspect-derive"]
|
|||
default = ["derive"]
|
||||
|
||||
[dependencies]
|
||||
egui = { path = "../egui/crates/egui" }
|
||||
egui-inspect-derive = { path = "egui-inspect-derive", optional = true}
|
||||
|
||||
[workspace]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use quote::quote;
|
|||
pub fn derive_inspect(input: TokenStream) -> TokenStream {
|
||||
let expanded = quote! {
|
||||
impl ::egui_inspect::Inspect for GameState {
|
||||
fn inspect_mut(&mut self, ui: &mut ::egui::Ui) {
|
||||
fn inspect_mut(&mut self) {
|
||||
output_mut(|o| o.copied_text = format!(""));
|
||||
output_mut(|o| o.copied_text = format!("{:?}", self.tile_db));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
use egui::Ui;
|
||||
#[cfg(feature = "derive")]
|
||||
pub use egui_inspect_derive as derive;
|
||||
|
||||
pub trait Inspect {
|
||||
fn inspect_mut(&mut self, ui: &mut Ui) {
|
||||
fn inspect_mut(&mut self) {
|
||||
loop {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue