core: Show root DO's in debug view
This commit is contained in:
parent
0523a5b149
commit
d8e6bf7535
|
@ -268,8 +268,8 @@ impl DisplayObjectWindow {
|
||||||
Grid::new(ui.id().with("display"))
|
Grid::new(ui.id().with("display"))
|
||||||
.num_columns(2)
|
.num_columns(2)
|
||||||
.show(ui, |ui| {
|
.show(ui, |ui| {
|
||||||
|
ui.label("Parent");
|
||||||
if let Some(other) = object.parent() {
|
if let Some(other) = object.parent() {
|
||||||
ui.label("Parent");
|
|
||||||
open_display_object_button(
|
open_display_object_button(
|
||||||
ui,
|
ui,
|
||||||
context,
|
context,
|
||||||
|
@ -277,8 +277,42 @@ impl DisplayObjectWindow {
|
||||||
other,
|
other,
|
||||||
&mut self.hovered_debug_rect,
|
&mut self.hovered_debug_rect,
|
||||||
);
|
);
|
||||||
ui.end_row();
|
} else {
|
||||||
|
ui.colored_label(ui.style().visuals.error_fg_color, "Orphaned");
|
||||||
}
|
}
|
||||||
|
ui.end_row();
|
||||||
|
|
||||||
|
ui.label("AVM1 Root");
|
||||||
|
if object.avm1_root().as_ptr() != object.as_ptr() {
|
||||||
|
open_display_object_button(
|
||||||
|
ui,
|
||||||
|
context,
|
||||||
|
messages,
|
||||||
|
object.avm1_root(),
|
||||||
|
&mut self.hovered_debug_rect,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
ui.label("Self");
|
||||||
|
}
|
||||||
|
ui.end_row();
|
||||||
|
|
||||||
|
ui.label("AVM2 Root");
|
||||||
|
if let Some(other) = object.avm2_root() {
|
||||||
|
if object.as_ptr() != object.as_ptr() {
|
||||||
|
open_display_object_button(
|
||||||
|
ui,
|
||||||
|
context,
|
||||||
|
messages,
|
||||||
|
other,
|
||||||
|
&mut self.hovered_debug_rect,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
ui.label("Self");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
ui.colored_label(ui.style().visuals.error_fg_color, "None");
|
||||||
|
}
|
||||||
|
ui.end_row();
|
||||||
|
|
||||||
if let Some(other) = object.masker() {
|
if let Some(other) = object.masker() {
|
||||||
ui.label("Masker");
|
ui.label("Masker");
|
||||||
|
|
Loading…
Reference in New Issue