mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 20:35:02 +01:00
more
This commit is contained in:
parent
766e5935a1
commit
69d2e51caf
2 changed files with 54 additions and 2 deletions
28
src/tiles.rs
28
src/tiles.rs
|
|
@ -38,10 +38,36 @@ impl Debug for TileDef {
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is actually used
|
// this is actually used
|
||||||
#[derive(Inspect)]
|
|
||||||
pub struct TileDb {
|
pub struct TileDb {
|
||||||
unknown_bg: TileDef,
|
unknown_bg: TileDef,
|
||||||
}
|
}
|
||||||
|
impl ::egui_inspect::Inspect for TileDb {
|
||||||
|
fn inspect(&self, ui: &mut ::egui::Ui, id_source: u64) {}
|
||||||
|
fn inspect_mut(&mut self, ui: &mut ::egui::Ui, id_source: u64) {
|
||||||
|
::egui::CollapsingHeader::new("TileDb")
|
||||||
|
.id_source(id_source)
|
||||||
|
.show(ui, |ui| {
|
||||||
|
ui.horizontal(|ui| {
|
||||||
|
if ui
|
||||||
|
.add(
|
||||||
|
::egui::Label::new("unknown_bg : TileDef")
|
||||||
|
.sense(::egui::Sense::click()),
|
||||||
|
)
|
||||||
|
.clicked()
|
||||||
|
{
|
||||||
|
ui.output_mut(|o| {
|
||||||
|
o.copied_text = {
|
||||||
|
let res =
|
||||||
|
::std::fmt::format(format_args!("{0:?}", self.unknown_bg));
|
||||||
|
res
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
::egui_inspect::Inspect::inspect_mut(&mut self.unknown_bg, ui, 0usize as u64)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Debug for TileDb {
|
impl Debug for TileDb {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
|
|
|
||||||
28
tiles.rs
28
tiles.rs
|
|
@ -38,10 +38,36 @@ impl Debug for TileDef {
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is actually used
|
// this is actually used
|
||||||
#[derive(Inspect)]
|
|
||||||
pub struct TileDb {
|
pub struct TileDb {
|
||||||
unknown_bg: TileDef,
|
unknown_bg: TileDef,
|
||||||
}
|
}
|
||||||
|
impl ::egui_inspect::Inspect for TileDb {
|
||||||
|
fn inspect(&self, ui: &mut ::egui::Ui, id_source: u64) {}
|
||||||
|
fn inspect_mut(&mut self, ui: &mut ::egui::Ui, id_source: u64) {
|
||||||
|
::egui::CollapsingHeader::new("TileDb")
|
||||||
|
.id_source(id_source)
|
||||||
|
.show(ui, |ui| {
|
||||||
|
ui.horizontal(|ui| {
|
||||||
|
if ui
|
||||||
|
.add(
|
||||||
|
::egui::Label::new("unknown_bg : TileDef")
|
||||||
|
.sense(::egui::Sense::click()),
|
||||||
|
)
|
||||||
|
.clicked()
|
||||||
|
{
|
||||||
|
ui.output_mut(|o| {
|
||||||
|
o.copied_text = {
|
||||||
|
let res =
|
||||||
|
::std::fmt::format(format_args!("{0:?}", self.unknown_bg));
|
||||||
|
res
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
::egui_inspect::Inspect::inspect_mut(&mut self.unknown_bg, ui, 0usize as u64)
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Debug for TileDb {
|
impl Debug for TileDb {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue