Skip to content

Instantly share code, notes, and snippets.

@Shazbot
Created August 12, 2021 19:41
Show Gist options
  • Save Shazbot/edb8a3af536e35c030c1c29f46d5b800 to your computer and use it in GitHub Desktop.
Save Shazbot/edb8a3af536e35c030c1c29f46d5b800 to your computer and use it in GitHub Desktop.
Dump UI hierarchy in the frontend with a delay
core:remove_listener("pj_frontend_ui_dump_real_timer_cb")
core:add_listener(
"pj_frontend_ui_dump_real_timer_cb",
"RealTimeTrigger",
function(context)
return context.string == "pj_frontend_ui_dump_real_timer"
end,
function()
print_all_uicomponent_children(core:get_ui_root())
end,
true
)
real_timer.unregister("pj_frontend_ui_dump_real_timer")
real_timer.register_singleshot("pj_frontend_ui_dump_real_timer", 5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment