Skip to content

Commit 64368b7

Browse files
committed
debug_ui: Add support for AVM1's StyleSheet
1 parent 6b96001 commit 64368b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/src/debug_ui/display_object.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,14 @@ impl DisplayObjectWindow {
536536
ui.end_row();
537537

538538
ui.label("Style Sheet");
539-
if let Some(style_sheet) = object.style_sheet_avm2() {
539+
if let Some(style_sheet) = object.style_sheet_avm1() {
540+
if ui.button(format!("{:p}", style_sheet.as_ptr())).clicked() {
541+
messages.push(Message::TrackAVM1Object(AVM1ObjectHandle::new(
542+
context,
543+
style_sheet,
544+
)));
545+
}
546+
} else if let Some(style_sheet) = object.style_sheet_avm2() {
540547
if ui.button(format!("{:p}", style_sheet.as_ptr())).clicked() {
541548
messages.push(Message::TrackAVM2Object(AVM2ObjectHandle::new(
542549
context,

0 commit comments

Comments
 (0)